Blockland Forums > Modification Help
Chat filters
computermix:
Oh my, is there a way to make it case-sensitive? Because the built-in one is...
DrenDran:
--- Quote from: computermix on October 12, 2010, 06:24:56 PM ---Oh my, is there a way to make it case-sensitive? Because the built-in one is...
--- End quote ---
I didn't realize the default checking method was case-sensitive.
Convert both strings to lower case and then check for a non-case-sensitive check.
Also, the whole word filtering thing is a bad idea.
computermix:
--- Quote from: DrenDran on October 12, 2010, 09:13:31 PM ---I didn't realize the default checking method was case-sensitive.
Convert both strings to lower case and then check for a non-case-sensitive check.
Also, the whole word filtering thing is a bad idea.
--- End quote ---
Can you give an example? As in, I am new to scripting and "Strings"are a completely different case.(arnt they those words with "%" in front of them?) Oh yea, for the mark, I never said I was gonna make a word-blocker deal. Oh, and why?
Xalos:
%var = local variable. This function only.
$var = global variable. It stays until the console that defined it (yours, a server's, Badspot's secret hacking console, whatever) closes.
Both can be strings or not strings.
computermix:
--- Quote from: Xalos on October 12, 2010, 10:21:39 PM ---%var = local variable. This function only.
$var = global variable. It stays until the console that defined it (yours, a server's, Badspot's secret hacking console, whatever) closes.
Both can be strings or not strings.
--- End quote ---
I see. But what strings are capitalized? (In the code) and by when I talk Case sensitive... I mean, if the person says ThEwOrd it would catch it, because when You say "ThEwOrD", it down't catch it.