Fix issue with messaging at session-level

This commit is contained in:
Griatch 2018-01-01 13:19:59 +01:00
parent bb835c3da6
commit ff7fae3c07

View file

@ -400,6 +400,7 @@ class ServerSession(Session):
# this can happen if this is triggered e.g. a command.msg
# that auto-adds the session, we'd get a kwarg collision.
kwargs.pop("session", None)
kwargs.pop("from_obj", None)
if text is not None:
self.data_out(text=text, **kwargs)
else: