Raised This Month: $ Target: $400
 0% 

Auto swear gag


Post New Thread Reply   
 
Thread Tools Display Modes
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-16-2012 , 20:24   Re: Auto swear gag
Reply With Quote #31

Hm, is there a limit in the filters? All filters after line 124 dont work.. :E
And if i delete that word, its still the same, so its not a bug in the filters..

Edit:
Something is verry wrong with the filters.

Code:
L 02/17/2012 - 04:35:39: [AMXX] Plugin ("swear_filter.amxx") is setting itself as failed.
L 02/17/2012 - 04:35:39: [AMXX] Plugin says: Error on creating the Regex pattern.
L 02/17/2012 - 04:35:39: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 04:35:39: [AMXX] Run time error 1: forced exit 
L 02/17/2012 - 04:35:39: [AMXX]    [0] swear_filter.sma::LoadPattern (line 219)
L 02/17/2012 - 04:35:39: [AMXX]    [1] swear_filter.sma::plugin_init (line 39)

I cant use "regex" "*lol*"

* = fail
* = Matches the preceding element zero or more times. For example, ab*c matches "ac", "abc", "abbbc", etc.

Last edited by Ejziponken; 02-16-2012 at 22:43. Reason: edit
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-16-2012 , 23:49   Re: Auto swear gag
Reply With Quote #32

Quote:
Originally Posted by Schpraaankiii View Post
I changed amx_show_activity to 1 and it works now. But it looks a little bit strange...

"PLAYER: Has gagged k0nan from speaking for 10 minutes! (say / say_team / voicecomm"

Should'nt it be like "k0nan has been gagged from speaking for 10 minutes! (say / say_team / voicecomm" insted.
It recognizes the server as an admin, but it looks like the server has the "user" flag.
Check your users.ini and see if "loopback" admin has "z" flag (if so, remove it).

Quote:
Originally Posted by Schpraaankiii View Post
EDIT
I have one more request...
I want a list of allowed words for when you are gagged. So if a player gets gaggad he shoud still be able to type words from this list whithout the "You are gagged..."- text to apear.
In this list there will be things like: /rank /xp /admin ... and so on.
Put the gag plugin underneath plugins (in the plugins.ini) that have those commands.

Quote:
Originally Posted by Ejziponken View Post
Hm, is there a limit in the filters? All filters after line 124 dont work.. :E
And if i delete that word, its still the same, so its not a bug in the filters..

Edit:
Something is verry wrong with the filters.

Code:
L 02/17/2012 - 04:35:39: [AMXX] Plugin ("swear_filter.amxx") is setting itself as failed.
L 02/17/2012 - 04:35:39: [AMXX] Plugin says: Error on creating the Regex pattern.
L 02/17/2012 - 04:35:39: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 04:35:39: [AMXX] Run time error 1: forced exit 
L 02/17/2012 - 04:35:39: [AMXX]    [0] swear_filter.sma::LoadPattern (line 219)
L 02/17/2012 - 04:35:39: [AMXX]    [1] swear_filter.sma::plugin_init (line 39)

I cant use "regex" "*lol*"

* = fail
* = Matches the preceding element zero or more times. For example, ab*c matches "ac", "abc", "abbbc", etc.
Because "*lol*" is not a valid expression.
* = Matches the preceding element zero or more times. For example, ab*c matches "ac", "abc", "abbbc", etc.

Well, you have "*" at the start at the expression, with nothing preceding it, so the pattern fails.
If you are trying to allow any character for "*", you need to use ".*".

Anyway, you don't have to put that around the expression since it already checks if it is anywhere in the said text.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-17-2012 , 00:10   Re: Auto swear gag
Reply With Quote #33

Edit: It still bugs becuse some work and some dosent..

"regex" ".*fitta" <- works
"regex" ".*fittunge" <- works
"regex" ".*fuck" <- works
"regex" ".*h0r4" <- works
"regex" ".*h0ra" <- works
"regex" ".*hor4" <- works
"regex" ".*horfitt" <- works
"regex" ".*horor" <- works
"regex" ".*klnulla" <- dont work
"regex" ".*knull" <- dont work
"regex" ".*kuk" <- dont work
"regex" ".*neger" <- dont work
"regex" ".*nigga" <- dont work
"regex" ".*niggah" <- dont work
"regex" ".*niggen" <- dont work
"regex" ".*nigger" <- dont work
"regex" ".*blatte" <- dont work
"regex" ".*aids" <- dont work
"regex" ".*cancer" <- dont work
"regex" ".*horlagg" <- dont work
"regex" ".*horung" <- dont work
"regex" ".*javla mongo" <- dont work
"regex" ".*javla svenne" <- dont work
"regex" ".*kuksug" <- dont work
"regex" ".*neger" <- dont work
"regex" ".*vittu" <- dont work
"regex" ".*fega hor" <- dont work
"regex" ".*dum i huv" <- dont work

Even if I remove ".*" from all those it fails the same.

Last edited by Ejziponken; 02-17-2012 at 00:29.
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2012 , 01:03   Re: Auto swear gag
Reply With Quote #34

It logs an error if there is a problem.
Check your normal AMXX logs (addons/amxmodx/configs/L(date).log) and see if the message is there.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-17-2012 , 06:54   Re: Auto swear gag
Reply With Quote #35

