1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-10 11:25:08 -05: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)
return global;
if (per_chan_setting == SET_ON || per_chan_setting == SET_OFF)
return per_chan_setting;
else
return global;
}
/* === below is LOADING/SAVING stuff only === */