Bug 954983 - Remove whowas command, duplicate of whois, r=aleth.

This commit is contained in:
Patrick Cloke 2012-06-26 19:41:57 -04:00
Родитель 15461590e1
Коммит ffaa5e80bb
2 изменённых файлов: 8 добавлений и 17 удалений

Просмотреть файл

@ -71,7 +71,6 @@ command.version=%S <nick>: Request the version of a user's client.
command.voice=%S <nick1>[,<nick2>]*: Grant channel voice status to someone. You must be a channel operator to do this.
command.wallops=%S <message>: If you don't know what this is, you probably can't use it (sends a command to all connected with the +w flag and all operators on the server.
command.whois=%S <nick>: Get information on a user.
command.whowas=%S <nick>: Get information on a user that has logged off.
# LOCALIZATION NOTE (message.*):
# These are shown as system messages in the conversation.

Просмотреть файл

@ -108,14 +108,6 @@ function ctcpCommand(aConv, aTarget, aCommand, aMsg) {
return true;
}
function whoisCommand(aMsg, aConv) {
aMsg = aMsg.trim();
if (!aMsg || aMsg.indexOf(" ") != -1)
return false;
getConv(aConv).requestBuddyInfo(aMsg);
return true;
}
var commands = [
{
name: "action",
@ -368,13 +360,13 @@ var commands = [
{
name: "whois",
get helpString() _("command.whois", "whois"),
run: whoisCommand
},
{
name: "whowas",
get helpString() _("command.whowas", "whowas"),
// We can run whoisCommand here as that will automatically execute whowas
// if the nick is offline (and show the nick is actually online if not).
run: whoisCommand
run: function(aMsg, aConv) {
// Note that this will automatically run whowas is the nick is offline.
aMsg = aMsg.trim();
if (!aMsg || aMsg.indexOf(" ") != -1)
return false;
getConv(aConv).requestBuddyInfo(aMsg);
return true;
}
}
];