]> jfr.im git - irc/quakenet/snircd.git/blobdiff - ircd/s_user.c
fixed autochanmodes code so it works for channel modes +CN
[irc/quakenet/snircd.git] / ircd / s_user.c
index 3467ca0175093510180956c1eae4ea7ca1de9995..d6e639b4d0c9e6920c70887f45c8a127d727534b 100644 (file)
@@ -1013,6 +1013,10 @@ int check_target_limit(struct Client *sptr, void *target, const char *name,
   if (IsChannelName(name) && IsInvited(sptr, target))
     return 0;
 
+  /* opers always have a free target */
+  if (IsAnOper(sptr))
+    return 0;
+
   /*
    * Same target as last time?
    */