Fix typo testing VIF_CHANGED
This error seemed to be benign, because I don't think there was a way to get here with int_flags non-zero without VIF_CHANGED already set. Remove unnecessary tests for 'value' and '!value', because value is always non-NULL in that code path.
This commit is contained in:
@@ -935,11 +935,9 @@ void set_var_value(int var_index, char *value, IrcVariableDll *dll)
|
||||
else
|
||||
say("SET: no such user");
|
||||
}
|
||||
if ((!var->int_flags & VIF_CHANGED))
|
||||
if (!(var->int_flags & VIF_CHANGED))
|
||||
{
|
||||
if ((var->string && ! value) ||
|
||||
(! var->string && value) ||
|
||||
my_stricmp(var->string, value))
|
||||
if (!var->string || my_stricmp(var->string, value))
|
||||
var->int_flags |= VIF_CHANGED;
|
||||
}
|
||||
if (loading_global)
|
||||
|
||||
Reference in New Issue
Block a user