Fill in req_cnt for irc_msg_kick and irc_msg_nick. release-2.x.y
authorMark Doliner <mark@kingant.net>
Sat, 18 Jan 2014 10:21:44 -0800
branchrelease-2.x.y
changeset4d9be297d399 pushlog
parent 852014ae74a0
child 7d0fb0c6d8d4
Fill in req_cnt for irc_msg_kick and irc_msg_nick.
libpurple/protocols/irc/parse.c
     1.1 --- a/libpurple/protocols/irc/parse.c
     1.2 +++ b/libpurple/protocols/irc/parse.c
     1.3 @@ -50,9 +50,11 @@
     1.4  static struct _irc_msg {
     1.5  	char *name;
     1.6  	char *format;
     1.7 -	/* The required parameters count, based on values we use, not protocol
     1.8 -	 * specification. */
     1.9 -	int req_cnt; 
    1.10 +
    1.11 +	/** The required parameter count, based on values we use, not protocol
    1.12 +	 *  specification. */
    1.13 +	int req_cnt;
    1.14 +
    1.15  	void (*cb)(struct irc_conn *irc, const char *name, const char *from, char **args);
    1.16  } _irc_msgs[] = {
    1.17  	{ "005", "n*", 2, irc_msg_features },		/* Feature list			*/
    1.18 @@ -115,9 +117,9 @@
    1.19  #endif
    1.20  	{ "invite", "n:", 2, irc_msg_invite },		/* Invited			*/
    1.21  	{ "join", ":", 1, irc_msg_join },		/* Joined a channel		*/
    1.22 -	{ "kick", "cn:", -1, irc_msg_kick },		/* KICK				*/
    1.23 +	{ "kick", "cn:", 3, irc_msg_kick },		/* KICK				*/
    1.24  	{ "mode", "tv:", 2, irc_msg_mode },		/* MODE for channel		*/
    1.25 -	{ "nick", ":", -1, irc_msg_nick },		/* Nick change			*/
    1.26 +	{ "nick", ":", 1, irc_msg_nick },		/* Nick change			*/
    1.27  	{ "notice", "t:", 2, irc_msg_notice },		/* NOTICE recv			*/
    1.28  	{ "part", "c:", 1, irc_msg_part },		/* Parted a channel		*/
    1.29  	{ "ping", ":", 1, irc_msg_ping },		/* Received PING from server	*/