]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/chanserv.c
roll version to 1.8.1 for conversion to git repository
[irc/evilnet/x3.git] / src / chanserv.c
index 7d8b5bf96b4dd929a6cf47dffe7ccbb79516b00d..cbba341c3fad16a4c38445502e13861987b40566 100644 (file)
@@ -5697,6 +5697,9 @@ resync_channel(struct chanNode *channel)
         }
         else /* Give various userlevels their modes.. */
         {
+            /* If the user has autoop/autovoice disabled then ignore them */
+            if(uData && !IsUserAutoOp(uData))
+              continue;
             if(uData && uData->access >= UL_OP )
             {
                 if(!(mn->modes & MODE_CHANOP))
@@ -6668,7 +6671,7 @@ static MODCMD_FUNC(chan_opt_maxsetinfo)
 
    if(argc > 1) {
      charmax = atoi(argv[1]);
-     if ((charmax > 0) && (charmax < chanserv_conf.max_userinfo_length))
+     if ((charmax > 0) && (charmax <= chanserv_conf.max_userinfo_length))
        channel->channel_info->maxsetinfo = charmax;
    }