channel.send_mode() BEFORE calling self.join event

This commit is contained in:
jesopo 2020-01-24 10:37:41 +00:00
parent cf544d66f9
commit a9a9cd816b

View file

@ -87,9 +87,9 @@ def join(events, event):
user.join_channel(channel) user.join_channel(channel)
if is_self: if is_self:
channel.send_mode()
events.on("self.join").call(channel=channel, server=event["server"], events.on("self.join").call(channel=channel, server=event["server"],
account=account, realname=realname) account=account, realname=realname)
channel.send_mode()
else: else:
events.on("received.join").call(channel=channel, user=user, events.on("received.join").call(channel=channel, user=user,
server=event["server"], account=account, realname=realname) server=event["server"], account=account, realname=realname)