mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 18:00:39 +01:00
Merge branch 'master' into devel
This commit is contained in:
commit
5877031203
@ -467,6 +467,13 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
namelist = []
|
namelist = []
|
||||||
for user in userlist:
|
for user in userlist:
|
||||||
modeprefix, user = user.split(',', 1)
|
modeprefix, user = user.split(',', 1)
|
||||||
|
|
||||||
|
# Don't crash when we get an invalid UID.
|
||||||
|
if user not in self.irc.users:
|
||||||
|
log.debug('(%s) handle_fjoin: tried to introduce user %s not in our user list, ignoring...',
|
||||||
|
self.irc.name, user)
|
||||||
|
continue
|
||||||
|
|
||||||
namelist.append(user)
|
namelist.append(user)
|
||||||
self.irc.users[user].channels.add(channel)
|
self.irc.users[user].channels.add(channel)
|
||||||
if their_ts <= our_ts:
|
if their_ts <= our_ts:
|
||||||
|
@ -441,6 +441,13 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
finalprefix = ''
|
finalprefix = ''
|
||||||
assert user, 'Failed to get the UID from %r; our regex needs updating?' % userpair
|
assert user, 'Failed to get the UID from %r; our regex needs updating?' % userpair
|
||||||
log.debug('(%s) handle_sjoin: got modeprefix %r for user %r', self.irc.name, modeprefix, user)
|
log.debug('(%s) handle_sjoin: got modeprefix %r for user %r', self.irc.name, modeprefix, user)
|
||||||
|
|
||||||
|
# Don't crash when we get an invalid UID.
|
||||||
|
if user not in self.irc.users:
|
||||||
|
log.debug('(%s) handle_sjoin: tried to introduce user %s not in our user list, ignoring...',
|
||||||
|
self.irc.name, user)
|
||||||
|
continue
|
||||||
|
|
||||||
for m in modeprefix:
|
for m in modeprefix:
|
||||||
# Iterate over the mapping of prefix chars to prefixes, and
|
# Iterate over the mapping of prefix chars to prefixes, and
|
||||||
# find the characters that match.
|
# find the characters that match.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user