nsfw disabled by default. closes #124

This commit is contained in:
Master Kwoth 2016-03-22 08:18:00 +01:00
parent fb357ca363
commit 04cbd7df70
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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>();