diff options
author | Marius Halden <marius.h@lden.org> | 2016-01-26 17:27:37 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-05-07 14:27:54 +0200 |
commit | 60971b4b15ec390e62d9df0bcf29e496adf0596c (patch) | |
tree | dc76622304da7546abdbeb1560d55e9f5f22546d /irc_commands.c | |
parent | 4a8a96e8fd6296f45dec382c65dbd8234a6672c3 (diff) |
Correct strict_away logic when setting away
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/irc_commands.c b/irc_commands.c index d7b31406..e8936a6d 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -744,9 +744,9 @@ static void irc_cmd_away(irc_t *irc, char **cmd) away[j] = '\0'; if (set_getbool(&irc->b->set, "strict_away")) { - irc_send_num(irc, 306, ":You're now away: %s", away); - } else { irc_send_num(irc, 306, ":You have been masked as being away"); + } else { + irc_send_num(irc, 306, ":You're now away: %s", away); } set_setstr(&irc->b->set, "away", away); } else { |