change formatted NOTICEs to be denoted by "-nick-" (PRIVMSG as "<nick>")

This commit is contained in:
jesopo 2019-11-11 18:02:15 +00:00
parent 46058c51c5
commit d06efdabed

View file

@ -54,7 +54,7 @@ class Module(ModuleManager.BaseModule):
def _on_notice(self, event, nickname): def _on_notice(self, event, nickname):
nickname = self._colorize(nickname) nickname = self._colorize(nickname)
return "(notice) <%s> %s" % (nickname, event["message"]) return "-%s- %s" % (nickname, event["message"])
def _channel_notice(self, event, nickname, channel): def _channel_notice(self, event, nickname, channel):
line = self._on_notice(event, nickname) line = self._on_notice(event, nickname)
self._event("notice.channel", event["server"], line, self._event("notice.channel", event["server"], line,