![]() |
I coded a configurable xchat auto-op script in python, it is available here: xhat auto-op script. Please leave bug reports and feature requests on the script’s page. If there is enough interest, I will port it to C and create a native xchat plugin, so also leave a message if you are looking for a native plugin. |
The script is pretty straight-forward. The biggest issue was figuring out the regular expressions to use for hostmask matching.
As a matter of interest, I determine a valid hostmask with this regex:
IRC_HOSTMASK_REGEX = r’^([a-zA-Z0-9\[\]\\^_-{|}*]+)!([a-zA-Z0-9\[\]\\^_-{|}~*]+)@([a-zA-Z0-9*.-]+)$’
Valid nick characters are: a-z A-Z 0-9 [ \ ] ^ _ - { | } [UnrealIRCD documentation]
Channel prefixes are: ["#","&","!"]
Operator prefixes are: ["~","&","@"]
The biggest issue porting this to C would be regex matching, since there are no standard regex libraries included with distributions of C compilers for windows. I will have to use MinGW ,using the GNU regex library in linux and compile the source to a dll.
Please leave a comment or a message on the site so I can determine the level of interest.


2 comments ↓
nice script, thanks for publishing it
thanks!
Leave a Comment