1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

Update example of messages in irc-protocol.c

This commit is contained in:
Sebastien Helleu
2010-02-06 10:55:22 +01:00
parent a3658f4fc2
commit fa8ff80fc1
+12 -1
View File
@@ -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,