summaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/channels.c b/src/channels.c
index eff7b5f96..7836f670d 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -306,8 +306,13 @@ void chan_set_user_status(Channel * chan, User * user, int16 status)
struct u_chanlist *uc;
if (HelpChannel && status == CUS_OP
- && !stricmp(chan->name, HelpChannel))
- common_svsmode(user, "+h", "1");
+ && !stricmp(chan->name, HelpChannel)) {
+ if (debug) {
+ alog("debug: %s being given +h for being a OP in %s",
+ user->nick, chan->name);
+ }
+ common_svsmode(user, "+h", NULL);
+ }
for (uc = user->chans; uc; uc = uc->next) {
if (uc->chan == chan) {