def rsps_entry(self, p, contact): if not status.is_invisible() and not status.is_off() and contact.addr[0] not in engine.block_ips: tag = c.IPMSG_ANSENTRY if status.is_afk(): tag |= c.IPMSG_ABSENCEOPT msg = engine.get_name_ext() if engine.supports_utf8(p.addr) or settings['always_use_utf8']: tag |= c.IPMSG_UTF8OPT else: msg = util.utf8_to_sjis(msg) engine.send(contact.addr, tag, msg) if not engine.is_self(contact.addr): self.events.add(contact) self.req_pubkey(contact.addr)
def rsps_ansentry(self, p, contact): if engine.is_self(contact.addr): return self.req_pubkey(contact.addr)