VOID WriteChatColor(PCHAR Line, DWORD Color, DWORD Filter) { if (!bPluginCS) return; if (gFilterMQ) return; PluginDebug("Begin WriteChatColor()"); EnterMQ2Benchmark(bmWriteChatColor); if(size_t len = strlen(Line)) { if(char *PlainText = (char*)LocalAlloc(LPTR,len+1)) { StripMQChat(Line,PlainText); CheckChatForEvent(PlainText); LocalFree(PlainText); } DebugSpew("WriteChatColor(%s)",Line); } CAutoLock Lock(&gPluginCS); PMQPLUGIN pPlugin=pPlugins; while(pPlugin) { if (pPlugin->WriteChatColor) { pPlugin->WriteChatColor(Line,Color,Filter); } pPlugin=pPlugin->pNext; } ExitMQ2Benchmark(bmWriteChatColor); }
PCHAR ParseMacroParameter(PSPAWNINFO pChar, PCHAR szOriginal) { PCHARINFO pCharInfo = GetCharInfo(); if (!pCharInfo) return szOriginal; EnterMQ2Benchmark(bmParseMacroParameter); ParseMacroData(szOriginal); ExitMQ2Benchmark(bmParseMacroParameter); return (szOriginal); }