Beispiel #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)
Beispiel #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')
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp["xep_0030"].add_feature(Geoloc.namespace)
Beispiel #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)
Beispiel #9
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
Beispiel #10
0
 def post_init(self):
     base_plugin.post_init(self)
Beispiel #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)
Beispiel #13
0
 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)
Beispiel #15
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
Beispiel #16
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Beispiel #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)
Beispiel #18
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
Beispiel #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")
Beispiel #21
0
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
 def post_init(self):
     base_plugin.post_init(self)
Beispiel #23
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Ping.namespace)
Beispiel #24
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
Beispiel #25
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None,
                                       'shutdown',
                                       'Shutdown',
                                       self._handle_shutdown_command)
Beispiel #26
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Beispiel #27
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
Beispiel #28
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
Beispiel #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)
Beispiel #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')
Beispiel #31
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Set.namespace)