EventBinder = require('./eventbinder.js'),
_ = require('lodash');
-var IrcServer = function (irc_connection, host, port) {
+var IrcServer = function (irc_connection) {
this.irc_connection = irc_connection;
- this.host = host;
- this.port = port;
this.list_buffer = [];
this.motd_buffer = '';
chanop_privs_needed: onChanopPrivsNeeded,
nickname_in_use: onNicknameInUse
};
- EventBinder.bindIrcEvents('server:' + this.host, this.irc_events, this, this.irc_connection);
+ EventBinder.bindIrcEvents('server:*', this.irc_events, this, this.irc_connection);
};
IrcServer.prototype.dispose = function (){
- EventBinder.unbindIrcEvents('server:' + this.host, this.irc_events, this.irc_connection);
+ EventBinder.unbindIrcEvents('server:*', this.irc_events, this.irc_connection);
this.irc_connection = undefined;
};