def respondICWhisperTarget(sender, message, chname, portrait): if len(portrait) > 1: portfile = makePortableFilename(path.join(PORTRAIT_DIR, portrait)) ICSay(translate('remote', '<table><tr><td><img src="{port}" width="{size}" height="{size}"></td><td>{name} whispers: {message}</td></tr></table><br />').format( port=portfile, size=getPortraitSize(), name=linkedName(chname), message=message)) else: ICSay(translate('remote', '{name} whispers: {message}').format( name=linkedName(chname), message=message))
def respondICSay(chname, message, portrait): if len(portrait) > 1: portfile = makePortableFilename(path.join(PORTRAIT_DIR, portrait)) IAMTHEDOOMPHANTOM = crm.translateFile(makePortableFilename(path.join(PORTRAIT_DIR, portrait)), RESOURCE_IMAGE) #^ Don't remember whether this is still needed for transfer etc. ICSay(translate('remote', '<table><tr><td><img src="{port}" width="{size}" height="{size}"></td><td>{name}: {sayText}</td></tr></table><br />').format( port=portfile, size=getPortraitSize(), name=linkedName(chname), sayText=message)) else: ICSay(translate('remote', '{name}: {sayText}</p>').format( name=linkedName(chname), sayText=message))
def respondEmote(username, message): say(translate('remote', '<i>{name} {emote}</i>').format( name=linkedName(username), emote=message))
def respondSay(username, message): say(translate('remote', '{name}: {sayText}').format( name=linkedName(username), sayText=message))
def respondWhisperTarget(sender, message): say(translate('remote', '{username} whispers: {message}').format( username=linkedName(sender), message=message))
def respondWhisperSender(target, message): say(translate('remote', 'To {username}: {message}').format( username=linkedName(target), message=message))