Permalink
Browse files

[fix] More fixes for merged config namespaces.

  • Loading branch information...
1 parent 1a37442 commit 919a06dc65affd754fa5e2c5b1173a8e3b91cf3a @AvianFlu AvianFlu committed Oct 8, 2011
Showing with 2 additions and 4 deletions.
  1. +1 −1 lib/kohai.js
  2. +0 −2 lib/listeners.js
  3. +1 −1 lib/plugins/help.js
View
@@ -53,7 +53,7 @@ Kohai.prototype.gotMessage = function (data) {
var idCheck = this.idCheck ? '\\+' : '',
trigger = new RegExp('^'
+ idCheck
- + this.channels[data.to]
+ + this.channels[data.to].commandString
+ '\\w+\\s?\\w*.*');
this.channels[data.to].messageCount++;
if (trigger.test(data.text)) {
View
@@ -12,8 +12,6 @@ listeners.init = function () {
});
self.on('*::gotMessage', function (data) {
- console.dir(data)
- console.log('nick: %s', self.nick)
if (data.to === self.nick) {
return self.checkAuth(data);
}
View
@@ -11,7 +11,7 @@ var help = module.exports = function (data, command) {
if (command.length === 1) {
this.emit('sendMsg', {
dest: data.nick,
- msg: 'Hi! I\'m ' + this.ircNick + '. For help topics, type `help list`.'
+ msg: 'Hi! I\'m ' + this.nick + '. For help topics, type `help list`.'
});
}
else if (command[1] in helpInfo) {

0 comments on commit 919a06d

Please sign in to comment.