3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Protocol: remove desync warning in getUid

This commit is contained in:
James Lu 2016-04-15 10:56:03 -07:00
parent 8ba0412ece
commit 0f0ae8fc2f

View File

@ -741,9 +741,6 @@ class Protocol():
"""Converts a nick argument to its matching UID. This differs from irc.nickToUid()
in that it returns the original text instead of None, if no matching nick is found."""
target = self.irc.nickToUid(target) or target
if target not in self.irc.users and not utils.isChannel(target):
log.debug("(%s) Possible desync? Got command target %s, who "
"isn't in our user list!", self.irc.name, target)
return target
### FakeIRC classes, used for test cases