Please fix ugly bug.
This code:
PHP Code:
[IMG]http://img408.**************/img408/2045/unledya.png[/IMG] And people somethimes writes: /vips who su** d*** |
Re: Please fix ugly bug.
Isn't it quite obvious? You're checking if the string CONTAINS /vips not checking if first 5 letters/the whole string is EQUAL to /vips. Thus allowing people to write /vipsthatsuckd***s.
|
Re: Please fix ugly bug.
How to fix that? Its not mine code :)
|
Re: Please fix ugly bug.
use the equal() instead of contain()
|
Re: Please fix ugly bug.
Like this?
PHP Code:
|
Re: Please fix ugly bug.
Note that just registering the command to 'say /vips' would be more efficient than hooking 'say' and retrieving the string to check if it's equal to something.
|
Re: Please fix ugly bug.
Fixed. Thank you Xellath!
|
Re: Please fix ugly bug.
Quote:
|
| All times are GMT -4. The time now is 14:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.