inspircd / inspircd-contrib

Third-party InspIRCd module repository.
https://www.inspircd.org
66 stars 72 forks source link

Autokick don't work if samode is used #229

Open H7-25 opened 4 years ago

H7-25 commented 4 years ago

Using m_autokick, if samode is used, only the ban is placed and users are not autokicked

genius3000 commented 4 years ago

Having a look, I'm guessing this would be due to the checking of ranks (which is proper). The module only kicks users whose rank is lower than the mode (ban) setter's rank. So if you are currently rank-less and use SAMODE or MODE with override, it won't do anything.

Could add some sort of oper override. Something like if rank-less and oper, allow. Or maybe add an oper privilege to limit the ability. Thoughts/input?