From 6982bbfef96cb6e42ca8f5f330b5fa4665ca388c Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 26 Apr 2013 09:37:14 -0300 Subject: fix false positives when checking chanopts --- src/common/chanopt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/chanopt.c b/src/common/chanopt.c index 91b5087b..65c27d58 100644 --- a/src/common/chanopt.c +++ b/src/common/chanopt.c @@ -159,10 +159,10 @@ chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[]) gboolean chanopt_is_set (unsigned int global, guint8 per_chan_setting) { - if (per_chan_setting == SET_DEFAULT) + if (per_chan_setting == SET_ON || per_chan_setting == SET_OFF) + return per_chan_setting; + else return global; - - return per_chan_setting; } /* === below is LOADING/SAVING stuff only === */ -- cgit 1.4.1