Author Topic: Announcement  (Read 7289 times)

rudyman

  • Guest
Ohh, I see what you're asking.
Just add this at the top of the function:
if(!isClean(%text)){return;}

That's it :)

I'll add it in after my %text = StripMLControlChars(%text); so they can't use stuff to pass the filter

Also, can you explain how I use that?

rudyman

  • Guest
commandToServer('messageSent',"Hi");
?

I mean, what prefs have to be set, etc.

rudyman

  • Guest
You don't need to create any prefs.

It uses the default prefs that badspot has in his server pref file.

It looks like this:

$Pref::Server::CurseFilter = 1;
$Pref::Server::CurseList = "stuff,forget,fuk,cunt,monday,starfish,friend, cigarette , suck my , richard ,";
$Pref::Server::ETardFilter = 1;
$Pref::Server::ETardList = " u , r , ur , wat , wut , wuts , wit , dat , loel , y ,";
« Last Edit: March 10, 2007, 10:10:14 PM by rudyman »

Oh goodie! How can I make a message appear to the clients?

messageclient(%client,'','words',vars);

rudyman

  • Guest
That should already be in your serverCmdMessageSent() modification.