def kick_from_all(self, char_id): for _id, conn in self.bot.get_conns(): if char_id in conn.private_channel: conn.send_packet(client_packets.PrivateChannelKick(char_id))
def kick(self, char_id): if char_id != self.bot.get_char_id(): self.bot.send_packet(client_packets.PrivateChannelKick(char_id))
def kick(self, char_id, conn: Conn): if char_id != conn.char_id: conn.send_packet(client_packets.PrivateChannelKick(char_id))