Skip to content

Commit

Permalink
Better safe than sorry - make sure to never overwrite existing joined…
Browse files Browse the repository at this point in the history
… data
  • Loading branch information
Michael Ortmann committed May 29, 2024
1 parent 9e0ed14 commit 3ad2803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mod/irc.mod/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,8 @@ static int got352or4(struct chanset_t *chan, char *user, char *host,
/* Combine n!u@h */
m->user = NULL; /* No handle match (yet) */
if (match_my_nick(nick)) { /* Is it me? */
m->joined = now;
if (!m->joined)
m->joined = now;
strcpy(botuserhost, m->userhost); /* Yes, save my own userhost */
}
m->flags |= WHO_SYNCED;
Expand Down

0 comments on commit 3ad2803

Please sign in to comment.