]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/helpmod2.c
LOCALUSER: Changed "localinvite" to take a chanindex * to identify the
[irc/quakenet/newserv.git] / helpmod2 / helpmod2.c
index 2752a890fea9fc100166b0d9952ef8efc022914c..c36af709104ba23bce6778598098b4c43e1dd634 100644 (file)
@@ -185,7 +185,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)
@@ -312,7 +312,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 */