Bug 1313137 - "msg is not defined" error in irc.js:changeBuddyNick. r=clokep
authoraleth <aleth@instantbird.org>
Wed, 26 Oct 2016 20:16:58 +0200
changeset 20612 f547ba47f2b6d7e31cbc642fba1ca9364eb49bb5
parent 20611 ec0c3abd5590c70a70a2f72511f3a0cb46cd12ab
child 20613 f8953e4e9a6417bfc0391ab214610d19e31b596d
push id12457
push useraleth@instantbird.org
push dateWed, 26 Oct 2016 19:26:06 +0000
treeherdercomm-central@f547ba47f2b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
bugs1313137
Bug 1313137 - "msg is not defined" error in irc.js:changeBuddyNick. r=clokep
chat/protocols/irc/irc.js
--- a/chat/protocols/irc/irc.js
+++ b/chat/protocols/irc/irc.js
@@ -1305,17 +1305,18 @@ ircAccount.prototype = {
       // Get the current conversation and rename it.
       let conversation = this.getConversation(aOldNick);
 
       // Remove the old reference to the conversation and create a new one.
       this.removeConversation(aOldNick);
       this.conversations.set(aNewNick, conversation);
 
       conversation.updateNick(aNewNick);
-      conversation.writeMessage(aOldNick, msg, {system: true});
+      conversation.writeMessage(aOldNick, _conv("nickSet", aOldNick, aNewNick),
+                                {system: true});
     }
   },
 
   /*
    * Ask the server to change the user's nick.
    */
   changeNick: function(aNewNick) {
     this._sentNickname = aNewNick;