AutoMode: Fix crash on servers without ISUPPORT PREFIX

This commit is contained in:
Valentin Lorentz 2022-04-16 12:05:43 +02:00
parent 94c7c7dfa3
commit 1d4a43ed1b
1 changed files with 1 additions and 1 deletions

View File

@ -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