this.username = this.nick.replace(/[^0-9a-zA-Z\-_.\/]/, '');
this.gecos = ''; // Users real-name. Uses default from config if empty
this.password = options.password || '';
+ this.quit_message = ''; // Uses default from config if empty
// Set the passed encoding. or the default if none giving or it fails
if (!options.encoding || !this.setEncoding(options.encoding)) {
if (!that.save_state) {
_.each(that.irc_connections, function (irc_connection, i, cons) {
if (irc_connection) {
- irc_connection.end('QUIT :' + (global.config.quit_message || ''));
+ irc_connection.end('QUIT :' + (irc_connection.quit_message || global.config.quit_message || ''));
global.servers.removeConnection(irc_connection);
cons[i] = null;
}