Example #1
0
 def sendAction(self, target, text):
     if self.connection.is_connected():
         self.connection.action(target, text)
         return True
     else:
         logger.error("IRC connection lost.")
         for channel in self.crucialChannels:
             if channel in self.channels:
                 self.channels[channel].printAction("IRC", "was disconnected.")
         return False
Example #2
0
    def connect(self):
        #Do the actual connecting, join all important channels
        try:
            self.irc_connect(self.ircServer, self.ircPort, self.client.login, ssl=True)
            self.timer.start()

        except:
            logger.debug("Unable to connect to IRC server.")
            self.serverLogArea.appendPlainText("Unable to connect to the chat server, but you should still be able to host and join games.")
            logger.error("IRC Exception", exc_info=sys.exc_info())
Example #3
0
 def sendAction(self, target, text):
     if self.connection.is_connected():
         self.connection.action(target, text)
         return True
     else:
         logger.error("IRC connection lost.")
         for channel in self.crucialChannels:
             if channel in self.channels:
                 self.channels[channel].printAction("IRC",
                                                    "was disconnected.")
         return False
Example #4
0
    def connect(self):
        #Do the actual connecting, join all important channels
        try:
            self.irc_connect(self.ircServer,
                             self.ircPort,
                             self.client.login,
                             ssl=True)
            self.timer.start()

        except:
            logger.debug("Unable to connect to IRC server.")
            self.serverLogArea.appendPlainText(
                "Unable to connect to the chat server, but you should still be able to host and join games."
            )
            logger.error("IRC Exception", exc_info=sys.exc_info())