summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-05-30 16:45:52 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-05-30 16:45:52 +0000
commit753d65c54b9d5aa920b7994c8e1e97a0a8f3cd88 (patch)
treebc6e499af9ff162d8b2be3eabb091b901f26444a
parentc9cc03d3c7e6bc17edc147fe59af5f3fd33a051e (diff)
- irc-operators may now no longer set a channel +O if they are only halfops (%)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3709 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--NEWS1
-rw-r--r--src/channel_mode.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4e8c3c3..aeef9d0 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
o) Fixed CAP issue for certain clients
o) Fixed bug where "STATS p" would show an invalid amount of irc-operators
in case there are +H opers
+o) irc-operators may now no longer set a channel +O if they are only halfops (%)
-- Noteworthy changes in version 8.1.17 (2014-05-01)
diff --git a/src/channel_mode.c b/src/channel_mode.c
index 65ad9cb..1d057d2 100644
--- a/src/channel_mode.c
+++ b/src/channel_mode.c
@@ -629,7 +629,7 @@ chm_operonly(struct Client *client_p, struct Client *source_p, struct Channel *c
int parc, int *parn, char **parv, int *errors, int alev, int dir,
char c, unsigned int d)
{
- if (alev < CHACCESS_HALFOP)
+ if (alev < CHACCESS_CHANOP)
{
if (!(*errors & SM_ERR_NOOPS))
sendto_one(source_p, form_str(alev == CHACCESS_NOTONCHAN ?