Index: shoutbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/shoutbox/shoutbox.module,v
retrieving revision 1.18.2.13
diff -u -p -r1.18.2.13 shoutbox.module
--- shoutbox.module 12 May 2008 13:58:14 -0000 1.18.2.13
+++ shoutbox.module 12 May 2008 14:19:47 -0000
@@ -459,7 +459,7 @@ function shoutbox_add_form() {
     $last_url = $info[1];
   }

-  if (variable_get('shoutbox_defaultname', 0) && $user->uid) {
+  if (variable_get('shoutbox_defaultname', 1) && $user->uid) {
     $default_nick = $user->name;
   }
   else {
@@ -1052,3 +1052,11 @@ function _shoutbox_sanitize_shout(&$shou
   $shout->color = check_plain($shout->color);
 }

+/**
+ * Implementation of hook_user().
+ */
+function shoutbox_user($op, &$edit, &$account, $category = NULL) {
+  if ($op == "logout") {
+    setcookie("shoutinfo", FALSE);
+  }
+}
