core/ChatTriggers.cpp
changeset 4037 4af1c2ab3816
parent 4015 5f1fcac17b60
child 4041 72a666cb56df
     1.1 --- a/core/ChatTriggers.cpp	Thu Aug 22 21:45:40 2013 -0400
     1.2 +++ b/core/ChatTriggers.cpp	Thu Aug 22 21:45:42 2013 -0400
     1.3 @@ -333,11 +333,8 @@
     1.4  {
     1.5  	int client = g_ConCmds.GetCommandClient();
     1.6  
     1.7 -	if (m_bWillProcessInPost)
     1.8 +	if (m_bWillProcessInPost && client > 0)
     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 @@ -348,6 +345,9 @@
    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;