Raised This Month: $ Target: $400
 0% 

[Problem] Anti-Spam Lite (Edited version) BUG


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 05-11-2015 , 07:15   Re: [Problem] Anti-Spam Lite (Edited version) BUG
Reply With Quote #1

Alright good , i cant see the point of adding "i" , anyway i have try it in Vb.net , nvm glad to see it works !
Freezo Begin is offline
MeinHerzBrennt
Junior Member
Join Date: Oct 2014
Location: Split, Croatia
Old 05-11-2015 , 07:48   Re: [Problem] Anti-Spam Lite (Edited version) BUG
Reply With Quote #2

Well i have no clue why the "i" is there but it works now xD
The bug with that word "depres" disappeared, numbers can be written as "12 13 14 15"
Date of births can be also written, etc.

Also it ignores admins when they post IP's on chat or anything similar, that's ofcourse OK
But it kicks them if they try to connect to the server with IP in their nickname dunno why is that
As I can see in code even that should be bypassed if client is admin, but somehow the plugin ignores
adminship when they try to connect to server rather than when they are already connected, then it works.

Last edited by MeinHerzBrennt; 05-11-2015 at 07:57.
MeinHerzBrennt is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 05-11-2015 , 11:26   Re: [Problem] Anti-Spam Lite (Edited version) BUG
Reply With Quote #3

So if you learn c++ you obviously know the return 1 & 0 , so as you can see there is an method to check admin which is

Code:
if( is_user_admin(id) )
return

PLUGIN_CONTINUE : 0
PLUGIN_HANDLED : 1

So you would do if is user admin then ignore it .
The solution is just

PHP Code:
if (!is_user_admin(id)){
        
//do ur stuff 

Freezo Begin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode