diff libpurple/protocols/irc/cmds.c @ 22045:b526b6c679d9

Fix notice on /me
author Ethan Blanton <elb@pidgin.im>
date Tue, 08 Jan 2008 17:16:57 +0000
parents 33f4a9e685a3
children f332db29a854
line wrap: on
line diff
--- a/libpurple/protocols/irc/cmds.c	Tue Jan 08 10:16:26 2008 +0000
+++ b/libpurple/protocols/irc/cmds.c	Tue Jan 08 17:16:57 2008 +0000
@@ -368,10 +368,10 @@
 			end = cur + strlen(cur);
 		msg = g_strndup(cur, end - cur);
 
-		if(!strcmp(cmd, "msg"))
+		if(!strcmp(cmd, "notice"))
+			buf = irc_format(irc, "vt:", "NOTICE", args[0], msg);
+		else
 			buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg);
-		else /* seding a notice if we get here */
-			buf = irc_format(irc, "vt:", "NOTICE", args[0], msg);
 
 		irc_send(irc, buf);
 		g_free(msg);