Anope IRC Services

Anope Development => Modules => Topic started by: Harold on September 16, 2012, 10:13:53 PM

Title: auto +G on channel register
Post by: Harold on September 16, 2012, 10:13:53 PM
i'm looking  for  a  module  to mode  the  room +G   when a channel is  registered  to a   chatter that only  a  NA or   other  staff can  remove   it, i'm useing  anope-1.8.5 ;D :)
Title: Re: auto +G on channel register
Post by: katsklaw on September 16, 2012, 10:50:38 PM
http://modules.anope.org/index.php?page=view&id=223

Services can *not* prevent users of any level from (un)setting any user/channel mode at all. That is the job of the ircd.

If you use Unreal IRCd:

set::restrict-usermodes <modes>
Restrict users to set/unset the modes listed here (don't use + or -).
For example you can set +G in modes-on-connect and G in restrict-usermodes, that way you can force all users to be +G and unable to do -G.

set::restrict-channelmodes <modes>
Restrict users to set/unset the channel modes listed here (don't use + or -).
For example you can set +G in modes-on-join and G in restrict-channelmodes, that way you can force all (new) channels to be +G and unable to do -G.

NOTE: it may still be possible to use these channel modes through services by using MLOCK. Unfortunately we can't do much about that, you would have to ask the services coders to implement a restrict-channelmodes feature too.