Fixed the INVITE command to send the invite list in command reply.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 4 Nov 2002 14:03:58 +0000 (14:03 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 4 Nov 2002 14:03:58 +0000 (14:03 +0000)
CHANGES
apps/irssi/docs/help/in/invite.in
apps/silcd/command.c
apps/silcd/idlist.c

diff --git a/CHANGES b/CHANGES
index e3273273ad7cd6c9afa866bc16e3c3584de1c01f..4ccc73602fd5f01c152098e37ababeea77087644 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,13 +6,6 @@ Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
        * Fixed the INVITE command to send the invite list in
          command reply.  Affected file silcd/command_reply.c.
 
-       * Fixed MOTD command reply sending.  Affected file
-         silcd/command.c.
-
-       * UTF-8 decode the topic in TOPIC command reply and LIST
-         command reply in Irssi SILC client.  Affected file is
-         irssi/src/silc/core/client_ops.c.
-
 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed the INVITE command to not crash Irssi SILC client
index 0767e61925ca8630675a4a971f32ec5e39e7abd9..7d11e262b80efa6e466c39d1a7901f4b0b01e71e 100644 (file)
@@ -6,7 +6,8 @@ the channel's invite list.  Wildcards may be used with this command.
 
 Examples:
     /INVITE silc joe
-        Invites nickname `joe' to channel 'silc'.
+        Invites nickname `joe' to channel 'silc', and adds the client
+       to the channel's invite list.
 
     /INVITE silc +joe!*@*
         Adds nickname `joe' from anywhere to the invite list of the
index ab4b5addf5206ddb87536303af37b440fce73d0f..104f114082efbd1ffa42b8352685ce7a676e9572 100644 (file)
@@ -1212,19 +1212,13 @@ SILC_SERVER_CMD_FUNC(invite)
   /* Send command reply */
   tmp = silc_argument_get_arg_type(cmd->args, 1, &len);
 
-  if (add || del)
-    packet = 
-      silc_command_reply_payload_encode_va(SILC_COMMAND_INVITE,
-                                          SILC_STATUS_OK, 0, ident, 2,
-                                          2, tmp, len,
-                                          3, channel->invite_list,
-                                          channel->invite_list ?
-                                          strlen(channel->invite_list) : 0);
-  else
-    packet = 
-      silc_command_reply_payload_encode_va(SILC_COMMAND_INVITE,
-                                          SILC_STATUS_OK, 0, ident, 1,
-                                          2, tmp, len);
+  packet = 
+    silc_command_reply_payload_encode_va(SILC_COMMAND_INVITE,
+                                        SILC_STATUS_OK, 0, ident, 2,
+                                        2, tmp, len,
+                                        3, channel->invite_list,
+                                        channel->invite_list ?
+                                        strlen(channel->invite_list) : 0);
   silc_server_packet_send(server, cmd->sock, SILC_PACKET_COMMAND_REPLY, 0, 
                          packet->data, packet->len, FALSE);
   silc_buffer_free(packet);
index ac025947c6d00654e357d7277c6ee3d6695bab9c..d683a0e990298ad923194bff0cf09217327cedde 100644 (file)
@@ -671,6 +671,8 @@ int silc_idlist_del_channel(SilcIDList id_list, SilcChannelEntry entry)
     silc_free(entry->channel_name);
     silc_free(entry->id);
     silc_free(entry->topic);
+    silc_free(entry->invite_list);
+    silc_free(entry->ban_list);
     if (entry->channel_key)
       silc_cipher_free(entry->channel_key);
     if (entry->key) {