Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def saychatroom(self, room, text):
     self.frame.np.queue.put(slskmessages.SayChatroom(room, text))
Exemplo n.º 4
0
 def saychatroom(self, room, text):
     text = cast_to_unicode_if_needed(text, log.addwarning)
     self.frame.np.queue.put(slskmessages.SayChatroom(room, text))