charybdis-ircd / charybdis

Scalable IRCv3.2 server for large, community-oriented networks
GNU General Public License v2.0
231 stars 102 forks source link

Recheck umodes for opers after rehash #289

Closed edk0 closed 4 years ago

edk0 commented 4 years ago

Currently if you gain or lose privileges due to a rehash your umodes won't update to reflect that, potentially leaving you with a, p, H etc. when you shouldn't have them (or not adding ones you should have) until you or someone else changes your mode (you can trigger this with /mode $nick +). Fix this the same way as for /grant, by calling user_mode() with noop arguments so it and any hooks get a chance to do things.