Don't send empty WHOIS commands
authorDarren <darren@darrenwhitlen.com>
Wed, 5 Jun 2013 22:27:46 +0000 (23:27 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 5 Jun 2013 22:27:46 +0000 (23:27 +0100)
client/assets/src/models/application.js

index f47e6c139bd6986701ebe4902f7f3d33732d7329..59b7d262d78a02fa4996b6b22518251e99289af2 100644 (file)
@@ -768,7 +768,8 @@ _kiwi.model.Application = function () {
                 nick = _kiwi.app.panels().active.get('name');\r
             }\r
 \r
-            _kiwi.app.connections.active_connection.gateway.raw('WHOIS ' + nick + ' ' + nick);\r
+            if (nick)\r
+                _kiwi.app.connections.active_connection.gateway.raw('WHOIS ' + nick + ' ' + nick);\r
         }\r
 \r
 \r