This patch allows you to use (posix) regular
expressions in a few (NICK, IDENT, HOST, INFO)
trace/addalert criteria.
Example:
<@ThiefMaster> ?trace print regex 1 nick
^(asdf|test)[0-9]+$
-OpServ- The following users were found:
-OpServ- asdf123!moo@you.do.not.need.to.care.about.my.host
-OpServ- test1!moo@you.do.not.need.to.care.about.my.host
-OpServ- test2!moo@you.do.not.need.to.care.about.my.host
-OpServ- Found 3 matches.
<@ThiefMaster> ?trace print regex 1 nick (asdf|test)
-OpServ- The following users were found:
-OpServ- asdf123!moo@you.do.not.need.to.care.about.my.host
-OpServ- anothertest!~xyz@moo
-OpServ- test1!moo@you.do.not.need.to.care.about.my.host
-OpServ- test2!moo@you.do.not.need.to.care.about.my.host
-OpServ- Found 4 matches.
The most recent version is also available at
http://www.planetcoding-server.net/srvx/opserv-regex-trace.patch
patch for regexes in trace criteria