summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c
index 413ba3a53..ee8985c33 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -280,6 +280,11 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av,
}
}
+ // Don't bounce modes from u:lined clients or servers, bug #1004
+ user = finduser(source);
+ if ((user && is_ulined(user->server->name)) || is_ulined(source))
+ return;
+
if (check > 0)
{
check_modes(chan);