def sendAction2Chan(self,Message): time.sleep(1) # wait 1 second, avoid the flood kick # Send the Message as an IRC Action to a channel or destination user. self.m_socket.sendall("PRIVMSG "+Message.getDest()+" :"+chr(1)+"ACTION "+Message.getText()+chr(1)+" \r\n")
def send2Chan(self,Message): time.sleep(1) # wait 1 second, avoid the flood kick # Send the Message to a channel or destination user self.m_socket.sendall("PRIVMSG "+Message.getDest()+" : "+Message.getText()+" \r\n")