Permalink
Browse files

Merge pull request #15 from rehandalal/talkback-in-pm

Fix error in talkback check
  • Loading branch information...
2 parents e1b4977 + 59a75e5 commit bc589bf5487aa321cc104b088f85fe04b94adace @mythmon mythmon committed Sep 26, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 standup-irc.js
View
5 standup-irc.js
@@ -419,8 +419,9 @@ var commands = {
usage: "[<loud|quiet>]",
func: function(user, channel, message, args) {
if (!args[0]) {
- var msg = 'Talkback is currently: ' +
- irc_client.say(channel, utils.channelSetting(channel, 'talkback'));
+ var tb = utils.channelSetting(channel, 'talkback');
+ var msg = 'Talkback is currently: ' + (tb ? tb : 'loud');
+ irc_client.say(channel, msg);
} else if ((args[0] === 'loud') || (args[0] === 'quiet')) {
if (args[0] === 'loud') {
irc_client.say(channel, 'I will respond in the channel from now on.');

0 comments on commit bc589bf

Please sign in to comment.