im.pidgin.pidgin: 6d8a02b102307c89d31b4eddc0ceee59673d157b

elb at pidgin.im elb at pidgin.im
Tue Jan 8 12:20:49 EST 2008


-----------------------------------------------------------------
Revision: 6d8a02b102307c89d31b4eddc0ceee59673d157b
Ancestor: d6936cb019234c5f9985eceac8678731c6b7bf25
Author: elb at pidgin.im
Date: 2008-01-08T17:16:57
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/irc/cmds.c

ChangeLog: 

Fix notice on /me

-------------- next part --------------
============================================================
--- libpurple/protocols/irc/cmds.c	51376f84661a83c6d61c74fbe54dde476ec66706
+++ libpurple/protocols/irc/cmds.c	2df3a36f517accc14242af056f33f8c62a1c81cf
@@ -368,10 +368,10 @@ int irc_cmd_privmsg(struct irc_conn *irc
 			end = cur + strlen(cur);
 		msg = g_strndup(cur, end - cur);
 
-		if(!strcmp(cmd, "msg"))
-			buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg);
-		else /* seding a notice if we get here */
+		if(!strcmp(cmd, "notice"))
 			buf = irc_format(irc, "vt:", "NOTICE", args[0], msg);
+		else
+			buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg);
 
 		irc_send(irc, buf);
 		g_free(msg);


More information about the Commits mailing list