}\r
\r
function queryCommand (ev) {\r
- var destination, panel;\r
+ var destination, message, panel;\r
\r
destination = ev.params[0];\r
+ ev.params.shift();\r
+\r
+ message = ev.params.join(' ');\r
\r
// Check if we have the panel already. If not, create it\r
panel = that.connections.active_connection.panels.getByName(destination);\r
\r
if (panel) panel.view.show();\r
\r
+ if (message) {\r
+ that.connections.active_connection.gateway.msg(panel.get('name'), message);\r
+ panel.addMsg(_kiwi.app.connections.active_connection.get('nick'), message);\r
+ }\r
+\r
}\r
\r
function msgCommand (ev) {\r
-_kiwi.model.Query = _kiwi.model.Panel.extend({\r
+_kiwi.model.Query = _kiwi.model.Channel.extend({\r
initialize: function (attributes) {\r
var name = this.get("name") || "",\r
members;\r