1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-08-13 16:53:48 -04:00

fix false positives when checking chanopts

This commit is contained in:
TingPing 2013-04-26 09:37:14 -03:00
parent 07bc467d03
commit 6982bbfef9

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