]> kaliko git repositories - sid.git/commitdiff
Bump slixmpp to 1.8.3
authorkaliko <kaliko@azylum.org>
Fri, 17 Mar 2023 15:32:25 +0000 (16:32 +0100)
committerkaliko <kaliko@azylum.org>
Fri, 17 Mar 2023 15:32:25 +0000 (16:32 +0100)
join_muc now a coroutine

setup.cfg
sid/sid.py

index 20e4f730ae1b7ef5d06bb9065fe8b241dd7bdaf6..02cbbd6bcb45cd412eb4136e082153fed1a010e7 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -10,7 +10,7 @@ keywords = xmpp, bot
 [options]
 packages = find:
 python_requires = >=3.7
-install_requires = slixmpp>=1.5.1
+install_requires = slixmpp>=1.8.3
 
 [options.extras_require]
 feeds = feedparser>=5.2.1
index 2d64932838b3813da553e4fa6d5280f55d527335..3e6715a55d0112d402d289d0d7103235aa2413c2 100644 (file)
@@ -2,7 +2,7 @@
 
 # Copyright (C) 2007-2012 Thomas Perl <thp.io/about>
 # Copyright (C) 2010, 2011 AnaĆ«l Verrier <elghinn@free.fr>
-# Copyright (C) 2014, 2015, 2020 kaliko <kaliko@azylum.org>
+# Copyright (C) 2014, 2015, 2020, 2023 kaliko <kaliko@azylum.org>
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -172,11 +172,13 @@ class MUCBot(slixmpp.ClientXMPP):
         """
         await self.get_roster()
         self.send_presence()
-        self.plugin['xep_0045'].join_muc(self.room,
+        await self.plugin['xep_0045'].join_muc_wait(self.room,
                                          self.nick,
+                                         # Do not fetch history
+                                         seconds=0,
                                          # If a room password is needed, use:
                                          # password=the_room_password,
-                                         wait=True)
+                                         )
 
     def register_bot_plugin(self, plugin_cls):
         """Registers plugin, takes a class, the method instanciates the plugin