diff options
author | Chris Porter <slug@qwebirc.org> | 2010-06-02 11:29:35 (GMT) |
---|---|---|
committer | Chris Porter <slug@qwebirc.org> | 2010-06-02 11:29:35 (GMT) |
commit | 2704a7e831e6cb54c82b9e1fe55162e18a6ac994 (patch) | |
tree | e756a3cf70068795b5e70f43e978b3c245517960 | |
parent | d69bff1f566ed938b62824ea13d72ee292f39132 (diff) |
Add nick query click option (off by default).
-rw-r--r-- | js/ui/baseui.js | 8 | ||||
-rw-r--r-- | js/ui/panes/options.js | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/js/ui/baseui.js b/js/ui/baseui.js index ee9b7bd..c44fe99 100644 --- a/js/ui/baseui.js +++ b/js/ui/baseui.js @@ -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; diff --git a/js/ui/panes/options.js b/js/ui/panes/options.js index c6a5522..da3d7ca 100644 --- a/js/ui/panes/options.js +++ b/js/ui/panes/options.js @@ -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; |