aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-20 13:20:08 +0000
committerGravatar jesopo2020-01-20 13:20:08 +0000
commitfbe4c93c5844cc8e7cbcb6c8d7075b49e2039a72 (patch)
treef7a59df2ca38bddb66af0bdc93c2ac947c90376f /src/core_modules
parentalso do .format(**) when there's no `user` object (diff)
signature
don't overwrite `line` in MOTD formatting
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/format_activity.py4
1 files changed, 2 insertions, 2 deletions
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})