Conditionally check result when WITH_LUA is defined
This commit is contained in:
parent
6698e036cf
commit
2b22068c48
1 changed files with 2 additions and 1 deletions
|
@ -555,9 +555,10 @@ namespace pvpgn
|
|||
#ifdef WITH_LUA
|
||||
// feature to ignore flood protection
|
||||
result = lua_handle_command(c, text, luaevent_command_before);
|
||||
#endif
|
||||
|
||||
if (result == -1)
|
||||
return result;
|
||||
#endif
|
||||
|
||||
if (result == 0)
|
||||
if ((text[0] != '\0') && (conn_quota_exceeded(c, text)))
|
||||
|
|
Loading…
Add table
Reference in a new issue