def fakepublic(self, room, user, text): try: room = self.frame.chatrooms.roomsctrl.joinedrooms[room] except KeyError: return False msg = slskmessages.SayChatroom(room, text) msg.user = user room.SayChatRoom(msg, text) return True
def fakepublic(self, room, user, text): try: room = self.frame.chatrooms.roomsctrl.joinedrooms[room] except KeyError: return False text = cast_to_unicode_if_needed(text, self.log) msg = slskmessages.SayChatroom(room, text) msg.user = user room.SayChatRoom(msg, text) return True
def saychatroom(self, room, text): self.frame.np.queue.put(slskmessages.SayChatroom(room, text))
def saychatroom(self, room, text): text = cast_to_unicode_if_needed(text, log.addwarning) self.frame.np.queue.put(slskmessages.SayChatroom(room, text))