better formatting for server notices

This commit is contained in:
jesopo 2020-01-20 13:48:50 +00:00
parent 1f2beef0f5
commit 5a0a340e44

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 = "(server notice) {MSG}" line = "-*{SOURCE}- {MSG}"
self._event("server-notice", event["server"], line, None, self._event("server-notice", event["server"], line, None,
formatting={"MSG": event["message"]}) formatting={"MSG": event["message"], "SOURCE": event["source"]})
@utils.hook("received.invite") @utils.hook("received.invite")
def invite(self, event): def invite(self, event):