Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
22044:4a204ebed41c | 22045:b526b6c679d9 |
---|---|
366 end = strchr(cur, '\n'); | 366 end = strchr(cur, '\n'); |
367 if (!end) | 367 if (!end) |
368 end = cur + strlen(cur); | 368 end = cur + strlen(cur); |
369 msg = g_strndup(cur, end - cur); | 369 msg = g_strndup(cur, end - cur); |
370 | 370 |
371 if(!strcmp(cmd, "msg")) | 371 if(!strcmp(cmd, "notice")) |
372 buf = irc_format(irc, "vt:", "NOTICE", args[0], msg); | |
373 else | |
372 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); | 374 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); |
373 else /* seding a notice if we get here */ | |
374 buf = irc_format(irc, "vt:", "NOTICE", args[0], msg); | |
375 | 375 |
376 irc_send(irc, buf); | 376 irc_send(irc, buf); |
377 g_free(msg); | 377 g_free(msg); |
378 g_free(buf); | 378 g_free(buf); |
379 cur = end + 1; | 379 cur = end + 1; |