:D
if text in ("(b1)", "(b2)", "(b3)", "(b4)", "(b5)", "(b6)", "(b7)"):
return
not_allowed = [ "(b1)", "(b2)", "(b3)", "(b4)", "(b5)", "(b6)", "(b7)" ]
if text in not_allowed:
return
Quote:
I like it but I would call it more as of a Anti-Flood System.
And instead of doing that many 'if statements' I would do it like this:
ORPHP Code:if text in ("(b1)", "(b2)", "(b3)", "(b4)", "(b5)", "(b6)", "(b7)"):
return
PHP Code:not_allowed = [ "(b1)", "(b2)", "(b3)", "(b4)", "(b5)", "(b6)", "(b7)" ]
if text in not_allowed:
return
Hm, I didn't say otherwise...Quote:
Miguelmig that what u wrote came with the original client, it has to do with the emoticons nothing to do with the anti spam and yes it is an anti spam not anti flood lool