Mercurial > pidgin
diff libpurple/protocols/irc/cmds.c @ 21967:33f4a9e685a3
Added /notice support for IRC. If I didn't do this properly, feel free
to disapprove this revision, elb.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 30 Dec 2007 18:46:56 +0000 |
parents | 7a159abfa395 |
children | b526b6c679d9 |
line wrap: on
line diff
--- a/libpurple/protocols/irc/cmds.c Sun Dec 30 13:56:01 2007 +0000 +++ b/libpurple/protocols/irc/cmds.c Sun Dec 30 18:46:56 2007 +0000 @@ -367,7 +367,12 @@ if (!end) end = cur + strlen(cur); msg = g_strndup(cur, end - cur); - buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); + + if(!strcmp(cmd, "msg")) + 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); g_free(buf);