diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index 9f654cfc..1ba00f79 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -368,10 +368,13 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.serverignore", in_args=1) def server_ignore(self, event): + """ + :permission: server-ignore + """ command = event["args_split"][0].lower() setting = "ignore-%s" % command - if event["server"].get_setting(setting): + if event["server"].get_setting(setting, False): event["stderr"].write("I'm already ignoring '%s' for %s" % (command, str(event["server"]))) else: