Bug 955366 - Use Maps and Sets in IRC code: fix typo when deleting participants. r=florian a=DONTBUILD chat-only regression fix on CLOSED TREE
authorPatrick Cloke <clokep@gmail.com>
Sat, 10 May 2014 14:51:05 -0400
changeset 16186 06bdc6dad628f6d107292696f69850990ce2415c
parent 16185 27968692278f363fb3fef3fd13bb1b065036a098
child 16187 e41e714750eb242b1a6022b346717076d91f0bb3
push id10118
push userclokep@gmail.com
push dateSat, 10 May 2014 18:51:30 +0000
treeherdercomm-central@06bdc6dad628 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian, DONTBUILD
bugs955366
Bug 955366 - Use Maps and Sets in IRC code: fix typo when deleting participants. r=florian a=DONTBUILD chat-only regression fix on CLOSED TREE
chat/protocols/irc/irc.js
--- a/chat/protocols/irc/irc.js
+++ b/chat/protocols/irc/irc.js
@@ -352,17 +352,17 @@ ircChannel.prototype = {
     else if (!isParticipant) {
       this.ERROR("Trying to rename nick that doesn't exist! " + aOldNick +
                  " to " + aNewNick);
       return;
     }
 
     // Get the original ircParticipant and then remove it.
     let participant = this.getParticipant(aOldNick);
-    this._participants.delete(aNick);
+    this._participants.delete(aOldNick);
 
     // Update the nickname and add it under the new nick.
     participant._name = aNewNick;
     this._participants.set(aNewNick, participant);
 
     this.notifyObservers(participant, "chat-buddy-update", aOldNick);
   },
   removeParticipant: function(aNick) {