1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 18:33:12 +02:00

Partial patch by Adam, commenting fix for #1006 for future reference.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2002 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-11 00:12:20 +00:00
parent 87c8744724
commit 87ce2aa25d
+8
View File
@@ -298,7 +298,15 @@ void chan_set_modes(const char *source, Channel * chan, int ac, const char **av,
if (check < 2)
chan_set_correct_modes(user, chan, 0);
else if ((chan->ci->flags) && (chan->ci->flags & CI_SECUREOPS))
{
/* Fixing bug #1006 oringinally caused by fixing #922
* we must check for secureops here, not in chan_set_correct_modes
* because chan_set_corret_modes will also check for usercount == 1
* where it will deop the user, this way we know the channel was not
* just created. (check == 3 from /cs (half)op) - Adam
*/
chan_set_correct_modes(user, chan, 0);
}
}
real_av++;