Fix assertion failure when failing to join a channel and there is no forward.
This was harmless apart from the message.
This commit is contained in:
parent
1c60de9757
commit
97532cfafb
1 changed files with 2 additions and 2 deletions
|
@ -106,6 +106,8 @@ check_forward(struct Client *source_p, struct Channel *chptr,
|
|||
|
||||
while (depth < 16)
|
||||
{
|
||||
if (next == NULL)
|
||||
return NULL;
|
||||
chptr = find_channel(next);
|
||||
/* Can only forward to existing channels */
|
||||
if (chptr == NULL)
|
||||
|
@ -122,8 +124,6 @@ check_forward(struct Client *source_p, struct Channel *chptr,
|
|||
i = can_join(source_p, chptr, key, &next);
|
||||
if (i == 0)
|
||||
return chptr;
|
||||
if (next == NULL)
|
||||
return NULL;
|
||||
depth++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue