From 597212d17a9f4b0a8aff7a2cb875408094f9a01f Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 5 Aug 2007 12:36:26 +0000 Subject: BUILD : 1.7.19 (1258) BUGS : 750 NOTES : Fixed CA_AUTODEOP not working anymore (since 1.7.9 or so probably) git-svn-id: svn://svn.anope.org/anope/trunk@1258 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@976 5417fbe8-f217-4b02-8779-1006273d7864 --- src/channels.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/channels.c b/src/channels.c index fd6c2e05a..20acc98ca 100644 --- a/src/channels.c +++ b/src/channels.c @@ -1352,8 +1352,10 @@ void chan_set_correct_modes(User * user, Channel * c, int give_modes) * the modes that they're not allowed to have. But only if SECUREOPS is * on, because else every mode is legal. -GD * Unless the channel has just been created. -heinz + * Or the user matches CA_AUTODEOP... -GD */ - if (((ci->flags & CI_SECUREOPS) || (c->usercount == 1)) + if (((ci->flags & CI_SECUREOPS) || (c->usercount == 1) + || check_access(user, ci, CA_AUTODEOP)) && !is_ulined(user->server->name)) { if (ircd->owner && (status & CUS_OWNER) && !is_founder(user, ci)) rem_modes |= CUS_OWNER; -- cgit