Beispiel #1
0
    def connectionMade(self):
        log.msg("Connected!")

        global current_conn
        current_conn = self

        commands=xmpp_commands.all_commands
        self.commands={}
        for c in commands.values():
            self.commands[c.name] = c
            for a in c.aliases: 
                self.commands[a] = c
        log.msg("Loaded commands: ", `self.commands.keys()`)

        # Let the scheduler know we connected.
        scheduling.connected()
Beispiel #2
0
    def connectionMade(self):
        log.msg("Connected!")

        global current_conn
        current_conn = self

        commands = xmpp_commands.all_commands
        self.commands = {}
        for c in commands.values():
            self.commands[c.name] = c
            for a in c.aliases:
                self.commands[a] = c
        log.msg("Loaded commands: ", ` self.commands.keys() `)

        # Let the scheduler know we connected.
        scheduling.connected()
Beispiel #3
0
    def connectionInitialized(self):
        super(TwitterspyMessageProtocol, self).connectionInitialized()
        log.msg("Connected!")

        commands=xmpp_commands.all_commands
        self.commands={}
        for c in commands.values():
            self.commands[c.name] = c
            for a in c.aliases:
                self.commands[a] = c
        log.msg("Loaded commands: %s" % `sorted(commands.keys())`)

        self.pubsub = True

        # Let the scheduler know we connected.
        scheduling.connected()

        self._pubid = 1

        global current_conns, default_conn
        current_conns[self.jid] = self
        if self.preferred:
            default_conn = self
Beispiel #4
0
    def connectionInitialized(self):
        super(TwitterspyMessageProtocol, self).connectionInitialized()
        log.msg("Connected!")

        commands = xmpp_commands.all_commands
        self.commands = {}
        for c in commands.values():
            self.commands[c.name] = c
            for a in c.aliases:
                self.commands[a] = c
        log.msg("Loaded commands: %s" % ` sorted(commands.keys()) `)

        self.pubsub = True

        # Let the scheduler know we connected.
        scheduling.connected()

        self._pubid = 1

        global current_conns, default_conn
        current_conns[self.jid] = self
        if self.preferred:
            default_conn = self