X-Git-Url: https://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fsid.py;h=3e6715a55d0112d402d289d0d7103235aa2413c2;hp=2d64932838b3813da553e4fa6d5280f55d527335;hb=7d86dbccdf08456db533d3bec787b9784b6854d6;hpb=cdcf23d465662401d6cd9e0e4fddf42a1ba648f5 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