aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-01-26 17:27:37 +0100
committerMarius Halden <marius.h@lden.org>2016-05-07 14:27:54 +0200
commit60971b4b15ec390e62d9df0bcf29e496adf0596c (patch)
treedc76622304da7546abdbeb1560d55e9f5f22546d
parent4a8a96e8fd6296f45dec382c65dbd8234a6672c3 (diff)
Correct strict_away logic when setting away
-rw-r--r--irc_commands.c4
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 {