Skip to content

Commit

Permalink
Log account changes as join, not mode.
Browse files Browse the repository at this point in the history
(Only channel ops can change modes, users can change their own account)
  • Loading branch information
DasBrain committed Oct 7, 2024
1 parent 4c3b90f commit 2bcf845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod/irc.mod/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ static void setaccount(char *nick, char *account)
/* account was known */
if (m->account[0]) {
if (!strcmp(account, "*")) {
putlog(LOG_MODES, chan->dname, "%s!%s has logged out of their account", nick, m->userhost);
putlog(LOG_JOIN, chan->dname, "%s!%s has logged out of their account", nick, m->userhost);
} else {
putlog(LOG_MODES, chan->dname, "%s!%s logged in to their account %s", nick, m->userhost, account);
putlog(LOG_JOIN, chan->dname, "%s!%s logged in to their account %s", nick, m->userhost, account);
}
check_tcl_account(m->nick, m->userhost, get_user_from_member(m), chan->dname, account);
}
Expand Down

0 comments on commit 2bcf845

Please sign in to comment.