]> jfr.im git - erebus.git/commitdiff
rejoin uses the bot assigned to the channel
authorJohn Runyon <redacted>
Thu, 14 Mar 2024 00:13:39 +0000 (18:13 -0600)
committerJohn Runyon <redacted>
Thu, 14 Mar 2024 00:13:39 +0000 (18:13 -0600)
modules/channel_admin.py

index c0d5dc8e211b40c9984024f3008e216740177bda..da9d22863f9db5228c0b8942dd73ad481a90cc74 100644 (file)
@@ -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))