From: kaliko Date: Fri, 17 Mar 2023 15:32:25 +0000 (+0100) Subject: Bump slixmpp to 1.8.3 X-Git-Tag: 0.3.0~20 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=7d86dbccdf08456db533d3bec787b9784b6854d6;p=sid.git Bump slixmpp to 1.8.3 join_muc now a coroutine --- diff --git a/setup.cfg b/setup.cfg index 20e4f73..02cbbd6 100644 --- 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 diff --git a/sid/sid.py b/sid/sid.py index 2d64932..3e6715a 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -2,7 +2,7 @@ # Copyright (C) 2007-2012 Thomas Perl # Copyright (C) 2010, 2011 Anaël Verrier -# Copyright (C) 2014, 2015, 2020 kaliko +# Copyright (C) 2014, 2015, 2020, 2023 kaliko # 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