core/ChatTriggers.cpp
changeset 4041 72a666cb56df
parent 4037 4af1c2ab3816
child 4042 8bc2d9569803
     1.1 --- a/core/ChatTriggers.cpp	Fri Aug 23 00:18:13 2013 -0700
     1.2 +++ b/core/ChatTriggers.cpp	Fri Aug 23 07:28:07 2013 -0400
     1.3 @@ -333,8 +333,11 @@
     1.4  {
     1.5  	int client = g_ConCmds.GetCommandClient();
     1.6  
     1.7 -	if (m_bWillProcessInPost && client > 0)
     1.8 +	if (m_bWillProcessInPost)
     1.9  	{
    1.10 +		/* Reset this for re-entrancy */
    1.11 +		m_bWillProcessInPost = false;
    1.12 +		
    1.13  		/* Execute the cached command */
    1.14  		unsigned int old = SetReplyTo(SM_REPLY_CHAT);
    1.15  #if SOURCE_ENGINE == SE_DOTA
    1.16 @@ -345,9 +348,6 @@
    1.17  		SetReplyTo(old);
    1.18  	}
    1.19  
    1.20 -	/* Reset this for re-entrancy */
    1.21 -	m_bWillProcessInPost = false;
    1.22 -
    1.23  	if (m_bPluginIgnored)
    1.24  	{
    1.25  		m_bPluginIgnored = false;