colourise server name for server notice formatting

This commit is contained in:
jesopo 2020-01-20 14:12:37 +00:00
parent d7c18a9a2e
commit 6b0bb512ef

View file

@ -157,9 +157,9 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.server-notice") @utils.hook("received.server-notice")
def server_notice(self, event): def server_notice(self, event):
line = "-*{SOURCE}- {MSG}" line = "-*{~SOURCE}- {MSG}"
self._event("server-notice", event["server"], line, None, self._event("server-notice", event["server"], line, None,
formatting={"MSG": event["message"], "SOURCE": event["source"]}) formatting={"MSG": event["message"], "~SOURCE": event["source"]})
@utils.hook("received.invite") @utils.hook("received.invite")
def invite(self, event): def invite(self, event):