Bug 955528 - JS-Yahoo: Add /conference command to create Yahoo conferences. r=clokep

This commit is contained in:
Quentin Headen 2014-05-06 14:20:26 -04:00
Родитель 5c9d8fdf66
Коммит 2bb71c9ac3
2 изменённых файлов: 19 добавлений и 3 удалений

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

@ -25,7 +25,13 @@ options.ignoreInvites=Ignore conference invitations
system.message.conferenceLogoff=%S has left the conference.
system.message.conferenceLogon=%S has joined the conference.
command.help.invite=/invite <user1>[,<user2>,...] [<invite message>]: invite one or more users into this conference chat.
# LOCALZIATION NOTE (command.*):
# These are the help messages for each command, the %S is the command name
# Each command first gives the parameter it accepts and then a description of
# the command.
command.help.invite=%S <user1>[,<user2>,...] [<invite message>]: invite one or more users into this conference chat.
command.help.conference=%S: Create a new conference room in which you can later invite other users.
# LOCALIZATION NOTE (command.feedback.invite):
# %S is the user, or comma separated list of users, invited to the conference.
command.feedback.invite=You have invited %S to the conference.

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

@ -541,8 +541,8 @@ YahooProtocol.prototype = {
commands: [
{
name: "invite",
get helpString() _("command.help.invite"),
usageContext: Ci.imICommand.CMD_CONTEXT_CHAT,
get helpString() _("command.help.invite", "invite"),
usageContext: Ci.imICommand.CMD_CONTEXT_ALL,
run: function(aMsg, aConv) {
if (aMsg.trim().length == 0)
return false;
@ -569,6 +569,16 @@ YahooProtocol.prototype = {
{system: true, noLog: true});
conf._account.LOG("Sending conference invite to " + invitees);
return true;
},
},
{
name: "conference",
get helpString() _("command.help.conference", "conference"),
usageContext: Ci.imICommand.CMD_CONTEXT_CHAT,
run: function(aMsg, aConv) {
aConv.account.joinChat(null);
return true;
}
}
],