[Hide Auto-joins] Match channel names case insensitively, r=clokep.
authorFlorian Quèze <florian@instantbird.org>
Sun Jan 15 22:31:03 2012 +0100 (4 months ago)
changeset 4123a6c11f2b6c
parent 40 e02aab0a21ab
child 42 4aa68947d711
[Hide Auto-joins] Match channel names case insensitively, r=clokep.
hideautojoins/bootstrap.js
     1.1 --- a/hideautojoins/bootstrap.js
     1.2 +++ b/hideautojoins/bootstrap.js
     1.3 @@ -65,11 +65,11 @@
     1.4    if (!autojoin)
     1.5      return true;
     1.6  
     1.7 -  autojoin = autojoin.split(",");
     1.8 +  autojoin = autojoin.toLowerCase().split(",");
     1.9    if (protocolId != "prpl-irc")
    1.10      autojoin = autojoin.map(function(r) r.replace(/\/.*/, ""));
    1.11  
    1.12 -  return autojoin.indexOf(aSubject.name) == -1;
    1.13 +  return autojoin.indexOf(aSubject.name.toLowerCase()) == -1;
    1.14  }
    1.15  
    1.16  function startup(data, reason)