1) Invite botproc need_unban {chan type} {
global chanserv channel
putquick "PRIVMSG $chanserv :invite $chan"
putserv "JOIN $chan"
puthelp "PRIVMSG $chanserv :unban $chan me"
}
2) Bot join $chan
3) Unban bot
On first kickban, when on channel set +k (key) mode, we see this:
It's ok, but on second kickbanmode: (da|Fire_FoX) sets (-o+b TestBot *!*@atlant.vescom.ru)
kick: (TestBot) was kicked by (da|Fire_FoX)
-vescom.dal.net.ru@#TestBot- ChanServ invited TestBot into the channel.
join: (TestBot) (~TestBot@atlant.vescom.ru)
mode: (ChanServ) sets (+o TestBot)
mode: (ChanServ) sets (-b *!*@atlant.vescom.ru)
problem with join on channelmode: (da|Fire_FoX) sets (-o+b TestBot *!*@atlant.vescom.ru)
kick: (TestBot) was kicked by (da|Fire_FoX)
-vescom.dal.net.ru@#TestBot- ChanServ invited TestBot into the channel.
mode: (ChanServ) sets (-b *!*@atlant.vescom.ru)

How to fix it?