From: John Runyon Date: Thu, 14 Mar 2024 00:13:39 +0000 (-0600) Subject: rejoin uses the bot assigned to the channel X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/4d97179097b042b3bcb322d85f56678a6881e135 rejoin uses the bot assigned to the channel --- diff --git a/modules/channel_admin.py b/modules/channel_admin.py index c0d5dc8..da9d228 100644 --- a/modules/channel_admin.py +++ b/modules/channel_admin.py @@ -28,7 +28,7 @@ modstop = lib.modstop @lib.hook(clevel=lib.FRIEND) @lib.help(None, "rejoin a channel (if the bot has been kicked)") def rejoin(bot, user, chan, realtarget, *args): - bot.join(str(chan)) + chan.bot.join(str(chan)) bot.msg(user, "Rejoined %s." % (chan))