Permalink
Browse files

[fix] Minor fixes.

  • Loading branch information...
1 parent 372e5d4 commit 62211349e6fdc7b48c64876a645d63e507fa9d78 @AvianFlu AvianFlu committed Oct 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/channel.js
  2. +1 −1 lib/kohai.js
View
@@ -34,7 +34,7 @@ Channel.prototype.config = function (key, value) {
if (typeof value === 'undefined') {
return this[key];
}
- if (this.hasOwnProperty(key)) {
+ if (typeof key === 'string') {
this[key] = value;
return key + ' has been set to ' + value;
}
View
@@ -140,7 +140,7 @@ Kohai.prototype.checkComment = function (data) {
Kohai.prototype.sayTweet = function (data) {
var self = this;
Object.getOwnPropertyNames(self.channels).forEach(function (channel) {
- if (self.channels[channel].wantsTweets) {
+ if (self.channels[channel].wantsTweets === 'true') {
if ((self.channels[channel].volume / 2) > self.channels[channel].currentTweetCount) {
self.emit('sendMsg', {dest: channel, msg: data});
self.channels[channel].currentTweetCount++;

0 comments on commit 6221134

Please sign in to comment.