Bug 1012666 - Fix up checking if IRC topics are settable: fix typo causing bustage. r=clokep a=DONTBUILD chat-only regression fix on CLOSED TREE
authorNihanth Subramanya <nhnt11@gmail.com>
Fri, 30 May 2014 01:53:16 +0530
changeset 16269 16295350aca3
parent 16268 114feac4036f
child 16270 5dd3c0e27d09
push id10167
push userclokep@gmail.com
push dateThu, 29 May 2014 20:33:32 +0000
treeherdercomm-central@16295350aca3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep, DONTBUILD
bugs1012666
Bug 1012666 - Fix up checking if IRC topics are settable: fix typo causing bustage. r=clokep 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
@@ -535,17 +535,17 @@ ircChannel.prototype = {
   get topic() this._topic, // can't add a setter without redefining the getter
   set topic(aTopic) {
     // Note that the UI isn't updated here because the server will echo back the
     // TOPIC to us and we'll set it on receive.
     this._account.sendMessage("TOPIC", [this.name, aTopic]);
   },
   get topicSettable() {
     // We must be in the room to set the topic.
-    if (!this.left)
+    if (this.left)
       return false;
 
     // If the channel mode is +t, hops and ops can set the topic; otherwise
     // everyone can.
     let participant = this.getParticipant(this.nick);
     return !this._modes.has("t") || participant.op || participant.halfOp;
   }
 };