changeset 22045:b526b6c679d9

Fix notice on /me
author Ethan Blanton <elb@pidgin.im>
date Tue, 08 Jan 2008 17:16:57 +0000
parents 4a204ebed41c
children 47286f9bb434
files libpurple/protocols/irc/cmds.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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);