Conditionally check result when WITH_LUA is defined

This commit is contained in:
RElesgoe 2018-07-15 02:09:32 -07:00
parent 6698e036cf
commit 2b22068c48

View file

@ -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)))