Exemplo n.º 1
0
 def __init__(self,
              nickname,
              password,
              channels,
              pm_to_nicks,
              tags,
              notify_events,
              useRevisions=False,
              showBlameList=False,
              lostDelay=None,
              failedDelay=None,
              useColors=True,
              allowShutdown=False):
     ThrottledClientFactory.__init__(self,
                                     lostDelay=lostDelay,
                                     failedDelay=failedDelay)
     self.status = None
     self.nickname = nickname
     self.password = password
     self.channels = channels
     self.pm_to_nicks = pm_to_nicks
     self.tags = tags
     self.notify_events = notify_events
     self.useRevisions = useRevisions
     self.showBlameList = showBlameList
     self.useColors = useColors
     self.allowShutdown = allowShutdown
Exemplo n.º 2
0
 def __init__(self, nickname, password, channels, pm_to_nicks, tags, notify_events,
              useRevisions=False, showBlameList=False,
              lostDelay=None, failedDelay=None, useColors=True, allowShutdown=False):
     ThrottledClientFactory.__init__(self, lostDelay=lostDelay,
                                     failedDelay=failedDelay)
     self.status = None
     self.nickname = nickname
     self.password = password
     self.channels = channels
     self.pm_to_nicks = pm_to_nicks
     self.tags = tags
     self.notify_events = notify_events
     self.useRevisions = useRevisions
     self.showBlameList = showBlameList
     self.useColors = useColors
     self.allowShutdown = allowShutdown
Exemplo n.º 3
0
    def __init__(self, nickname, password, channels, pm_to_nicks, tags, notify_events,
                 noticeOnChannel=False, useRevisions=False, showBlameList=False,
                 lostDelay=None, failedDelay=None, useColors=True, allowShutdown=False,
                 categories=None  # deprecated
                 ):
        ThrottledClientFactory.__init__(self, lostDelay=lostDelay,
                                        failedDelay=failedDelay)
        self.status = None
        self.nickname = nickname
        self.password = password
        self.channels = channels
        self.pm_to_nicks = pm_to_nicks
        self.tags = tags or categories
        self.notify_events = notify_events
        self.noticeOnChannel = noticeOnChannel
        self.useRevisions = useRevisions
        self.showBlameList = showBlameList
        self.useColors = useColors
        self.allowShutdown = allowShutdown

        if categories:
            log.msg("WARNING: categories are deprecated and should be replaced with 'tags=[cat]'")
Exemplo n.º 4
0
 def clientConnectionFailed(self, connector, reason):
     if self.shuttingDown:
         log.msg("not scheduling reconnection attempt")
         return
     ThrottledClientFactory.clientConnectionFailed(self, connector, reason)
Exemplo n.º 5
0
 def clientConnectionFailed(self, connector, reason):
     if self.shuttingDown:
         log.msg("not scheduling reconnection attempt")
         return
     ThrottledClientFactory.clientConnectionFailed(self, connector, reason)