X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=server%2Firc%2Fchannel.js;h=fb97f5f67cb0af571b7f5e72f6f733a8ab8017de;hb=d9285da94333adc6daded7b8db990db59a77a653;hp=819e06c5a532546e606acd016952563641a5a52b;hpb=dea06eac95ef40e2b79159009c1dd4b9e38999d2;p=KiwiIRC.git diff --git a/server/irc/channel.js b/server/irc/channel.js index 819e06c..fb97f5f 100644 --- a/server/irc/channel.js +++ b/server/irc/channel.js @@ -27,7 +27,7 @@ var IrcChannel = function(irc_connection, name) { topicsetby: onTopicSetBy, mode: onMode }; - EventBinder.bindIrcEvents('channel:' + this.name, this.irc_events, this, irc_connection); + EventBinder.bindIrcEvents('channel ' + this.name, this.irc_events, this, irc_connection); } @@ -35,7 +35,7 @@ module.exports = IrcChannel; IrcChannel.prototype.dispose = function (){ - EventBinder.unbindIrcEvents('channel:' + this.name, this.irc_events, this.irc_connection); + EventBinder.unbindIrcEvents('channel ' + this.name, this.irc_events, this.irc_connection); this.irc_connection = undefined; }; @@ -210,29 +210,3 @@ function onMode(event) { modes: event.modes }); }; - - -/* -server:event -server:* -channel:#channel:event -channel:*:event -user:event -user:* - -Server disconnected: - server:disconnect - server:* - -Joining channel #kiwiirc: - channel:#kiwiirc:join - channel:*:join - -Channel message: - channel:#kiwiirc:privmsg - channel:*:privmsg - -Private message: - user:privmsg - user:* -*/ \ No newline at end of file