comparison libpurple/protocols/irc/cmds.c @ 16422:6447865b2d08

/whowas for IRC. Thanks, achris.
author Ethan Blanton <elb@pidgin.im>
date Wed, 25 Apr 2007 16:03:24 +0000
parents 32c366eeeb99
children 44b4e8bd759b
comparison
equal deleted inserted replaced
16421:ac2c14628790 16422:6447865b2d08
557 g_free(buf); 557 g_free(buf);
558 558
559 return 0; 559 return 0;
560 } 560 }
561 561
562 int irc_cmd_whowas(struct irc_conn *irc, const char *cmd, const char *target, const char **args)
563 {
564 char *buf;
565
566 if (!args || !args[0])
567 return 0;
568
569 buf = irc_format(irc, "vn", "WHOWAS", args[0]);
570
571 irc->whois.nick = g_strdup(args[0]);
572 irc_send(irc, buf);
573 g_free(buf);
574
575 return 0;
576 }
577
562 static void irc_do_mode(struct irc_conn *irc, const char *target, const char *sign, char **ops) 578 static void irc_do_mode(struct irc_conn *irc, const char *target, const char *sign, char **ops)
563 { 579 {
564 char *buf, mode[5]; 580 char *buf, mode[5];
565 int i = 0; 581 int i = 0;
566 582