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;
|
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) {
|
switch (permissionType) {
|
||||||
case PermissionsHandler.PermissionBanType.None:
|
case PermissionsHandler.PermissionBanType.None:
|
||||||
return true;
|
return true;
|
||||||
|
@ -437,6 +437,7 @@ namespace NadekoBot.Classes.Permissions {
|
|||||||
Verbose = true;
|
Verbose = true;
|
||||||
|
|
||||||
Permissions = new Permissions(name);
|
Permissions = new Permissions(name);
|
||||||
|
Permissions.Modules.TryAdd("NSFW", false);
|
||||||
UserPermissions = new Dictionary<ulong, Permissions>();
|
UserPermissions = new Dictionary<ulong, Permissions>();
|
||||||
ChannelPermissions = new Dictionary<ulong, Permissions>();
|
ChannelPermissions = new Dictionary<ulong, Permissions>();
|
||||||
RolePermissions = new Dictionary<ulong, Permissions>();
|
RolePermissions = new Dictionary<ulong, Permissions>();
|
||||||
|
Loading…
Reference in New Issue
Block a user