Exemplo n.º 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))
Exemplo n.º 3
0
    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))
Exemplo n.º 4
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp["xep_0050"].add_command(None, "shutdown", "Shutdown", self._handle_shutdown_command)
Exemplo n.º 5
0
 def post_init(self):
     """
     Handle cross-plugin dependencies.
     """
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
Exemplo n.º 6
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp["xep_0030"].add_feature(Geoloc.namespace)
Exemplo n.º 7
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
Exemplo n.º 8
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(stanza.Attention.namespace)
Exemplo n.º 9
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
Exemplo n.º 10
0
 def post_init(self):
     base_plugin.post_init(self)
Exemplo n.º 11
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
Exemplo n.º 12
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Geoloc.namespace)
Exemplo n.º 13
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None, 'shutdown', 'Shutdown',
                                       self._handle_shutdown_command)
Exemplo n.º 14
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)
Exemplo n.º 15
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
Exemplo n.º 16
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Exemplo n.º 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)
Exemplo n.º 18
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Exemplo n.º 19
0
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
Exemplo n.º 20
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature("jabber:iq:register")
Exemplo n.º 21
0
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
Exemplo n.º 22
0
 def post_init(self):
     base_plugin.post_init(self)
Exemplo n.º 23
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Ping.namespace)
Exemplo n.º 24
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
Exemplo n.º 25
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None,
                                       'shutdown',
                                       'Shutdown',
                                       self._handle_shutdown_command)
Exemplo n.º 26
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Exemplo n.º 27
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Exemplo n.º 28
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 31
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Set.namespace)