![]() |
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.


3 comments ↓
nice script, thanks for publishing it
thanks!
/xaop add *!www-data@yoda2031.co.uk ALL ALL
INVALID ADD STRING!
I think it’s the “-” in www-data, it’s a legit ident though as it is used by my web-based IRC client…
I sent an email via your webform but it said “could not authenticate” so I decided to post a comment as well, just in case.
I’m gonna hack it for myself but I figured I’d be nice and let you know the bug. Might steal your red-on-black input css as well… it’s sexy
Leave a Comment