Skip to content

Commit

Permalink
Fix log for 900 (RPL_LOGGEDIN) and 901 (RPL_LOGGEDOUT)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ortmann committed Nov 30, 2023
1 parent 322bddb commit c1e95d2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/mod/server.mod/servmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1523,21 +1523,24 @@ static int gotauthenticate(char *from, char *msg)
return 0;
}

/* Got 900: RPL_SASLLOGGEDIN, user account name is set */
/* Got 900: RPL_LOGGEDIN, is sent when the users account name is set (whether by SASL or otherwise) */
static int got900(char *from, char *msg)
{
newsplit(&msg); /* nick */
newsplit(&msg); /* nick!ident@host */
newsplit(&msg); /* account */
fixcolon(msg);
putlog(LOG_SERV, "*", "SASL: %s", msg);
putlog(LOG_SERV, "RPL_LOGGEDIN: %s", msg);
return 0;
}

/* Got 901: RPL_LOGGEDOUT, user account is logged out */
/* Got 901: RPL_LOGGEDOUT, users account name is unset (whether by SASL or otherwise) */
static int got901(char *from, char *msg)
{
putlog(LOG_SERV, "*", "SASL: Account has been logged out");
newsplit(&msg); /* nick */
newsplit(&msg); /* nick!ident@host */
fixcolon(msg);
putlog(LOG_SERV, "RPL_LOGGEDOUT: %s", msg);
return 0;
}

Expand Down

0 comments on commit c1e95d2

Please sign in to comment.