]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Patch from tomaw adding an option to hide JOIN/PART/QUIT messages.
authorChris Porter <redacted>
Fri, 24 Jul 2009 23:51:35 +0000 (00:51 +0100)
committerChris Porter <redacted>
Fri, 24 Jul 2009 23:51:35 +0000 (00:51 +0100)
js/irc/ircclient.js
js/ui/panes/options.js

index b8cee6f3b27e893c9d00f457400711faf7b943ed..826f12b76f5b3f996dc8e47ed22e8df9551b3097 100644 (file)
@@ -238,7 +238,9 @@ qwebirc.irc.IRCClient = new Class({
     if(nick == this.nickname) {
       this.newChanLine(channel, "OURJOIN", user);
     } else {
-      this.newChanLine(channel, "JOIN", user);
+      if(!this.ui.uiOptions.HIDE_JOINPARTS) {
+        this.newChanLine(channel, "JOIN", user);
+      }
     }
     this.updateNickList(channel);
   },
@@ -250,7 +252,9 @@ qwebirc.irc.IRCClient = new Class({
       this.tracker.removeChannel(channel);
     } else {
       this.tracker.removeNickFromChannel(nick, channel);
-      this.newChanLine(channel, "PART", user, {"m": message});
+      if(!this.ui.uiOptions.HIDE_JOINPARTS) {
+        this.newChanLine(channel, "PART", user, {"m": message});
+      }
     }
   
     this.updateNickList(channel);
@@ -304,7 +308,9 @@ qwebirc.irc.IRCClient = new Class({
     var clist = [];
     for(var c in channels) {
       clist.push(c);
-      this.newChanLine(c, "QUIT", user, {"m": message});
+      if(!this.ui.uiOptions.HIDE_JOINPARTS) {
+        this.newChanLine(c, "QUIT", user, {"m": message});
+      }
     }
     
     this.tracker.removeNick(nick);
index 221d105c1345fe0c70e1ccf92c1b803349b09012..b93698e4af19b84c624920646a2e8ee30cfc312e 100644 (file)
@@ -36,7 +36,8 @@ qwebirc.config.DEFAULT_OPTIONS = [
   [8, "LASTPOS_LINE", "Show a last position indicator for each window", true, {
     enabled: qwebirc.ui.supportsFocus
   }],
-  [9, "NICK_COLOURS", "Automatically colour nicknames", false]
+  [9, "NICK_COLOURS", "Automatically colour nicknames", false],
+  [10, "HIDE_JOINPARTS", "Hide JOINS/PARTS/QUITS", false]
 ];
 
 qwebirc.config.DefaultOptions = null;