Bug 799068 - Land in comm-central Instantbird's changes to chat/ - 3 - Bio 1684 - Name of the inviter not correctly displayed when invited to join an IRC channel, r=fqueze, a=Standard8.
authorPatrick Cloke <clokep@gmail.com>
Wed, 29 Aug 2012 23:06:05 -0400
changeset 13470 b5d2e04a8d45bca2cd01f7b0d681e6fa9de5c748
parent 13469 28133b63f623f7faa6e9438fda345433468589d8
child 13471 e6284105877656566837ba027e19ca8cbd6e5067
push id705
push userflorian@queze.net
push dateWed, 10 Oct 2012 13:42:10 +0000
treeherdercomm-beta@e62841058776 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfqueze, Standard8
bugs799068
Bug 799068 - Land in comm-central Instantbird's changes to chat/ - 3 - Bio 1684 - Name of the inviter not correctly displayed when invited to join an IRC channel, r=fqueze, a=Standard8.
chat/protocols/irc/ircBase.jsm
--- a/chat/protocols/irc/ircBase.jsm
+++ b/chat/protocols/irc/ircBase.jsm
@@ -177,18 +177,18 @@ var ircBase = {
       }
       return true;
     },
     "INVITE": function(aMessage) {
       // INVITE <nickname> <channel>
       // Auto-accept the invite.
       this.joinChat(this.getChatRoomDefaultFieldValues(aMessage.params[1]));
       this.getConversation(aMessage.params[1])
-          .writeMessage(aMessage.params[0],
-                        _("message.inviteReceived", aMessage.params[0],
+          .writeMessage(aMessage.nickname,
+                        _("message.inviteReceived", aMessage.nickname,
                           aMessage.params[1]), {system: true});
       return true;
     },
     "JOIN": function(aMessage) {
       // JOIN ( <channel> *( "," <channel> ) [ <key> *( "," <key> ) ] ) / "0"
       // Add the buddy to each channel
       for each (let channelName in aMessage.params[0].split(",")) {
         let conversation = this.getConversation(channelName);