Mercurial > pidgin
changeset 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 | adf7adc7da76 |
children | 74cc119beceb |
files | src/protocols/irc/cmds.c src/protocols/irc/parse.c |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c Thu Feb 17 17:37:59 2005 +0000 +++ b/src/protocols/irc/cmds.c Fri Feb 18 04:22:53 2005 +0000 @@ -503,10 +503,16 @@ if (!args || !args[0]) return 0; - buf = irc_format(irc, "vn", "WHOIS", args[0]); + if (args[1]) { + buf = irc_format(irc, "vvn", "WHOIS", args[0], args[1]); + irc->whois.nick = g_strdup(args[1]); + } else { + buf = irc_format(irc, "vn", "WHOIS", args[0]); + irc->whois.nick = g_strdup(args[0]); + } + irc_send(irc, buf); g_free(buf); - irc->whois.nick = g_strdup(args[0]); return 0; }
--- a/src/protocols/irc/parse.c Thu Feb 17 17:37:59 2005 +0000 +++ b/src/protocols/irc/parse.c Fri Feb 18 04:22:53 2005 +0000 @@ -118,7 +118,7 @@ { "kick", "n:", irc_cmd_kick, N_("kick <nick> [message]: Remove someone from a channel. You must be a channel operator to do this.") }, { "list", ":", irc_cmd_list, N_("list: Display a list of chat rooms on the network. <i>Warning, some servers may disconnect you upon doing this.</i>") }, { "me", ":", irc_cmd_ctcp_action, N_("me <action to perform>: Perform an action.") }, - { "mode", ":", irc_cmd_mode, N_("mode <nick|channel> <+|-><A-Za-z>: Set or unset a channel or user mode.") }, + { "mode", ":", irc_cmd_mode, N_("mode <+|-><A-Za-z> <nick|channel>: Set or unset a channel or user mode.") }, { "msg", "t:", irc_cmd_privmsg, N_("msg <nick> <message>: Send a private message to a user (as opposed to a channel).") }, { "names", "c", irc_cmd_names, N_("names [channel]: List the users currently in a channel.") }, { "nick", "n", irc_cmd_nick, N_("nick <new nickname>: Change your nickname.") }, @@ -135,7 +135,7 @@ { "umode", ":", irc_cmd_mode, N_("umode <+|-><A-Za-z>: Set or unset a user mode.") }, { "voice", ":", irc_cmd_op, N_("voice <nick1> [nick2] ...: Grant channel voice status to someone. You must be a channel operator to do this.") }, { "wallops", ":", irc_cmd_wallops, N_("wallops <message>: If you don't know what this is, you probably can't use it.") }, - { "whois", "n", irc_cmd_whois, N_("whois <nick>: Get information on a user.") }, + { "whois", "tt", irc_cmd_whois, N_("whois [server] <nick>: Get information on a user.") }, { NULL, NULL, NULL } };