]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/irc/commandparser.js
Fix lowercase/uppercase queries/windows.
[irc/quakenet/qwebirc.git] / js / irc / commandparser.js
index 04070cd415c898bb45755407476a5f9c65bad15e..12ef4bd540fa79ea35bc9d9d236dcb94171e73ab 100644 (file)
@@ -179,6 +179,11 @@ qwebirc.irc.CommandParser = new Class({
     }
   }],
   cmd_QUERY: [false, 2, 1, function(args) {
+    if(this.parentObject.isChannel(args[0])) {
+      this.getActiveWindow().errorMessage("Can't target a channel with this command.");
+      return;
+    }
+
     this.parentObject.newWindow(args[0], qwebirc.ui.WINDOW_QUERY, true);
 
     if((args.length > 1) && (args[1] != ""))