#40 Staff levels

open
nobody
None
5
2004-04-02
2004-04-02
ThiefMaster
No

This patch for srvx-1.2.1 adds the modcmd setting
staff_access
-OpServ- STAFF_ACCESS Minimum staff level.
which allows to set a level similar to the opserv level
for staff-only commands and overrides of normal commands.
If a normal command has a staff level set only staff
can see it:
-NickServ- FLAGS: gcnH
<@ThiefMaster> !command clvl
-ChanServ- clvl is a binding of: ChanServ.clvl
-ChanServ- You must have staff access of at least 750.
-ChanServ- You must have ChanServ access of at least
master in the channel.
-ChanServ- End of requirements for clvl.
-> *NickServ* oset ThiefMaster flags -H
-NickServ- FLAGS: gcn
<@ThiefMaster> !command clvl
-ChanServ- clvl is a binding of: ChanServ.clvl
-ChanServ- You must have ChanServ access of at least
master in the channel.
-ChanServ- End of requirements for clvl.

In my example clvl is set to 750.
This means any user with enough channel access can clvl
user as usual, but it can only be used in override when
you have a staff level of at lease 750.

You set the staff level with
/msg NickServ oset <NICK|*ACCOUNT> stafflevel <LEVEL>

I think the patch might be useful to prevent new staff
abusing their access.
Another good example is if you only want opers to unreg
channels.
If you set the modcmd flags to +OPER it would block the
command for normal users too.
But with my patch you just set a high staff level for
the command and give only opers this level.
Then normal users can unreg channels they own, but
staff with a level below the staff level you set for
unregister will only get an "Access Denied" error.

The newest version cann be downloaded at:
http://www.planetcoding-server.net/srvx/stafflevels.patch

If you have more questions you find me in #srvx at
irc.gamesurge.net (if my nick is ThiefMaster`halbda I'm
not online).

Discussion

  • ThiefMaster

    ThiefMaster - 2004-05-01

    Logged In: YES
    user_id=371246

    The patch is now also avaiable for srvx-1.3.

    You can download it at
    http://www.planetcoding-server.net/srvx/stafflevels-1.3.patch

    To apply (when you are in the srvx-1.3 directory):
    patch -p1 < stafflevels-1.3.patch

     
  • ThiefMaster

    ThiefMaster - 2004-05-01

    staffflevels patch for srvx-1.3

     
  • ThiefMaster

    ThiefMaster - 2004-05-01

    stafflevels patch for srvx-1.2.1

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks