Skip to content

Commit

Permalink
colourise server name for server notice formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jesopo committed Jan 20, 2020
1 parent d7c18a9 commit 6b0bb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_modules/format_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ def self_nick(self, event):

@utils.hook("received.server-notice")
def server_notice(self, event):
line = "-*{SOURCE}- {MSG}"
line = "-*{~SOURCE}- {MSG}"
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")
def invite(self, event):
Expand Down

0 comments on commit 6b0bb51

Please sign in to comment.