]> kaliko git repositories - sid.git/commitdiff
Use async method properly
authorkaliko <kaliko@azylum.org>
Wed, 13 May 2020 09:05:52 +0000 (11:05 +0200)
committerkaliko <kaliko@azylum.org>
Wed, 13 May 2020 09:05:52 +0000 (11:05 +0200)
sid/sid.py

index 729f7b65784e5c9828c8782dc0ec8a9ac3bc741b..d412ac4ad65d362b0427cdafb35a2f6485e8e7bd 100644 (file)
@@ -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,