\r
source = is_pm ? event.nick : event.channel;\r
\r
- that.trigger('msg:' + source, event);\r
+ that.trigger('message:' + source, event);\r
+ that.trigger('message', event);\r
\r
if (is_pm) {\r
- that.trigger('pm', event);\r
that.trigger('pm:' + source, event);\r
+ that.trigger('pm', event);\r
}\r
}, this);\r
\r
// The notice towards a channel or a query window?\r
var source = event.target || event.nick;\r
\r
- this.trigger('notice', event);\r
this.trigger('notice:' + source, event);\r
+ this.trigger('notice', event);\r
}, this);\r
\r
\r
that.trigger('action:' + source, event);\r
\r
if (is_pm) {\r
- that.trigger('action', event);\r
that.trigger('action:' + source, event);\r
+ that.trigger('action', event);\r
}\r
}, this);\r
\r
\r
this.on('ontopic', function (event) {\r
- that.trigger('topic', event);\r
that.trigger('topic:' + event.channel, event);\r
+ that.trigger('topic', event);\r
});\r
};\r
\r
var input = kiwi.components.ControlInput();
this.on('applet_loaded', function () {
- irc.on('onmsg', function () {
+ irc.on('message', function () {
var bar = that.view.$el.find('.bar');
bar.width(bar.width()+1);
});
});
- input.on('command_graph', function (event) { console.log(event); });
+ input.on('command:graph', function (event) { console.log(event); });
},
canvas: function (event) {