Skip to content

Commit

Permalink
Backport of bugfix for bug #1004 from SVN r2003, Modechanges from uli…
Browse files Browse the repository at this point in the history
…ned server are no longer being blocked by SECUREOPS.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2253 5417fbe8-f217-4b02-8779-1006273d7864
  • Loading branch information
jantje_85 committed Apr 3, 2009
1 parent 1dec3ee commit 74c5d98
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -20,6 +20,7 @@ Provided by Anope Dev. <team@anope.org> - 2009
03/23 F Force a user off a nick when it is suspended. [#1065]
03/23 F Fixed CS SET MLOCK requiring a param to allow clearing. [#1044]
03/30 F Fantasy commands in CTCP ACTIONs will now be ignored. [#1073]
04/03 F SECUREOPS now igores modechanges from ulined servers. [#1004]

Provided by Adam <Adam@SubZeroIRC.net> - 2009
01/28 F Added internal support for +j channelmodes. [#1001]
Expand Down
17 changes: 11 additions & 6 deletions src/channels.c
Expand Up @@ -302,6 +302,11 @@ void chan_set_modes(const char *source, Channel * chan, int ac, 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((char *)source))
return;

if (check > 0) {
check_modes(chan);

Expand All @@ -312,12 +317,12 @@ void chan_set_modes(const char *source, Channel * chan, int ac, char **av,
real_ac--;
real_av++;
for (i = 0; i < real_ac; i++) {
if ((user = finduser(*real_av)) && is_on_chan(chan, user)) {
if (check < 2)
chan_set_correct_modes(user, chan, 0);
else if ((chan->ci->flags) && (chan->ci->flags & CI_SECUREOPS))
chan_set_correct_modes(user, chan, 0);
}
if ((user = finduser(*real_av)) && is_on_chan(chan, user)) {
if (check < 2)
chan_set_correct_modes(user, chan, 0);
else if ((chan->ci->flags) && (chan->ci->flags & CI_SECUREOPS))
chan_set_correct_modes(user, chan, 0);
}
real_av++;
}
}
Expand Down
3 changes: 2 additions & 1 deletion version.log
Expand Up @@ -9,10 +9,11 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="0"
VERSION_EXTRA="-svn"
VERSION_BUILD="2251"
VERSION_BUILD="2253"

# $Log$ # Changes since 1.8.0 Release

#Revision 2253 - Backport of bugfix for bug #1004 from SVN r2003, Modechanges from ulined server are no longer being blocked by SECUREOPS.
#Revision 2251 - Fixed non-standard C-style comment.
#Revision 2250 - Updated example.conf regarding removal of the inspirc10 protocol module and SRA requirement for SuperAdmin.
#Revision 2249 - Someone seems to have forgotten about Changes.. added most significant commits to Changes.
Expand Down

0 comments on commit 74c5d98

Please sign in to comment.