For my first question, I am looking to change the nicks logged to file to match the hostname, the IRCd I am on uses the registered nickname as the hostname, for example:
12:31:00AM * Ladicius|Away (Ladicius@Ladicius) has left #channelname

I am looking to make pisg use the hostname with stats, instead of the nicknames because people change nicks a lot and this would be much more accurate and would work well do to how this IRCd operates, however I do not know perl so I figured changing the logs would be a much easier way of doing it.

I would change the logging to use this as the nickname which would produce their registered nick no matter what their current nickname is: $remove($address($nick,2),*,!,@))

Basically I'm wondering if I use an ON TEXT/ACTION event and halt the default, will it prevent the default from being logged to the files? and what's the best way to specify the path to the logs via variable? (because sometimes logging directories get changed)


What is the most efficient way to create an autobanning script? I have one that reads from a text file everytime someone enters, but it tends to get laggy when there are a lot of bans.