]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix `/help command` to pass full command.
authorJoseph Price <redacted>
Wed, 16 Dec 2015 11:46:47 +0000 (11:46 +0000)
committerJoseph Price <redacted>
Wed, 16 Dec 2015 11:46:47 +0000 (11:46 +0000)
Was passing `/help command[0]` to the server previously.
This meant `/help topic` returned `t Help not found` for example.

js/irc/commands.js

index f55f0a8ba4e7be8b8858513533e18493a76bd6b6..5c16785e28485c8669743f9fc5aa97def5c08d12 100644 (file)
@@ -220,7 +220,7 @@ qwebirc.irc.Commands = new Class({
   cmd_AUTOJOIN: [false, undefined, undefined, function(args) {
     return ["JOIN", this.parentObject.options.autojoin];
   }],
   cmd_AUTOJOIN: [false, undefined, undefined, function(args) {
     return ["JOIN", this.parentObject.options.autojoin];
   }],
-  cmd_HELP: [false, undefined, undefined, function(args) {
+  cmd_HELP: [false, 1, undefined, function(args) {
     if(qwebirc.global.helpURL) {
       this.newUIWindow("helpWindow");
     } else {
     if(qwebirc.global.helpURL) {
       this.newUIWindow("helpWindow");
     } else {