From 5a0a340e4439d19b7a4a5a5013fe101088f982be Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 20 Jan 2020 13:48:50 +0000 Subject: [PATCH] better formatting for server notices --- src/core_modules/format_activity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py index 90686a16..b5a4d78b 100644 --- a/src/core_modules/format_activity.py +++ b/src/core_modules/format_activity.py @@ -157,9 +157,9 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.server-notice") def server_notice(self, event): - line = "(server notice) {MSG}" + line = "-*{SOURCE}- {MSG}" self._event("server-notice", event["server"], line, None, - formatting={"MSG": event["message"]}) + formatting={"MSG": event["message"], "SOURCE": event["source"]}) @utils.hook("received.invite") def invite(self, event):