* 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
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
/* 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);