diff --git a/protocols/inspircd.py b/protocols/inspircd.py index d71e4af..299deb0 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -101,8 +101,8 @@ def sjoinServer(irc, server, channel, users, ts=None): irc.users[user].channels.add(channel) except KeyError: # Not initialized yet? log.debug("(%s) sjoinServer: KeyError trying to add %r to %r's channel list?", irc.name, channel, user) - if ts < orig_ts: - # Only save our prefix modes in the channel state if our TS is lower than theirs. + if ts <= orig_ts: + # Only save our prefix modes in the channel state if our TS is lower than or equal to theirs. utils.applyModes(irc, channel, changedmodes) namelist = ' '.join(namelist) _send(irc, server, "FJOIN {channel} {ts} {modes} :{users}".format( diff --git a/protocols/ts6.py b/protocols/ts6.py index b9f88b5..a7e7b4c 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -117,8 +117,8 @@ def sjoinServer(irc, server, channel, users, ts=None): ts=ts, users=namelist, channel=channel, modes=utils.joinModes(modes))) irc.channels[channel].users.update(uids) - if ts < orig_ts: - # Only save our prefix modes in the channel state if our TS is lower than theirs. + if ts <= orig_ts: + # Only save our prefix modes in the channel state if our TS is lower than or equal to theirs. utils.applyModes(irc, channel, changedmodes) def _sendModes(irc, numeric, target, modes, ts=None):