Exemple #1
0
 def append_message(self, msg):
     msg = preprocess(msg, (replace_emotes,
                            remove_formatting))
     msg = links_to_markup(escape_markup(msg))
     self._append(msg)
     self.container.height = self._container_height()
     self.children[0].scroll_y = 0
Exemple #2
0
def send_whisper_result(data):
    if data.code == 0:
        message = textutils.preprocess(commands.whisper_msg)
        m = "[-> {}] {}".format(commands.whisper_to, message)
        debuglog.info(m)
        cui.input_win.clear()
        cui.input_win.addstr('/w "{}" '.format(commands.whisper_to))
        cui.input_win.refresh()
    else:
        debuglog.info("[error] {} is offline.".format(commands.whisper_to))
Exemple #3
0
 def append_message(self, msg):
     msg = preprocess(msg, (replace_emotes, remove_formatting))
     msg = links_to_markup(escape_markup(msg))
     self._append(msg)
     self.container.height = self._container_height()
     self.children[0].scroll_y = 0
Exemple #4
0
def party_chat(data):
    nick = mapserv.party_members.get(data.id, str(data.id))
    message = textutils.preprocess(data.message)
    m = "[Party] {} : {}".format(nick, message)
    debuglog.info(m)
Exemple #5
0
def got_whisper(data):
    nick, message = data.nick, data.message
    message = textutils.preprocess(message)
    m = "[{} ->] {}".format(nick, message)
    debuglog.info(m)
Exemple #6
0
def player_chat(data):
    message = textutils.preprocess(data.message)
    debuglog.info(message)
Exemple #7
0
def being_chat(data):
    id_, message = data.id, data.message
    nick = mapserv.beings_cache[id_].name
    message = textutils.preprocess(message)
    m = "{} : {}".format(nick, message)
    debuglog.info(m)