# HG changeset patch # User souliane # Date 1383682111 -3600 # Node ID 78bf4ed3757496b19b5c10b12f422a9cbfedf223 # Parent f7878ad3c846ccc0c9952dc5127838f9426e3842 plugin XEP-249: added parameter Misc / Auto-join MUC on invitation diff -r f7878ad3c846 -r 78bf4ed37574 src/plugins/plugin_xep_0249.py --- a/src/plugins/plugin_xep_0249.py Tue Oct 29 16:26:55 2013 +0100 +++ b/src/plugins/plugin_xep_0249.py Tue Nov 05 21:08:31 2013 +0100 @@ -35,6 +35,9 @@ MESSAGE = '/message' NS_DIRECT_MUC_INVITATION = 'jabber:x:conference' DIRECT_MUC_INVITATION_REQUEST = MESSAGE + '/x[@xmlns="' + NS_DIRECT_MUC_INVITATION + '"]' +AUTOJOIN_KEY = "Misc" +AUTOJOIN_NAME = "Auto-join MUC on invitation" +AUTOJOIN_VALUES = ["ask", "always", "never"] PLUGIN_INFO = { "name": "XEP 0249 Plugin", @@ -50,9 +53,29 @@ class XEP_0249(object): + params = """ + + + + + %(param_options)s + + + + + """ % { + 'category_name': AUTOJOIN_KEY, + 'category_label': _("Misc"), + 'param_name': AUTOJOIN_NAME, + 'param_label': _("Auto-join MUC on invitation"), + 'param_default': AUTOJOIN_VALUES[0], + 'param_options': ['