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