Changeset 446a23e for root_commands.c


Ignore:
Timestamp:
2016-03-23T06:44:13Z (3 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
8e6ecfe
Parents:
e41ba05
git-author:
Dennis Kaarsemaker <dennis@…> (22-02-16 20:25:39)
git-committer:
Dennis Kaarsemaker <dennis@…> (23-03-16 06:44:13)
Message:

Add a setting to disable 'account add'

In a locked down bitlbee instance it is useful to disable the 'account
add' command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    re41ba05 r446a23e  
    416416
    417417                MIN_ARGS(3);
     418
     419                if (!global.conf->allow_account_add) {
     420                        irc_rootmsg(irc, "This server does not allow adding new accounts");
     421                        return;
     422                }
    418423
    419424                if (cmd[4] == NULL) {
Note: See TracChangeset for help on using the changeset viewer.