diff options
| author | 2020-01-20 13:20:08 +0000 | |
|---|---|---|
| committer | 2020-01-20 13:20:08 +0000 | |
| commit | fbe4c93c5844cc8e7cbcb6c8d7075b49e2039a72 (patch) | |
| tree | f7a59df2ca38bddb66af0bdc93c2ac947c90376f | |
| parent | also do .format(**) when there's no `user` object (diff) | |
| signature | ||
don't overwrite `line` in MOTD formatting
| -rw-r--r-- | src/core_modules/format_activity.py | 4 |
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}) |
