From 16a1747dce0c01b1659cb5e287254bcd434000ed Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 13 May 2020 11:05:52 +0200 Subject: [PATCH] Use async method properly --- sid/sid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sid/sid.py b/sid/sid.py index 729f7b6..d412ac4 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -148,7 +148,7 @@ class MUCBot(slixmpp.ClientXMPP): status = (pres['type'], pres['status']) self.__seen.update({nick: status}) - def start(self, event): + async def start(self, event): """ Process the session_start event. @@ -159,7 +159,7 @@ class MUCBot(slixmpp.ClientXMPP): :param dict event: An empty dictionary. The session_start event does not provide any additional data. """ - self.get_roster() + await self.get_roster() self.send_presence() self.plugin['xep_0045'].join_muc(self.room, self.nick, -- 2.39.5