Quote:
Originally Posted by Exolent[jNr] View Post
It logs an error if there is a problem.
Check your normal AMXX logs (addons/amxmodx/configs/L(date).log) and see if the message is there.
No errors.

Console:
krEJZI : aids
* Your message was caught by the swear filt

Still, "fitta" gets blocked and "aids" dont get blocked.
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2012 , 10:01   Re: Auto swear gag
Reply With Quote #36

I updated it to log the pattern after it loads the file.
Can you run it and paste the pattern here?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-17-2012 , 11:20   Re: Auto swear gag
Reply With Quote #37

Quote:
Originally Posted by Exolent[jNr] View Post
Updated to allow RegEx in file. See post for details.
L 02/17/2012 - 17:19:09: [swear_filter.amxx] Pattern being used: "(fitta)|(fittunge)|(fuck)|(h0r4)|(h0ra)|(hor 4)|(horfitt)|(horor)|(h0r0r)|(klnulla)|(knull )|(kuk)|(nigga)|(niggah)|(niggen)|(nigger)|(b latte)|(aids)|(cancer)|(horlagg)|(horung)|(ja vla mongo)|(javla svenne)|(kuksug)|(neger)|(vittu)|(fega hor)|(dum i huv)"

Edit: Dont know why "blatte" has a space, "(b latte)", in the file it dosent have it so i think its a forum bug.

Last edited by Ejziponken; 02-17-2012 at 11:26.
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2012 , 11:45   Re: Auto swear gag
Reply With Quote #38

Quote:
Originally Posted by Ejziponken View Post
L 02/17/2012 - 17:19:09: [swear_filter.amxx] Pattern being used: "(fitta)|(fittunge)|(fuck)|(h0r4)|(h0ra)|(hor 4)|(horfitt)|(horor)|(h0r0r)|(klnulla)|(knull )|(kuk)|(nigga)|(niggah)|(niggen)|(nigger)|(b latte)|(aids)|(cancer)|(horlagg)|(horung)|(ja vla mongo)|(javla svenne)|(kuksug)|(neger)|(vittu)|(fega hor)|(dum i huv)"
Pattern looks fine in text, but maybe something happens when compiling it, such as it being too long?
I've posted a new version which breaks them up into individual patterns.

Quote:
Originally Posted by Ejziponken View Post
Edit: Dont know why "blatte" has a space, "(b latte)", in the file it dosent have it so i think its a forum bug.
The forum breaks up text that is too many characters too long without spaces.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 02-17-2012 , 11:50   Re: Auto swear gag
Reply With Quote #39

L 02/17/2012 - 17:49:21: Invalid array handle provided (0)
L 02/17/2012 - 17:49:21: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:49:21: [AMXX] Run time error 10: native error (native "ArrayPushArray")
L 02/17/2012 - 17:49:21: [AMXX] [0] swear_filter.sma::LoadPattern (line 231)
L 02/17/2012 - 17:49:21: [AMXX] [1] swear_filter.sma::plugin_init (line 44)

L 02/17/2012 - 17:51:02: Invalid array handle provided (0)
L 02/17/2012 - 17:51:02: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:51:02: [AMXX] Run time error 10: native error (native "ArrayDestroy")
L 02/17/2012 - 17:51:02: [AMXX] [0] swear_filter.sma::plugin_end (line 95)


L 02/17/2012 - 17:51:02: Invalid array handle provided (0)
L 02/17/2012 - 17:51:02: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:51:02: [AMXX] Run time error 10: native error (native "ArrayPushArray")
L 02/17/2012 - 17:51:02: [AMXX] [0] swear_filter.sma::LoadPattern (line 231)
L 02/17/2012 - 17:51:02: [AMXX] [1] swear_filter.sma::plugin_init (line 44)

Last edited by Ejziponken; 02-17-2012 at 11:53.
Ejziponken is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2012 , 11:54   Re: Auto swear gag
Reply With Quote #40

Quote:
Originally Posted by Ejziponken View Post
L 02/17/2012 - 17:49:21: Invalid array handle provided (0)
L 02/17/2012 - 17:49:21: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:49:21: [AMXX] Run time error 10: native error (native "ArrayPushArray")
L 02/17/2012 - 17:49:21: [AMXX] [0] swear_filter.sma::LoadPattern (line 231)
L 02/17/2012 - 17:49:21: [AMXX] [1] swear_filter.sma::plugin_init (line 44)

L 02/17/2012 - 17:51:02: Invalid array handle provided (0)
L 02/17/2012 - 17:51:02: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:51:02: [AMXX] Run time error 10: native error (native "ArrayDestroy")
L 02/17/2012 - 17:51:02: [AMXX] [0] swear_filter.sma::plugin_end (line 95)


L 02/17/2012 - 17:51:02: Invalid array handle provided (0)
L 02/17/2012 - 17:51:02: [AMXX] Displaying debug trace (plugin "swear_filter.amxx")
L 02/17/2012 - 17:51:02: [AMXX] Run time error 10: native error (native "ArrayPushArray")
L 02/17/2012 - 17:51:02: [AMXX] [0] swear_filter.sma::LoadPattern (line 231)
L 02/17/2012 - 17:51:02: [AMXX] [1] swear_filter.sma::plugin_init (line 44)
Forgot a line. It's been fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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:59.


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