From fbe4c93c5844cc8e7cbcb6c8d7075b49e2039a72 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 20 Jan 2020 13:20:08 +0000 Subject: don't overwrite `line` in MOTD formatting --- src/core_modules/format_activity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core_modules') diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py index 0a910c68..f12563c8 100644 --- a/src/core_modules/format_activity.py +++ b/src/core_modules/format_activity.py @@ -248,7 +248,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.376") def motd_end(self, event): - for line in event["server"].motd_lines: + for motd_line in event["server"].motd_lines: line = "[MOTD] {LINE}" self._event("motd", event["server"], line, None, - formatting={"LINE": line}) + formatting={"LINE": motd_line}) -- cgit v1.3.1-10-gc9f91