Bug 779836 - Cannot connect to IRC channels. r=mconley, a=Standard8.
authorPatrick Cloke <clokep@gmail.com>
Fri, 03 Aug 2012 09:52:06 -0400
changeset 12528 d30295ff26919bdd34f5b2a67bd21bb1482bb966
parent 12527 a4b3e0cbff5db0257325e0a1e6bac5fb6656b439
child 12529 36db44dc2aca13edabb81c694fc754e87aa8d692
push idunknown
push userunknown
push dateunknown
reviewersmconley, Standard8
bugs779836
Bug 779836 - Cannot connect to IRC channels. r=mconley, a=Standard8.
chat/protocols/irc/irc.js
--- a/chat/protocols/irc/irc.js
+++ b/chat/protocols/irc/irc.js
@@ -887,17 +887,18 @@ ircAccount.prototype = {
     // the server.
     this._quitTimer = setTimeout(this.gotDisconnected.bind(this), 2 * 1000);
   },
 
   createConversation: function(aName) this.getConversation(aName),
 
   // aComponents implements prplIChatRoomFieldValues.
   joinChat: function(aComponents) {
-    let params = [aComponents.getValue("channel")];
+    let channel = aComponents.getValue("channel");
+    let params = [channel];
     let password = aComponents.getValue("password");
     if (password)
       params.push(password);
     // Send the join command, but don't log the channel key.
     this.sendMessage("JOIN", params,
                      "JOIN " + channel + (password ? " <key not logged>" : ""));
   },