]> jfr.im git - irc/atheme/atheme-contrib-modules.git/commitdiff
don't block users logging in as themself
authorjesopo <redacted>
Thu, 2 Feb 2023 22:40:45 +0000 (22:40 +0000)
committerjesopo <redacted>
Thu, 2 Feb 2023 22:54:57 +0000 (22:54 +0000)
src/sasl_blacklist.c

index cdb1f3a30b31f5bbb4fd8f0476a1382517b33ff0..579618cf20ecf1feba1973e621eaf80053125fd0 100644 (file)
@@ -161,6 +161,10 @@ blacklist_can_login(hook_user_login_check_t *const restrict c)
        if (! c->si)
                return;
 
+       if (c->si->smu == c->mu)
+               // user is attempting to log in to what they're already logged in to, no need to refuse
+               return;
+
        if (c->si->service == saslsvs)
        {
                const struct sasl_sourceinfo *const ssi = (struct sasl_sourceinfo *) c->si;