+Wed Oct 8 19:41:15 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
+
+ * ERR_BAD_PASSWORD now returns the Channel ID of the channel
+ where the passphrase was given. Affected file is
+ silcd/command.c.
+
Wed Oct 8 09:32:12 CEST 2003 Pekka Riikonen <priikone@silcnet.org>
* INVITE and BAN notifys are now delivered from routers to
servers (but not clients) on the channel. Updated specs and
- code. Affected files silcd/packet_[send|receive].[ch],
+ code. Affected files silcd/packet_[send|receive].[ch],
command.c, server.c and server_util.c.
* Implemented INVITE and BAN announcing. Affected files are
if (!passphrase || !channel->passphrase ||
memcmp(passphrase, channel->passphrase, strlen(channel->passphrase))) {
- silc_server_command_send_status_reply(cmd, SILC_COMMAND_JOIN,
- SILC_STATUS_ERR_BAD_PASSWORD, 0);
+ chidp = silc_id_payload_encode(channel->id, SILC_ID_CHANNEL);
+ silc_server_command_send_status_data(cmd, SILC_COMMAND_JOIN,
+ SILC_STATUS_ERR_BAD_PASSWORD, 0,
+ 2, chidp->data, chidp->len);
+ silc_buffer_free(chidp);
goto out;
}
}
33 SILC_STATUS_ERR_BAD_PASSWORD
"Cannot join channel. Incorrect password". Password provided for
- channel were not accepted.
+ channel were not accepted. The next argument MUST be the
+ Channel ID.
34 SILC_STATUS_ERR_CHANNEL_IS_FULL
<br />
<small>
Version: @VERSION@<br />
-Copyright © 2001 - 2002 The SILC Project<br />
+Copyright © 1997 - 2003 The SILC Project<br />
Updated: @DATE@
</small>
<br /><br /><br />
<big><b>SilcStatus Arguments</b></big>
<br /> <br />
-The <a href="silccore-SilcStatus.html">SilcStatus</a> is used to indicate
+The <a href="silcstatus-SilcStatus.html">SilcStatus</a> is used to indicate
a status (usually error status) of command execution and command reply
status. It is also used to deliver disconnection status when server
disconnects client from the server. For application it is mainly important
<tr>
<td><small>SILC_STATUS_ERR_BAD_PASSWORD</td>
<td><small>
-Password provided for channel were not accepted. No arguments returned.
+Password provided for channel were not accepted. Returns the channel ID.
</td>
-<td width="40%"><small>N/A
+<td width="40%"><small>const SilcChannelID *channel_id
</td>
</tr>