Example #1
0
 def joinChannel(self, channel):
     c = str(channel)
     try:
         helpers.join(self.cli, c)
         helpers.mode(self.cli, c, "", None)
     except socket.error:
         self.setConnectionBroken()
Example #2
0
 def joinChannel(self, channel):
     c = unicode(channel)
     try:
         helpers.join(self.cli, c)
         helpers.mode(self.cli, c, "", None)
     except socket.error:
         self.setConnectionBroken()
Example #3
0
 def setChannelMode(self, channel, mode, command):
     c = str(channel)
     m = str(mode)
     cmd = str(command)
     if cmd == "":
         cmd = None
     try:
         helpers.mode(self.cli, c, m, cmd)
     except socket.error:
         self.setConnectionBroken()
Example #4
0
 def setChannelMode(self, channel, mode, command):
     c = unicode(channel)
     m = unicode(mode)
     cmd = unicode(command)
     if cmd == "":
         cmd = None
     try:
         helpers.mode(self.cli, c, m, cmd)
     except socket.error:
         self.setConnectionBroken()
Example #5
0
 def welcome(self, server, nick, msg):
     self.parent.setConnected()
     mychumhandle = self.mainwindow.profile().handle
     mymood = self.mainwindow.profile().mood.value()
     if not self.mainwindow.config.lowBandwidth():
         helpers.join(self.client, "#pesterchum")
         helpers.msg(self.client, "#pesterchum", "MOOD >%d" % (mymood))
         # We override the +T that's set by default, for now, to reenable
         # CTCP communication.
         # Because of the potential for spam, Low Bandwidth mode still
         # disables this...this will likely change in the future.
         helpers.mode(self.client, mychumhandle, "-T")