diff --git a/extensions/irc/xul/content/commands.js b/extensions/irc/xul/content/commands.js index 82e9fd4a4fa4..bfa6bb9d3b63 100644 --- a/extensions/irc/xul/content/commands.js +++ b/extensions/irc/xul/content/commands.js @@ -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); diff --git a/extensions/irc/xul/locale/en-US/chatzilla.properties b/extensions/irc/xul/locale/en-US/chatzilla.properties index 51e90a501010..39705b18b853 100644 --- a/extensions/irc/xul/locale/en-US/chatzilla.properties +++ b/extensions/irc/xul/locale/en-US/chatzilla.properties @@ -427,7 +427,7 @@ cmd.motif-dark.label = Dar&k Motif cmd.motif-light.label = &Light Motif cmd.msg.params = -cmd.msg.help = Sends a private message to . +cmd.msg.help = Sends the private message to . cmd.name.params = 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 = [ [<...>]] 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 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 = +cmd.notice.help = Sends the notice to . + cmd.op.label = Give Operator Status cmd.op.params = [<...>] cmd.op.help = Gives operator status to on current channel. Requires operator status.