From f6e6dd033935ebd1e7f0559fefab7f26097bf27b Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 Jan 2020 14:08:58 +0000 Subject: remove received.server-notice related code --- src/core_modules/format_activity.py | 6 ------ src/core_modules/print_activity.py | 1 - 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py index 27783822..44128fa6 100644 --- a/src/core_modules/format_activity.py +++ b/src/core_modules/format_activity.py @@ -155,12 +155,6 @@ class Module(ModuleManager.BaseModule): def self_nick(self, event): self._on_nick(event, event["server"].get_user(event["server"].nickname)) - @utils.hook("received.server-notice") - def server_notice(self, event): - line = "-*{~NAME}- {MSG}" - self._event("server-notice", event["server"], line, None, - formatting={"MSG": event["message"], "~NAME": event["server"].name}) - @utils.hook("received.invite") def invite(self, event): formatting = {"CHAN": event["target_channel"], diff --git a/src/core_modules/print_activity.py b/src/core_modules/print_activity.py index b1b9c74d..2d17e2be 100644 --- a/src/core_modules/print_activity.py +++ b/src/core_modules/print_activity.py @@ -30,7 +30,6 @@ class Module(ModuleManager.BaseModule): @utils.hook("formatted.join") @utils.hook("formatted.part") @utils.hook("formatted.nick") - @utils.hook("formatted.server-notice") @utils.hook("formatted.invite") @utils.hook("formatted.mode.channel") @utils.hook("formatted.topic") -- cgit v1.3.1-10-gc9f91