Blockland Forums > Suggestions & Requests
A better curse word filter.
Brian Smithers:
$pref::chat::BleepWord = "block";
function isSwearWord(%word)
{
%swears = strReplace($pref::Chat::CurseList,",","\t");
for(%i=0;%i<getFieldCount(%swears);%i++)
{
%swear = getField(%swears,%i);
if(strPos(%word,%swear) > -1)
return true;
}
return false;
}
package blockBleep
{
function serverCmdMessageSent(%client,%msg)
{
for(%i=0;%i<getWordCount(%msg);%i++)
{
%word = getWord(%msg,%i);
if(isSwearWord(%word))
{
%word = $pref::chat::bleepWord;
}
%newmsg = %newmsg SPC %word;
}
parent::serverCmdMessageSent(%client,%newmsg);
}
};activatepackage(blocKBleep);
untested, probably will work though
Blocki:
--- Quote from: Brian Smithers on November 24, 2012, 08:25:37 PM ---untested, probably will work though
--- End quote ---
that fücking script wont fugging work cause you can just use fuccing other spellings
Legodude77:
--- Quote from: Blocki on November 24, 2012, 08:29:32 PM ---that fücking script wont fugging work cause you can just use fuccing other spellings
--- End quote ---
This is the reason why the curse filter doesn't work in the first place. PEOPLE DON'T ACTUALLY SAY THE WORD. And its usually people who don't know how to turn OFF the filter.
Shadowed999:
--- Quote from: ShadowZero on November 24, 2012, 08:23:02 PM ---I think its fine the way it is, we don't want any younger kids on Blockland, also one of the reasons people don't want Blockland on steam is because they say its childish.
Also lots keep saying that if Blockland gets greenlit that it will bring kids into steam.
--- End quote ---
because not liking profanity in your games makes you childish.
Not to mention theres nothing wrong with younger players. If they dont want to follow the rules, ban em for a week. A majority of our players started fairly young
SpreadsPlague:
ok first, it's "bobba" that they replace it with (which they have since changed to traditional ********'s for swearing)
second, forget off.
how about parents teach their kids about swearing, when it is/isn't appropriate, and that whether or not to swear is the persons own choice and both of those choices are okay?