summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-02-06 10:55:22 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-02-06 10:55:22 +0100
commitfa8ff80fc1860826f930bf7822f67e740862dd6c (patch)
tree0a7f809caab175f43a94dc554b941efa04584d87 /src/plugins
parenta3658f4fc26201307c7d6e90a47dcab82b927209 (diff)
downloadweechat-fa8ff80fc1860826f930bf7822f67e740862dd6c.zip
Update example of messages in irc-protocol.c
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-protocol.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index dc1625ac6..fb923e08c 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -934,6 +934,9 @@ irc_protocol_cmd_part (struct t_irc_server *server, const char *command,
/* PART message looks like:
:nick!user@host PART #channel :part message
+ On undernet server, it can be:
+ :nick!user@host PART :#channel
+ :nick!user@host PART #channel :part message
*/
IRC_PROTOCOL_GET_HOST;
@@ -1771,7 +1774,7 @@ int
irc_protocol_cmd_303 (struct t_irc_server *server, const char *command,
int argc, char **argv, char **argv_eol)
{
- /* 301 message looks like:
+ /* 303 message looks like:
:server 303 mynick :nick1 nick2
*/
@@ -3353,6 +3356,10 @@ irc_protocol_cmd_432 (struct t_irc_server *server, const char *command,
int i, nick_found, nick_to_use;
struct t_gui_buffer *ptr_buffer;
+ /* 432 message looks like:
+ :server 432 * mynick :Erroneous Nickname
+ */
+
irc_protocol_cmd_error (server, command, argc, argv, argv_eol);
if (!server->is_connected)
@@ -3415,6 +3422,10 @@ irc_protocol_cmd_433 (struct t_irc_server *server, const char *command,
int i, nick_found, nick_to_use;
struct t_gui_buffer *ptr_buffer;
+ /* 433 message looks like:
+ :server 433 * mynick :Nickname is already in use.
+ */
+
if (!server->is_connected)
{
ptr_buffer = irc_msgbuffer_get_target_buffer (server, NULL,