Raised This Month: $51 Target: $400
 12% 

Anti-Bigot with RegX matching


Post New Thread Reply   
 
Thread Tools Display Modes
Manip
Senior Member
Join Date: Jan 2004
Old 11-24-2004 , 17:04  
Reply With Quote #11

The text file goes in the AMXModX root directory for now.

The amx_ban command's format is,

name/Auth - time - [reason]

The %s inserts the Auth.
Manip is offline
Send a message via AIM to Manip
ronin
Member
Join Date: Jul 2004
Old 11-24-2004 , 19:19  
Reply With Quote #12

I have the regular expression module enabled
And the plugin works but doesn't log
And it spams the AMXX logs with:

L 11/24/2004 - 00:526: [AMXX] Plugin uses an unknown function (name "regex_free") - check your modules.ini. (plugin "amx_antibigot.amxx")

L 11/24/2004 - 01:00:13: [AMXX] Run time error 10 (native) (plugin "amx_antibigot.amxx") - debug not enabled.

L 11/24/2004 - 01:00:13: [RegEx] Invalid regex handle -1

L 11/24/2004 - 01:00:13: [AMXX] To enable debug mode, add " debug" after the plugin name in plugins.ini (without quotes).
ronin is offline
ronin
Member
Join Date: Jul 2004
Old 11-24-2004 , 19:44  
Reply With Quote #13

With debug mode enabled:

L 11/24/2004 - 17:556: [AMXX] Native error in "regex_free" on line 106 (file "amx_antibigot.sma").
L 11/24/2004 - 17:556: [RegEx] Invalid regex handle -1
ronin is offline
Manip
Senior Member
Join Date: Jan 2004
Old 11-25-2004 , 11:41  
Reply With Quote #14

ronin, I have updated the plugin based on your feedback (Thanks!) .. it is now version 1.0b.

The config file now lives in the config folder (not the AMXModx folder) and has an *.ini extension to be consistent with the other config files. You can find an example of Bigot.ini in the Zip file. The plugin now logs to the AMX logs instead of its own log file which makes it simpler to look-up and again more consistent.

It has a whole lot of other bug fixes and stuff ~ including the error listed directly above.

I would recommend everyone does this update, you can remove the original regular expressions list.
Manip is offline
Send a message via AIM to Manip
ronin
Member
Join Date: Jul 2004
Old 11-25-2004 , 12:01  
Reply With Quote #15

Great!

I'll install the update tonight and test.

When it logs does it log what was actually said in the new ver? Or does it just log "Person banned for banned word"?

The reason I ask it that I had two false positives on my server last night. In one case it was an admin, he says he typed something like "I'll get you next time gadget". I ended up having to change the basic list to look for specific words rather than the expressions, untill I could get it logging the chat.
ronin is offline
Manip
Senior Member
Join Date: Jan 2004
Old 11-25-2004 , 13:05  
Reply With Quote #16

The logging format looks like this:

Killed "Player1"(STEAM_0:0:00001) for saying "Fucking Jew"

Tells you the punishment, name, steamID and what they said.

*Please* post false-positives here. It will happen once, then it will never happen again.
Manip is offline
Send a message via AIM to Manip
ronin
Member
Join Date: Jul 2004
Old 11-25-2004 , 13:26  
Reply With Quote #17

Cool will do
ronin is offline
Morpheus
Senior Member
Join Date: Mar 2004
Old 11-26-2004 , 08:48  
Reply With Quote #18

Quote:
Originally Posted by Manip
The logging format looks like this:

Killed "Player1"(STEAM_0:0:00001) for saying "Fucking Jew"

Tells you the punishment, name, steamID and what they said.

*Please* post false-positives here. It will happen once, then it will never happen again.
2 questions:

1: The ini file, where should it be, under configs?

2: Well that is just for the log right?

This is not how the actual ban is made?

I tried out the amx_ban in console last night, and it replied to me that the line should look like this:

amx_ban [time] [name, user, Steamid] [Reason]

So my point is m8, that the code should look like this for amxban plugin to ban:

Code:
server_cmd("amx_ban 2880 %s Bad language",authtoban)
Cheers

Morpheus
Morpheus is offline
Manip
Senior Member
Join Date: Jan 2004
Old 11-26-2004 , 09:58  
Reply With Quote #19

Note: All of the following is about the current version. Not the 1.0 release.

Quote:
Originally Posted by Morpheus
1: The ini file, where should it be, under configs?
The base of configs, like - addons\amxmodx\configs, called 'Bigot.ini'

Quote:
Originally Posted by Morpheus
2: Well that is just for the log right?
The logging format is just how it logs what it does, has nothing to do with the config file that stores the regular expressions.


Quote:
Originally Posted by Morpheus
This is not how the actual ban is made?

I tried out the amx_ban in console last night, and it replied to me that the line should look like this:

amx_ban [time] [name, user, Steamid] [Reason]

So my point is m8, that the code should look like this for amxban plugin to ban:

Code:
server_cmd("amx_ban 2880 %s Bad language",authtoban)
Cheers

Morpheus
In my version of AMXModx (1.0) the format is listed as -

<name or #userid> <minutes> [reason]

In fact I have never seen it listed in any ban plugin with the time first.
Manip is offline
Send a message via AIM to Manip
Morpheus
Senior Member
Join Date: Mar 2004
Old 11-26-2004 , 10:48  
Reply With Quote #20

Well i tried it out last night with amx_ban from YoMama..

Try it out

Morpheus

P.s Thx for ur answers.
Morpheus 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 12:00.


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