\r
controlbox.on('command_quote', this.quoteCommand);\r
\r
+ controlbox.on('command_k', this.kickCommand);\r
+ controlbox.on('command_kick', this.kickCommand);\r
+\r
\r
controlbox.on('command_css', function (ev) {\r
var queryString = '?reload=' + new Date().getTime();\r
kiwi.gateway.raw(raw);\r
};\r
\r
+ this.kickCommand = function (ev) {\r
+ var nick, panel = kiwi.app.panels.active;\r
+\r
+ if (!panel.isChannel()) return;\r
+\r
+ // Make sure we have a nick\r
+ if (ev.params.length === 0) return;\r
+\r
+ nick = ev.params[0];\r
+ ev.params.shift();\r
+\r
+ kiwi.gateway.kick(panel.get('name'), nick, ev.params.join(' '));\r
+ };\r
+\r
this.settingsCommand = function (ev) {\r
var panel = new kiwi.model.Applet();\r
panel.load(new kiwi.applets.Settings());\r