James Seward 2ea14c1350 WIP fixup READMEs 6 лет назад
..
README.md 2ea14c1350 WIP fixup READMEs 6 лет назад
hostclean.tcl 314bff65cd hostclean working properly 13 лет назад
parse.py d2bdf327ce add hostclean stuff 13 лет назад

README.md

HostClean

HostClean helps tidy up old entries in your bot for users hostmasks.

First, run log files (e.g. from your client) through parse.py - expects lines to have something matching "joins (user@hostname)" (or quits). Outputs user@host entries, one per line, for the TCL script. Run it many times and concatenate the output, then use sort and uniq to sanitise.

Something like this:

$( for f in "#channel.*.log"; do python parse.py "$f"; done ) | sort | uniq > hosts.txt

Then load the TCL script into your bot, and run .hostload <path to file you made above>, and then do .hostclean <handle> for each user.

The script outputs a bunch of .-host lines on the partyline, which you should double check, and then you can copy/paste them back into the partyline to execute them.