Skip to content

Commit

Permalink
Properly set chanjoin time for Eggdrop
Browse files Browse the repository at this point in the history
Found by: Empus
Patch by: michaelortmann
Fixes: #1590
  • Loading branch information
michaelortmann authored Jul 28, 2024
1 parent 6fd2092 commit 12a03b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mod/irc.mod/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,8 +1080,11 @@ static int got352or4(struct chanset_t *chan, char *user, char *host,
simple_sprintf(m->userhost, "%s@%s", user, host);
simple_sprintf(userhost, "%s!%s", nick, m->userhost);
/* Combine n!u@h */
if (match_my_nick(nick)) /* Is it me? */
if (match_my_nick(nick)) { /* Is it me? */
if (!m->joined)
m->joined = now;
strcpy(botuserhost, m->userhost); /* Yes, save my own userhost */
}
m->flags |= WHO_SYNCED;
if (strpbrk(flags, opchars) != NULL)
m->flags |= (CHANOP | WASOP);
Expand Down

0 comments on commit 12a03b6

Please sign in to comment.