As for automatically remove all bans older than 1 hour or whatever you want I updated the code:
Code: Select all
Code cemoved cos will read after some proper testing. Enough making a fool of myself for today. xD
Also, notice that there's a new channel flag called clearbans that you need to activate with .chanset #channel +clearbans on the channels where you want the 1 hour (or whatever) bans to be removed automatically.
Oh, and if the nick isn't specified in the channel bans list and not bot's internal bans list, then the "simple user . ! ub nick not other bans" is kind of impossible to achieve. What I mean by this? If you have mIRC do /debug @x then a /mode #channel b where #channel is an actual channel you are on and see the output in the @x window that just showed up.
Let's take as example my output:
Code: Select all
<- :amsterdam.nl.eu.undernet.org 367 me #EggDrop *!~eggy@modemcable*.mc.videotron.ca * 1548937832
If you wanted !clearbans, .cb, !cb to do the same thing then duplicate the line with !clearbans and change the command to .cb or whatever you want.
Edit: Fixed typo.