View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-01-2012 , 23:23   Re: Block Advertising
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Well, all you just did was implement a very small subset of Regex. I highly doubt that this has fewer false positives than a properly formatted RegEx pattern. I'd like to see an efficiency comparison between this and RegEx because have quite a few native calls there for every single letter typed in chat.

Color chat does not work in all games so either remove color chat or change the the plugin to Counter-Strike only.
Yes, removing Color Chat would be a great idea.
I think a Bypass flag is not needed.

Instead of:

PHP Code:
!szText
You may check the length:

PHP Code:
if( strlenszText ) < 
Change Changelog to [ code ], [ quote ] or even [ spoiler ] + [ code ] tag.

Good job!

And the greatest question is: there is no possibility to do that using RegEx?

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
PS: What does this mean?
PHP Code:
enum (<<=1
It means an enumeration of bytes.
A byte may be checked with "&" operator.
__________________

Last edited by claudiuhks; 10-01-2012 at 23:32.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks