Mercurial > pidgin
comparison src/protocols/irc/cmds.c @ 10609:6239870efd8e
[gaim-migrate @ 12055]
Two-argument whois from rlaager, ported forward from oldstatus
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Fri, 18 Feb 2005 04:22:53 +0000 |
| parents | cdeb727d1de3 |
| children | c4cb90065e1d |
comparison
equal
deleted
inserted
replaced
| 10608:adf7adc7da76 | 10609:6239870efd8e |
|---|---|
| 501 char *buf; | 501 char *buf; |
| 502 | 502 |
| 503 if (!args || !args[0]) | 503 if (!args || !args[0]) |
| 504 return 0; | 504 return 0; |
| 505 | 505 |
| 506 buf = irc_format(irc, "vn", "WHOIS", args[0]); | 506 if (args[1]) { |
| 507 irc_send(irc, buf); | 507 buf = irc_format(irc, "vvn", "WHOIS", args[0], args[1]); |
| 508 g_free(buf); | 508 irc->whois.nick = g_strdup(args[1]); |
| 509 irc->whois.nick = g_strdup(args[0]); | 509 } else { |
| 510 buf = irc_format(irc, "vn", "WHOIS", args[0]); | |
| 511 irc->whois.nick = g_strdup(args[0]); | |
| 512 } | |
| 513 | |
| 514 irc_send(irc, buf); | |
| 515 g_free(buf); | |
| 510 | 516 |
| 511 return 0; | 517 return 0; |
| 512 } | 518 } |
| 513 | 519 |
| 514 static void irc_do_mode(struct irc_conn *irc, const char *target, const char *sign, char **ops) | 520 static void irc_do_mode(struct irc_conn *irc, const char *target, const char *sign, char **ops) |
