summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 00:12:51 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 00:12:51 +0000
commit429da2b886eba777e7262a763bb00708168ce0f0 (patch)
tree601ff9a8350dfd020f72274e5764cc2a538f9dce /src
parent87ce2aa25d2cb8d01215597a3d071ae0a3927ea4 (diff)
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
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);