From 11e75893049cb18679cc41665fb63e33fd8c3519 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 10 Feb 2019 14:35:34 -0800 Subject: [PATCH] relay_clientbot: fix previous commit --- plugins/relay_clientbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay_clientbot.py b/plugins/relay_clientbot.py index 9e4c4ef..9eebf0d 100644 --- a/plugins/relay_clientbot.py +++ b/plugins/relay_clientbot.py @@ -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. startup_delay = relay_conf.get('clientbot_startup_delay', 20) - target = args['target'] + target = args.get('target') if isinstance(target, str): # Remove STATUSMSG prefixes (e.g. @#channel) before checking whether target is a channel target = target.lstrip(''.join(irc.prefixmodes.values()))