diff --git a/matrix/events.py b/matrix/events.py index ee10fec..f284d14 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -79,6 +79,10 @@ class MatrixLoginEvent(MatrixEvent): self.server.user_id = self.user_id self.server.client.access_token = self.access_token + message = "{prefix}matrix: Logged in as {user}".format( + prefix=W.prefix("network"), user=self.user_id) + + W.prnt(self.server.server_buffer, message) self.server.sync() @classmethod diff --git a/matrix/server.py b/matrix/server.py index 48916bd..34694ce 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -377,6 +377,10 @@ class MatrixServer: self.device_name) self.send_or_queue(message) + msg = "{prefix}matrix: Logging in...".format(prefix=W.prefix("network")) + + W.prnt(self.server_buffer, msg) + def _print_message_error(self, message): server_buffer_prnt(self, ("{prefix}Unhandled {status_code} error, please "