mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 15:44:06 +01:00
Merge branch 'master' into devel
This commit is contained in:
commit
e70dfb0811
2
utils.py
2
utils.py
@ -217,6 +217,7 @@ def parseModes(irc, target, args):
|
|||||||
|
|
||||||
if target not in irc.users:
|
if target not in irc.users:
|
||||||
log.warning('(%s) Possible desync! Mode target %s is not in the users index.', irc.name, target)
|
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
|
supported_modes = irc.umodes
|
||||||
oldmodes = irc.users[target].modes
|
oldmodes = irc.users[target].modes
|
||||||
@ -225,6 +226,7 @@ def parseModes(irc, target, args):
|
|||||||
|
|
||||||
if target not in irc.channels:
|
if target not in irc.channels:
|
||||||
log.warning('(%s) Possible desync! Mode target %s is not in the channels index.', irc.name, target)
|
log.warning('(%s) Possible desync! Mode target %s is not in the channels index.', irc.name, target)
|
||||||
|
return []
|
||||||
|
|
||||||
supported_modes = irc.cmodes
|
supported_modes = irc.cmodes
|
||||||
oldmodes = irc.channels[target].modes
|
oldmodes = irc.channels[target].modes
|
||||||
|
Loading…
Reference in New Issue
Block a user