Merge "Fix handling of locked channels in access check"
This commit is contained in:
commit
c89449517b
@ -93,6 +93,13 @@ class CheckAccess(irc.client.SimpleIRCClient):
|
|||||||
self.current_channel = None
|
self.current_channel = None
|
||||||
self.advance()
|
self.advance()
|
||||||
return
|
return
|
||||||
|
if msg.endswith('not authorized to perform this operation.'):
|
||||||
|
self.failed = True
|
||||||
|
print("%s can not be queried from ChanServ." %
|
||||||
|
self.current_channel)
|
||||||
|
self.current_channel = None
|
||||||
|
self.advance()
|
||||||
|
return
|
||||||
if msg.startswith('End of'):
|
if msg.startswith('End of'):
|
||||||
found = False
|
found = False
|
||||||
for nick, flags, msg in self.current_list:
|
for nick, flags, msg in self.current_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user