From 1d4a43ed1bae311719f07c611579218a3d4d20af Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 16 Apr 2022 12:05:43 +0200 Subject: [PATCH] AutoMode: Fix crash on servers without ISUPPORT PREFIX --- plugins/AutoMode/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/AutoMode/plugin.py b/plugins/AutoMode/plugin.py index 2ca6bfceb..738aae428 100644 --- a/plugins/AutoMode/plugin.py +++ b/plugins/AutoMode/plugin.py @@ -144,7 +144,7 @@ class AutoMode(callbacks.Plugin): break try: do('op') - if 'h' in irc.state.supported['prefix']: + if 'h' in irc.state.supported.get('prefix', ''): do('halfop') except Continue: return