diff --git a/NadekoBot/Modules/Permissions/PermissionsModule.cs b/NadekoBot/Modules/Permissions/PermissionsModule.cs index 65ac5fdd..ebba4919 100644 --- a/NadekoBot/Modules/Permissions/PermissionsModule.cs +++ b/NadekoBot/Modules/Permissions/PermissionsModule.cs @@ -559,7 +559,8 @@ namespace NadekoBot.Modules.Permissions try { var state = PermissionHelper.ValidateBool(e.GetArg("bool")); - var channel = PermissionHelper.ValidateChannel(e.Server, e.GetArg("channel")); + var chArg = e.GetArg("channel"); + var channel = string.IsNullOrWhiteSpace(chArg) ? e.Channel :PermissionHelper.ValidateChannel(e.Server, chArg); foreach (var module in NadekoBot.Client.GetService().Modules) { PermissionsHandler.SetChannelModulePermission(channel, module.Name, state);