зеркало из https://github.com/mozilla/gecko-dev.git
Bug 277839 - Add /notice command.
ChatZilla only. r=samuel@sieb.net p=gijskruitbosch@gmail.com (Gijs "Hannibal" Kruitbosch)
This commit is contained in:
Родитель
cb9dbe532f
Коммит
75fdda4d41
|
@ -132,6 +132,7 @@ function initCommands()
|
|||
["network-pref", cmdPref, CMD_NEED_NET | CMD_CONSOLE],
|
||||
["networks", cmdNetworks, CMD_CONSOLE],
|
||||
["nick", cmdNick, CMD_CONSOLE],
|
||||
["notice", cmdNotice, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
["notify", cmdNotify, CMD_NEED_SRV | CMD_CONSOLE],
|
||||
["open-at-startup", cmdOpenAtStartup, CMD_CONSOLE],
|
||||
["pass", cmdPass, CMD_NEED_NET | CMD_CONSOLE],
|
||||
|
@ -1812,7 +1813,7 @@ function cmdQuery(e)
|
|||
{
|
||||
e.message = filterOutput(e.message, "PRIVMSG", "ME!");
|
||||
user.display(e.message, "PRIVMSG", "ME!", user);
|
||||
user.say(e.message, e.sourceObject);
|
||||
user.say(e.message);
|
||||
}
|
||||
|
||||
return user;
|
||||
|
@ -1828,7 +1829,7 @@ function cmdSay(e)
|
|||
|
||||
var msg = filterOutput(e.message, "PRIVMSG", "ME!");
|
||||
e.sourceObject.display(msg, "PRIVMSG", "ME!", e.sourceObject);
|
||||
e.sourceObject.say(msg, e.sourceObject);
|
||||
e.sourceObject.say(msg);
|
||||
}
|
||||
|
||||
function cmdMsg(e)
|
||||
|
@ -1837,7 +1838,7 @@ function cmdMsg(e)
|
|||
|
||||
var msg = filterOutput(e.message, "PRIVMSG", "ME!");
|
||||
e.sourceObject.display(msg, "PRIVMSG", "ME!", target);
|
||||
target.say(msg, target);
|
||||
target.say(msg);
|
||||
}
|
||||
|
||||
function cmdNick(e)
|
||||
|
@ -1851,6 +1852,15 @@ function cmdNick(e)
|
|||
client.prefs["nickname"] = e.nickname;
|
||||
}
|
||||
|
||||
function cmdNotice(e)
|
||||
{
|
||||
var target = e.server.addTarget(e.nickname);
|
||||
|
||||
var msg = filterOutput(e.message, "NOTICE", "ME!");
|
||||
e.sourceObject.display(msg, "NOTICE", "ME!", target);
|
||||
target.notice(msg);
|
||||
}
|
||||
|
||||
function cmdQuote(e)
|
||||
{
|
||||
e.server.sendData(fromUnicode(e.ircCommand) + "\n", e.sourceObject);
|
||||
|
|
|
@ -427,7 +427,7 @@ cmd.motif-dark.label = Dar&k Motif
|
|||
cmd.motif-light.label = &Light Motif
|
||||
|
||||
cmd.msg.params = <nickname> <message>
|
||||
cmd.msg.help = Sends a private message <msg> to <nickname>.
|
||||
cmd.msg.help = Sends the private message <message> to <nickname>.
|
||||
|
||||
cmd.name.params = <username>
|
||||
cmd.name.help = Changes the username displayed before your hostmask if the server you're connecting to allows it. Some servers will only trust the username reply from the ident service. You must specify this *before* connecting to the network.
|
||||
|
@ -452,6 +452,9 @@ cmd.nick.help = Changes your current nickname.
|
|||
cmd.notify.params = [<nickname> [<...>]]
|
||||
cmd.notify.help = With no parameters, /notify shows you the online/offline status of all the users on your notify list. If one or more <nickname> parameters are supplied, the nickname(s) will be added to your notify list if they are not yet on it, or removed from it if they are.
|
||||
|
||||
cmd.notice.params = <nickname> <message>
|
||||
cmd.notice.help = Sends the notice <message> to <nickname>.
|
||||
|
||||
cmd.op.label = Give Operator Status
|
||||
cmd.op.params = <nickname> [<...>]
|
||||
cmd.op.help = Gives operator status to <nickname> on current channel. Requires operator status.
|
||||
|
|
Загрузка…
Ссылка в новой задаче