comparison 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
comparison
equal deleted inserted replaced
21966:1796af35d1aa 21967:33f4a9e685a3
365 while (*end && *cur) { 365 while (*end && *cur) {
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 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); 370
371 if(!strcmp(cmd, "msg"))
372 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
371 irc_send(irc, buf); 376 irc_send(irc, buf);
372 g_free(msg); 377 g_free(msg);
373 g_free(buf); 378 g_free(buf);
374 cur = end + 1; 379 cur = end + 1;
375 } 380 }