/pidgin/main: 4d9be297d399: Fill in req_cnt for irc_msg_kick and...

Mark Doliner mark at kingant.net
Tue Jan 28 10:38:13 EST 2014


Changeset: 4d9be297d3992b7fa116826e1189aa9fb823ada3
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2014-01-18 10:21 -0800
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/4d9be297d399

Description:

Fill in req_cnt for irc_msg_kick and irc_msg_nick.

diffstat:

 libpurple/protocols/irc/parse.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (30 lines):

diff --git a/libpurple/protocols/irc/parse.c b/libpurple/protocols/irc/parse.c
--- a/libpurple/protocols/irc/parse.c
+++ b/libpurple/protocols/irc/parse.c
@@ -50,9 +50,11 @@ extern PurplePlugin *_irc_plugin;
 static struct _irc_msg {
 	char *name;
 	char *format;
-	/* The required parameters count, based on values we use, not protocol
-	 * specification. */
-	int req_cnt; 
+
+	/** The required parameter count, based on values we use, not protocol
+	 *  specification. */
+	int req_cnt;
+
 	void (*cb)(struct irc_conn *irc, const char *name, const char *from, char **args);
 } _irc_msgs[] = {
 	{ "005", "n*", 2, irc_msg_features },		/* Feature list			*/
@@ -115,9 +117,9 @@ static struct _irc_msg {
 #endif
 	{ "invite", "n:", 2, irc_msg_invite },		/* Invited			*/
 	{ "join", ":", 1, irc_msg_join },		/* Joined a channel		*/
-	{ "kick", "cn:", -1, irc_msg_kick },		/* KICK				*/
+	{ "kick", "cn:", 3, irc_msg_kick },		/* KICK				*/
 	{ "mode", "tv:", 2, irc_msg_mode },		/* MODE for channel		*/
-	{ "nick", ":", -1, irc_msg_nick },		/* Nick change			*/
+	{ "nick", ":", 1, irc_msg_nick },		/* Nick change			*/
 	{ "notice", "t:", 2, irc_msg_notice },		/* NOTICE recv			*/
 	{ "part", "c:", 1, irc_msg_part },		/* Parted a channel		*/
 	{ "ping", ":", 1, irc_msg_ping },		/* Received PING from server	*/



More information about the Commits mailing list