Changeset e41ba05 for root_commands.c


Ignore:
Timestamp:
2016-03-23T06:44:13Z (3 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
446a23e
Parents:
3ac6d9f
git-author:
Dennis Kaarsemaker <dennis@…> (22-02-16 21:26:15)
git-committer:
Dennis Kaarsemaker <dennis@…> (23-03-16 06:44:13)
Message:

Allow individual settings to be locked down

This allows a site admin who pregenerates configs to mark certain
settings as untouchable, ensuring that users cannot mess up their
settings too badly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r3ac6d9f re41ba05  
    340340                int st;
    341341
     342                if (s && s->flags & SET_LOCKED) {
     343                        irc_rootmsg(irc, "This setting can not be changed");
     344                        return 0;
     345                }
    342346                if (s && checkflags && checkflags(irc, s) == 0) {
    343347                        return 0;
Note: See TracChangeset for help on using the changeset viewer.