fix false positives when checking chanopts

This commit is contained in:
TingPing 2013-04-26 09:37:14 -03:00
parent 07bc467d03
commit 6982bbfef9
1 changed files with 3 additions and 3 deletions

View File

@ -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 === */