0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 22:28:52 +02:00

If use_forward=no, ignore any forwarding for joins by local users.

This commit is contained in:
Jilles Tjoelker 2011-09-25 17:26:01 +02:00
parent 1aa35c8af1
commit 6a85e665db

View file

@ -100,8 +100,8 @@ check_forward(struct Client *source_p, struct Channel *chptr,
if ((*err = can_join(source_p, chptr, key, &next)) == 0)
return chptr;
/* User is +Q */
if (IsNoForward(source_p))
/* User is +Q, or forwarding disabled */
if (IsNoForward(source_p) || !ConfigChannel.use_forward)
return NULL;
while (depth < 16)