Backed out changeset: 6118b70b1103 (bug 5864).

This commit is contained in:
Nicholas Hastings 2013-08-23 07:31:56 -04:00
parent 7dba540b97
commit 8860e18026

View File

@ -331,17 +331,17 @@ void ChatTriggers::OnSayCommand_Post()
{ {
int client = g_ConCmds.GetCommandClient(); int client = g_ConCmds.GetCommandClient();
if (m_bWillProcessInPost && client > 0) if (m_bWillProcessInPost)
{ {
/* Reset this for re-entrancy */
m_bWillProcessInPost = false;
/* Execute the cached command */ /* Execute the cached command */
unsigned int old = SetReplyTo(SM_REPLY_CHAT); unsigned int old = SetReplyTo(SM_REPLY_CHAT);
serverpluginhelpers->ClientCommand(PEntityOfEntIndex(client), m_ToExecute); serverpluginhelpers->ClientCommand(PEntityOfEntIndex(client), m_ToExecute);
SetReplyTo(old); SetReplyTo(old);
} }
/* Reset this for re-entrancy */
m_bWillProcessInPost = false;
if (m_bPluginIgnored) if (m_bPluginIgnored)
{ {
m_bPluginIgnored = false; m_bPluginIgnored = false;