zTeam S6 Ep 3 Source -> Chatfilter doesn't work?!
Hi everybody.
I am working on the zteam season 6 episode 3 sources about 6 -7 mo and now I have just one problem, the chatfilter doesnt work...
I tryed to debug it. I added everywhere LogAddTD things.. And the log wrote "everything okey" because I seen in the log, the function is loaded or not.. And everything loaded...
But in the game if I write something bad word I can write again and again.. I dont get chatban..
Where is the problem? Something missing from the source, or what can be the problem?
I tryed with the default russian words too, and the new added words.. but nohing...
Thanks...
Re: zTeam S6 Ep 3 Source -> Chatfilter doesn't work?!
Quote:
Originally Posted by
djsad94
Hi everybody.
I am working on the zteam season 6 episode 3 sources about 6 -7 mo and now I have just one problem, the chatfilter doesnt work...
I tryed to debug it. I added everywhere LogAddTD things.. And the log wrote "everything okey" because I seen in the log, the function is loaded or not.. And everything loaded...
But in the game if I write something bad word I can write again and again.. I dont get chatban..
Where is the problem? Something missing from the source, or what can be the problem?
I tryed with the default russian words too, and the new added words.. but nohing...
Thanks...
Edit the ya Filter.bmd in yah client.
put the Bad words you want to add.
Save and Exit.
Others :
If you want to change the Filter message
Search for "Pwned by the Filter!" in text.bmd I think or Filter.bmd then change it to whatever you want.
(for ex. "Oops") XD
Done
Re: zTeam S6 Ep 3 Source -> Chatfilter doesn't work?!
I am speak about the zteam chatfilter system.
If you write bad words for example: /post fck... you get X min chatban.
Quote:
if( g_ChatFilter.CheckText(lpChat->chatmsg) == 0 ) //itt nulla volt
{
if( g_ChatFilter.UsePenalty )
{
lpObj->ChatLitmitTime += g_ChatFilter.BanTime;
g_ChatFilterLog.Output("[%s] [%s] (%s) Get chat block +%d [Total: %d]", lpObj->AccountID, lpObj->Name, lpChat->chatmsg, g_ChatFilter.BanTime, lpObj->ChatLitmitTime);
char Text[100];
ZeroMemory(Text, 99);
sprintf(Text, "[ChatFilter] You get +%d minute of ban time", g_ChatFilter.BanTime);
GCServerMsgStringSend(Text, aIndex, 1);
}
// ----
memcpy(lpChat->chatmsg, "*censored*", MAX_CHAT_LEN-1);
}
Re: zTeam S6 Ep 3 Source -> Chatfilter doesn't work?!
Quote:
Originally Posted by
djsad94
I am speak about the zteam chatfilter system.
If you write bad words for example: /post fck... you get X min chatban.
ooh. I didn't actually understand your post. so I thought it's just a word filter , something like that.
my apology. :)
Re: zTeam S6 Ep 3 Source -> Chatfilter doesn't work?!
there is no problem. And of course i will add the words to the filter.bmd... but i dont want to CRC check every files in my client, so maybe this feature is better :P Because you cant "hack" the serverside list, and because the serverside make the chat block, everything can be better :P