From 119066b549562bf405cbf249ade09384ce613a6d Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 20 Jan 2020 14:12:49 +0000 Subject: [PATCH] `user` varaible doesn't exist in invite formatting code closes #231 --- src/core_modules/format_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py index d3283de7..02fe8341 100644 --- a/src/core_modules/format_activity.py +++ b/src/core_modules/format_activity.py @@ -170,7 +170,7 @@ def invite(self, event): line = "- %s" % minimal self._event("invite", event["server"], line, event["target_channel"], - user=user, minimal=minimal, formatting=formatting) + user=event["user"], minimal=minimal, formatting=formatting) @utils.hook("received.mode.channel") def mode(self, event):