mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
Merge branch 'master' into devel
Conflicts: plugins/automode.py protocols/clientbot.py
This commit is contained in:
commit
f27b179211
@ -106,6 +106,7 @@ def match(irc, channel, uids=None):
|
||||
log.debug("(%s) automode: Filtered mode list of %s to %s (protocol:%s)",
|
||||
irc.name, modes, outgoing_modes, irc.protoname)
|
||||
|
||||
if outgoing_modes:
|
||||
# If the Automode bot is missing, send the mode through the PyLink server.
|
||||
if modebot_uid not in irc.users:
|
||||
modebot_uid = irc.sid
|
||||
|
@ -97,7 +97,7 @@ def remote(irc, source, args):
|
||||
try:
|
||||
remoteirc = world.networkobjects[netname]
|
||||
except KeyError: # Unknown network.
|
||||
irc.error('No such network "%s" (case sensitive).' % netname)
|
||||
irc.error('No such network %r (case sensitive).' % netname)
|
||||
REMOTE_IN_USE.clear()
|
||||
return
|
||||
|
||||
@ -105,6 +105,10 @@ def remote(irc, source, args):
|
||||
irc.error('Unknown service %r.' % args.service)
|
||||
REMOTE_IN_USE.clear()
|
||||
return
|
||||
elif not remoteirc.connected.is_set():
|
||||
irc.error('Network %r is not connected.' % netname)
|
||||
REMOTE_IN_USE.clear()
|
||||
return
|
||||
|
||||
# Force remoteirc.called_in to something private in order to prevent
|
||||
# accidental information leakage from replies.
|
||||
|
Loading…
Reference in New Issue
Block a user