Skip to content

Commit

Permalink
Reset channel information on disconnect properly.
Browse files Browse the repository at this point in the history
This fixes two instances missing in cc7240, in the fix for #218. Closes #275.
  • Loading branch information
Cizzle authored and thommey committed Oct 13, 2016
1 parent d953721 commit 321c219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/Changes1.8
Expand Up @@ -4,6 +4,9 @@ Eggdrop Changes (since version 1.8.0)

1.8.0:

- Reset channel information on disconnect properly.
Patch by: Cizzle

- Fix a bug introduced by Tcl interp result transition.
Patch by: thommey / Found by: simply

Expand Down
4 changes: 2 additions & 2 deletions src/mod/server.mod/servmsg.c
Expand Up @@ -359,7 +359,7 @@ static int got442(char *from, char *msg)

putlog(LOG_MISC, chname, IRC_SERVNOTONCHAN, chname);
if (me && me->funcs)
(me->funcs[CHANNEL_CLEAR]) (chan, 1);
(me->funcs[CHANNEL_CLEAR]) (chan, CHAN_RESETALL);
chan->status &= ~CHAN_ACTIVE;

key = chan->channel.key[0] ? chan->channel.key : chan->key_prot;
Expand Down Expand Up @@ -1018,7 +1018,7 @@ static void kill_server(int idx, void *x)
struct chanset_t *chan;

for (chan = chanset; chan; chan = chan->next)
(me->funcs[CHANNEL_CLEAR]) (chan, 1);
(me->funcs[CHANNEL_CLEAR]) (chan, CHAN_RESETALL);
}
/* A new server connection will be automatically initiated in
* about 2 seconds. */
Expand Down

0 comments on commit 321c219

Please sign in to comment.