Fixed the INVITE and BAN notify handling in router end.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 8 Oct 2003 20:32:30 +0000 (20:32 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 8 Oct 2003 20:32:30 +0000 (20:32 +0000)
apps/silcd/packet_receive.c

index bd6a8282b29b5220d36fe85b971d605c6bafb12e..5e2e96f56d720b437a8ac1cb9d2e38ad5b9af623 100644 (file)
@@ -1097,6 +1097,10 @@ void silc_server_notify(SilcServer server,
     }
     silc_free(channel_id);
 
+#if 0 /* These aren't actually used anywhere or needed, since this
+        notify is for handling the invite list (direct invite
+        goes to client and is not handled here at all). */
+
     /* Get client ID */
     tmp = silc_argument_get_arg_type(args, 3, &tmp_len);
     if (!tmp)
@@ -1129,6 +1133,7 @@ void silc_server_notify(SilcServer server,
         goto out;
       }
     }
+#endif
 
     /* Get the invite action */
     tmp = silc_argument_get_arg_type(args, 4, &tmp_len);
@@ -1148,7 +1153,7 @@ void silc_server_notify(SilcServer server,
       if (!iargs)
        goto out;
 
-      if (action == 0 && !channel->invite_list)
+      if (action != 0x01 && !channel->invite_list)
        channel->invite_list =
          silc_hash_table_alloc(0, silc_hash_ptr,
                                NULL, NULL, NULL,
@@ -1745,7 +1750,7 @@ void silc_server_notify(SilcServer server,
       if (!iargs)
        goto out;
 
-      if (action == 0 && !channel->ban_list)
+      if (action != 0x01 && !channel->ban_list)
        channel->ban_list =
          silc_hash_table_alloc(0, silc_hash_ptr,
                                NULL, NULL, NULL,