summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-11-22 14:57:55 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-11-22 14:57:55 +0000
commita82bbfb6a129e55b9e8bacf72189e053c261c0d4 (patch)
treed194c7c7aedef4612e517ca0d46b1dfb05a12d1e
parent9f2191b82c18b8d6cb24468bc6d1b96a5cd5c09f (diff)
BUILD : 1.7.6 (460) BUGS : 223 NOTES : HelpChan +h mode not being given if status was greater then op.
git-svn-id: svn://svn.anope.org/anope/trunk@460 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@314 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes2
-rw-r--r--src/channels.c8
-rw-r--r--version.log6
3 files changed, 12 insertions, 4 deletions
diff --git a/Changes b/Changes
index dfe668ce5..816e77119 100644
--- a/Changes
+++ b/Changes
@@ -18,6 +18,8 @@ Provided by Trystan <trystan@nomadirc.net> - 2004
11/19 F Some config options could overflow strtol(). [ #00]
11/16 F NickTracking could allow usage of forbidden nick in some cases. [ #00]
+Provided by DrStein <gacevedo@anope.org> - 2004
+11/22 F HelpChan +h mode not being given if status was greater then op. [#223]
Anope Version 1.7.6
-------------------
diff --git a/src/channels.c b/src/channels.c
index 7836f670d..3dafaf233 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -305,11 +305,13 @@ void chan_set_user_status(Channel * chan, User * user, int16 status)
{
struct u_chanlist *uc;
- if (HelpChannel && status == CUS_OP
+ if (HelpChannel
+ && (status == CUS_OP || status == (CUS_PROTECT | CUS_OP)
+ || status == (CUS_OWNER | CUS_OP))
&& !stricmp(chan->name, HelpChannel)) {
if (debug) {
- alog("debug: %s being given +h for being a OP in %s",
- user->nick, chan->name);
+ alog("debug: %s being given +h for having %d status in %s",
+ user->nick, status, chan->name);
}
common_svsmode(user, "+h", NULL);
}
diff --git a/version.log b/version.log
index d187eba7c..791643459 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="6"
-VERSION_BUILD="459"
+VERSION_BUILD="460"
# $Log$
#
+# BUILD : 1.7.6 (460)
+# BUGS : 223
+# NOTES : HelpChan +h mode not being given if status was greater then op.
+#
# BUILD : 1.7.6 (459)
# BUGS : N/A
# NOTES : Got Unreals SVSNLINE (sgline) working