about summary refs log tree commit diff stats
path: root/src/plugins
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-03-28 01:25:48 +0100
committerJames Booth <boothj5@gmail.com>2016-03-28 01:25:48 +0100
commitd39e48ba1808463a3f8330ace6384d66d1b48100 (patch)
treeb6787ccefda5c281dac93f29a279e542f970c8de /src/plugins
parent8933d59b03aaf4ef54a6f7cfc8513cd36b8cf67a (diff)
downloadprofani-tty-d39e48ba1808463a3f8330ace6384d66d1b48100.tar.gz
Use one stanza handler per type (message, iq, presence)
Allows plugins to stop stanza processing
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/python_plugins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/python_plugins.c b/src/plugins/python_plugins.c
index 5ae03879..baaf7b5b 100644
--- a/src/plugins/python_plugins.c
+++ b/src/plugins/python_plugins.c
@@ -635,6 +635,7 @@ python_on_message_stanza_receive_hook(ProfPlugin *plugin, const char *const text
         }
     }
 
+    allow_python_threads();
     return TRUE;
 }
 
@@ -699,6 +700,7 @@ python_on_presence_stanza_receive_hook(ProfPlugin *plugin, const char *const tex
         }
     }
 
+    allow_python_threads();
     return TRUE;
 }
 
@@ -763,6 +765,7 @@ python_on_iq_stanza_receive_hook(ProfPlugin *plugin, const char *const text)
         }
     }
 
+    allow_python_threads();
     return TRUE;
 }