Skip to content
Browse files

modules/saslserv: set up pending login event for PUID ircds only.

  • Loading branch information...
1 parent aaad2bc commit 8784e724872441bac100f4af4efc112e0076a14c @kaniini kaniini committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/saslserv/main.c
View
6 modules/saslserv/main.c
@@ -432,10 +432,14 @@ int login_user(sasl_session_t *p)
/* We just did SASL authentication for a user. With IRCds which do not have unique UIDs for users,
* we will likely be expecting the login data to be bursted.
+ * As a result, we should give the core a heads' up that this is going to happen so that hooks will be
+ * properly fired...
*/
- mu->flags |= MU_LOGINPENDING;
if (ircd->flags & IRCD_SASL_USE_PUID)
+ {
mu->flags &= ~MU_NOBURSTLOGIN;
+ mu->flags |= MU_PENDINGLOGIN;
+ }
return 1;
}

0 comments on commit 8784e72

Please sign in to comment.
Something went wrong with that request. Please try again.