diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/chanopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 === */ |