X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b2666b7f78447ef7c24c896660e9827db27951a9..3e1b768066a16c4b899b9cbdd7911be883151a05:/helpmod2/helpmod2.c diff --git a/helpmod2/helpmod2.c b/helpmod2/helpmod2.c index 02e67a39..a383d6ba 100644 --- a/helpmod2/helpmod2.c +++ b/helpmod2/helpmod2.c @@ -188,7 +188,7 @@ void helpmod_invite(hchannel *hchan, huser *husr) if (hchan->flags & H_PASSIVE) return; - localinvite(helpmodnick, hchan->real_channel, husr->real_user); + localinvite(helpmodnick, hchan->real_channel->index, husr->real_user); } static void hmode_set_channel(hchannel *hchan) @@ -315,7 +315,7 @@ void helpmod_chan_privmsg(void **args) } huser_activity(sender_huser, hchan); - if (huser_get_level(sender_huser) < H_TRIAL) /* staff and staff trials are not subject to any control */ + if (huser_get_level(sender_huser) < H_FRIEND) /* staff, staff trials and friends are not subject to any control */ { if ((hchan->flags & H_CENSOR) && (tmp = hcensor_check(hchan->censor, (char*)message))) { /* censor match */