1.1 --- a/core/ChatTriggers.cpp Tue Mar 19 11:18:44 2013 -0400
1.2 +++ b/core/ChatTriggers.cpp Tue Mar 19 11:19:19 2013 -0400
1.3 @@ -283,7 +283,11 @@
1.4 /* Execute the cached command */
1.5 int client = g_ConCmds.GetCommandClient();
1.6 unsigned int old = SetReplyTo(SM_REPLY_CHAT);
1.7 +#if SOURCE_ENGINE == SE_DOTA
1.8 + engine->ClientCommand(PEntityOfEntIndex(client), "%s", m_ToExecute);
1.9 +#else
1.10 serverpluginhelpers->ClientCommand(PEntityOfEntIndex(client), m_ToExecute);
1.11 +#endif
1.12 SetReplyTo(old);
1.13 }
1.14 }