示例#1
0
 def kickUser(self, handle, channel):
     c = unicode(channel)
     h = unicode(handle)
     try:
         helpers.kick(self.cli, h, c)
     except socket.error:
         self.setConnectionBroken()
示例#2
0
 def kickUser(self, handle, channel):
     l = handle.split(":")
     c = unicode(channel)
     h = unicode(l[0])
     if len(l) > 1:
         reason = unicode(l[1])
     else:
         reason = ""
     try:
         helpers.kick(self.cli, h, c, reason)
     except socket.error:
         self.setConnectionBroken()
示例#3
0
 def kickUser(self, handle, channel):
     l = handle.split(":")
     c = str(channel)
     h = str(l[0])
     if len(l) > 1:
         reason = str(l[1])
         if len(l) > 2:
           for x in l[2:]:
             reason += str(":") + str(x)
     else:
         reason = ""
     try:
         helpers.kick(self.cli, h, c, reason)
     except socket.error:
         self.setConnectionBroken()
示例#4
0
 def kickUser(self, handle, channel):
     l = handle.split(":")
     c = str(channel)
     h = str(l[0])
     if len(l) > 1:
         reason = str(l[1])
         if len(l) > 2:
           for x in l[2:]:
             reason += str(":") + str(x)
     else:
         reason = ""
     try:
         helpers.kick(self.cli, h, c, reason)
     except socket.error:
         self.setConnectionBroken()