Fixed crash in OnSayCommand_Post with console chat, pass console chat (bug 5864, r=voided);
--HG-- extra : rebase_source : 4a1a1945efc119f40e7d55d4fdfcc250bdc0febc
This commit is contained in:
parent
4d2eb7af30
commit
5954f15989
@ -333,11 +333,8 @@ void ChatTriggers::OnSayCommand_Post()
|
|||||||
{
|
{
|
||||||
int client = g_ConCmds.GetCommandClient();
|
int client = g_ConCmds.GetCommandClient();
|
||||||
|
|
||||||
if (m_bWillProcessInPost)
|
if (m_bWillProcessInPost && client > 0)
|
||||||
{
|
{
|
||||||
/* 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);
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
@ -348,6 +345,9 @@ void ChatTriggers::OnSayCommand_Post()
|
|||||||
SetReplyTo(old);
|
SetReplyTo(old);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset this for re-entrancy */
|
||||||
|
m_bWillProcessInPost = false;
|
||||||
|
|
||||||
if (m_bPluginIgnored)
|
if (m_bPluginIgnored)
|
||||||
{
|
{
|
||||||
m_bPluginIgnored = false;
|
m_bPluginIgnored = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user