Plugins: Unregister StanzaHandler correctly

This commit is contained in:
Philipp Hörist 2018-12-31 01:58:03 +01:00
parent 73f3e01bdf
commit 735e72c965
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ class PluginManager(metaclass=Singleton):
# So just unregister the plugin handlers
if con.handlers_registered:
for handler in instance.handlers:
if len(handler) > 4:
handler = handler[:4]
con.connection.UnregisterHandler(*handler)
@log_calls('PluginManager')