From: kaliko Date: Wed, 13 May 2020 09:05:52 +0000 (+0200) Subject: Use async method properly X-Git-Tag: 0.1.0~2 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=16a1747dce0c01b1659cb5e287254bcd434000ed;p=sid.git Use async method properly --- 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,