From 7d86dbccdf08456db533d3bec787b9784b6854d6 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 17 Mar 2023 16:32:25 +0100 Subject: [PATCH] Bump slixmpp to 1.8.3 join_muc now a coroutine --- setup.cfg | 2 +- sid/sid.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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 -- 2.39.2