X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/be1ad341afbc1aa0c02d459db2b34593d204f8db..d427e09ad0040cfed0af3562dc4115c1b1de0f8c:/src/chanserv.c diff --git a/src/chanserv.c b/src/chanserv.c index 7d8b5bf..cbba341 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -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; }