From 429da2b886eba777e7262a763bb00708168ce0f0 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 11 Feb 2009 00:12:51 +0000 Subject: [PATCH] Fix for bug #1004, based from second half of patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2003 5417fbe8-f217-4b02-8779-1006273d7864 --- src/channels.c | 5 +++++ 1 file changed, 5 insertions(+) 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);