\r
controlbox.on('command:whois', whoisCommand);\r
\r
+ controlbox.on('command:whowas', whowasCommand);\r
+\r
\r
controlbox.on('command:css', function (ev) {\r
var queryString = '?reload=' + new Date().getTime();\r
}\r
\r
\r
+ function whowasCommand (ev) {\r
+ var nick;\r
+\r
+ if (ev.params[0]) {\r
+ nick = ev.params[0];\r
+ } else if (_kiwi.app.panels().active.isQuery()) {\r
+ nick = _kiwi.app.panels().active.get('name');\r
+ }\r
+\r
+ if (nick)\r
+ _kiwi.app.connections.active_connection.gateway.raw('WHOWAS ' + nick);\r
+ }\r
+\r
+\r
function serverCommand (ev) {\r
var server, port, ssl, password, nick,\r
tmp;\r