зеркало из https://github.com/mozilla/pjs.git
Bug 150140 - Support /whois nick nick, and add /wii.
ChatZilla only. r=rginda
This commit is contained in:
Родитель
1d3e26978e
Коммит
6839a81a0f
|
@ -168,6 +168,7 @@ function initCommands()
|
|||
["who", cmdWho, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
["whois", cmdWhoIs, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
["whowas", cmdSimpleCommand, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
["wii", cmdWhoIsIdle, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
|
||||
/* aliases */
|
||||
["css", "motif", CMD_CONSOLE],
|
||||
|
@ -1969,9 +1970,28 @@ function cmdWho(e)
|
|||
e.server.who(e.pattern);
|
||||
}
|
||||
|
||||
function cmdWhoIs (e)
|
||||
function cmdWhoIs(e)
|
||||
{
|
||||
e.server.whois(e.nickname);
|
||||
for (var i = 0; i < e.nicknameList.length; i++)
|
||||
{
|
||||
if ((i < e.nicknameList.length - 1) &&
|
||||
(e.server.toLowerCase(e.nicknameList[i]) ==
|
||||
e.server.toLowerCase(e.nicknameList[i + 1])))
|
||||
{
|
||||
e.server.whois(e.nicknameList[i] + " " + e.nicknameList[i]);
|
||||
i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.server.whois(e.nicknameList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function cmdWhoIsIdle(e)
|
||||
{
|
||||
for (var i = 0; i < e.nicknameList.length; i++)
|
||||
e.server.whois(e.nicknameList[i] + " " + e.nicknameList[i]);
|
||||
}
|
||||
|
||||
function cmdTopic(e)
|
||||
|
|
|
@ -524,7 +524,10 @@ cmd.who.help = List users who have name, host, or description information matc
|
|||
cmd.whois.format = Whois $nickname
|
||||
cmd.whois.label = Whois
|
||||
cmd.whois.params = <nickname> [<...>]
|
||||
cmd.whois.help = Displays information about the user <nickname>, including 'real name', server connected to, idle time, and signon time. Note that some servers will lie about the idle time.
|
||||
cmd.whois.help = Displays information about the user <nickname>, including 'real name', server connected to, idle time, and signon time. Note that some servers will lie about the idle time. The correct idle time can usually be obtained by using |wii| inatead of |whois|.
|
||||
|
||||
cmd.wii.params = <nickname> [<...>]
|
||||
cmd.wii.help = Displays the same information as |whois|, but asks the server to include the user's real idle time.
|
||||
|
||||
cmd.whowas.params = <nick-pattern>
|
||||
cmd.whowas.help = List brief information for users with a nickname matching <nick-pattern> who have recently logged on to the IRC network.
|
||||
|
|
Загрузка…
Ссылка в новой задаче