3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 10:44:09 +01:00

Merge branch 'master' into devel

This commit is contained in:
James Lu 2016-03-26 17:58:18 -07:00
commit e70dfb0811

View File

@ -217,6 +217,7 @@ def parseModes(irc, target, args):
if target not in irc.users:
log.warning('(%s) Possible desync! Mode target %s is not in the users index.', irc.name, target)
return [] # Return an empty mode list
supported_modes = irc.umodes
oldmodes = irc.users[target].modes
@ -225,6 +226,7 @@ def parseModes(irc, target, args):
if target not in irc.channels:
log.warning('(%s) Possible desync! Mode target %s is not in the channels index.', irc.name, target)
return []
supported_modes = irc.cmodes
oldmodes = irc.channels[target].modes