mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
relay_clientbot: fix previous commit
This commit is contained in:
parent
76f534ce84
commit
11e7589304
@ -54,7 +54,7 @@ def cb_relay_core(irc, source, command, args):
|
|||||||
# Be less floody on startup: don't relay non-PRIVMSGs for the first X seconds after connect.
|
# Be less floody on startup: don't relay non-PRIVMSGs for the first X seconds after connect.
|
||||||
startup_delay = relay_conf.get('clientbot_startup_delay', 20)
|
startup_delay = relay_conf.get('clientbot_startup_delay', 20)
|
||||||
|
|
||||||
target = args['target']
|
target = args.get('target')
|
||||||
if isinstance(target, str):
|
if isinstance(target, str):
|
||||||
# Remove STATUSMSG prefixes (e.g. @#channel) before checking whether target is a channel
|
# Remove STATUSMSG prefixes (e.g. @#channel) before checking whether target is a channel
|
||||||
target = target.lstrip(''.join(irc.prefixmodes.values()))
|
target = target.lstrip(''.join(irc.prefixmodes.values()))
|
||||||
|
Loading…
Reference in New Issue
Block a user