]> jfr.im git - irc/rizon/qchat.git/commitdiff
Add nick query click option (off by default).
authorChris Porter <redacted>
Wed, 2 Jun 2010 11:29:35 +0000 (12:29 +0100)
committerChris Porter <redacted>
Wed, 2 Jun 2010 11:29:35 +0000 (12:29 +0100)
js/ui/baseui.js
js/ui/panes/options.js

index ee9b7bdc2f8c134bb3fe6d36f3535613ff3385a5..c44fe99daccbf075b1ac43ec73c607db0ccb9c5f 100644 (file)
@@ -322,8 +322,12 @@ qwebirc.ui.StandardUI = new Class({
     /* doesn't really belong here */
     if(name == "whois") {
       return ["span", function(nick) {
-        this.client.exec("/WHOIS " + nick);
-      }.bind(window)];
+        if(this.uiOptions.QUERY_ON_NICK_CLICK) {
+          window.client.exec("/QUERY " + nick);
+        } else {
+          window.client.exec("/WHOIS " + nick);
+        }
+      }.bind(this)];
     }
 
     return null;
index c6a5522105b5ace516a951902e4d4b92f2625557..da3d7ca1ff8f85587e0444b441563fe0dc59a594 100644 (file)
@@ -48,7 +48,8 @@ qwebirc.config.DEFAULT_OPTIONS = [
     get: function(value, ui) {
       ui.setModifiableStylesheetValues(value, 0, 0);
     }
-  }]
+  }],
+  [12, "QUERY_ON_NICK_CLICK", "Query on nickname click in channel", false]
 ];
 
 qwebirc.config.DefaultOptions = null;