Exemple #1
0
    def post_init(self):
        base_plugin.post_init(self)
        if 'xep_0004' in self.xmpp.plugin:
            register_stanza_plugin(Register, self.xmpp['xep_0004'].stanza.Form)

        if 'xep_0066' in self.xmpp.plugin:
            register_stanza_plugin(Register, self.xmpp['xep_0066'].stanza.OOB)
    def post_init(self):
        """Handle cross-plugin dependencies."""
        base_plugin.post_init(self)
        self.disco = self.xmpp['xep_0030']
        self.static = StaticExtendedDisco(self.disco.static)

        self.disco.set_extended_info = self.set_extended_info
        self.disco.add_extended_info = self.add_extended_info
        self.disco.del_extended_info = self.del_extended_info

        for op in self._disco_ops:
            self.disco._add_disco_op(op, getattr(self.static, op))
    def post_init(self):
        """Handle cross-plugin dependencies."""
        base_plugin.post_init(self)
        self.disco = self.xmpp['xep_0030']
        self.static = StaticExtendedDisco(self.disco.static)

        self.disco.set_extended_info = self.set_extended_info
        self.disco.add_extended_info = self.add_extended_info
        self.disco.del_extended_info = self.del_extended_info

        for op in self._disco_ops:
            self.disco._add_disco_op(op, getattr(self.static, op))
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp["xep_0050"].add_command(None, "shutdown", "Shutdown", self._handle_shutdown_command)
 def post_init(self):
     """
     Handle cross-plugin dependencies.
     """
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp["xep_0030"].add_feature(Geoloc.namespace)
Exemple #7
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(stanza.Attention.namespace)
Exemple #9
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
Exemple #10
0
 def post_init(self):
     base_plugin.post_init(self)
Exemple #11
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Geoloc.namespace)
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None, 'shutdown', 'Shutdown',
                                       self._handle_shutdown_command)
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     if 'xep_0059' in self.xmpp.plugin:
         register_stanza_plugin(DiscoItems,
                                self.xmpp['xep_0059'].stanza.Set)
Exemple #15
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
Exemple #16
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Exemple #17
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     if 'xep_0059' in self.xmpp.plugin:
         register_stanza_plugin(DiscoItems,
                                self.xmpp['xep_0059'].stanza.Set)
Exemple #18
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Exemple #19
0
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature("jabber:iq:register")
Exemple #21
0
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
 def post_init(self):
     base_plugin.post_init(self)
Exemple #23
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Ping.namespace)
Exemple #24
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None,
                                       'shutdown',
                                       'Shutdown',
                                       self._handle_shutdown_command)
Exemple #26
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Exemple #27
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Exemple #28
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
Exemple #29
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(stanza.OOBTransfer.namespace)
     self.xmpp['xep_0030'].add_feature(stanza.OOB.namespace)
Exemple #30
0
 def post_init(self):
     """
     Handle cross-plugin dependencies.
     """
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
Exemple #31
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Set.namespace)