nsfw disabled by default. closes #124
This commit is contained in:
parent
fb357ca363
commit
04cbd7df70
@ -62,6 +62,10 @@ namespace NadekoBot.Classes.Permissions {
|
||||
|
||||
string msg;
|
||||
|
||||
if (permissionType == PermissionsHandler.PermissionBanType.ServerBanModule &&
|
||||
command.Category.ToLower() == "nsfw")
|
||||
msg = $"**{command.Category}** module has been banned from use on this **server**.\nNSFW module is disabled by default. Server owner can type `;sm nsfw enable` to enable it.";
|
||||
else
|
||||
switch (permissionType) {
|
||||
case PermissionsHandler.PermissionBanType.None:
|
||||
return true;
|
||||
|
@ -437,6 +437,7 @@ namespace NadekoBot.Classes.Permissions {
|
||||
Verbose = true;
|
||||
|
||||
Permissions = new Permissions(name);
|
||||
Permissions.Modules.TryAdd("NSFW", false);
|
||||
UserPermissions = new Dictionary<ulong, Permissions>();
|
||||
ChannelPermissions = new Dictionary<ulong, Permissions>();
|
||||
RolePermissions = new Dictionary<ulong, Permissions>();
|
||||
|
Loading…
Reference in New Issue
Block a user