コード例 #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
コード例 #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
コード例 #3
0
 def saychatroom(self, room, text):
     self.frame.np.queue.put(slskmessages.SayChatroom(room, text))
コード例 #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))