De-uglify message

This commit is contained in:
Vgr E. Barry 2017-03-25 01:14:31 -04:00
parent b08d802df7
commit faa3925e7d
2 changed files with 4 additions and 3 deletions

View File

@ -124,7 +124,8 @@
"invalid_channel": "You need to be in {0} to use that command.",
"swap_notice": "More than one player is logged in to your account. Use '{0}swap <nick>' to swap.",
"account_not_playing": "You do not appear to be playing. Make sure you are identified to the same account.",
"target_not_playing": "That person is no{0} playing.",
"target_not_playing": "That person is not playing.",
"target_no_longer_playing": "That person is no longer playing.",
"target_not_logged_in": "That person is not logged in to NickServ.",
"player_swap": "\u0002{0}\u0002 has swapped places with \u0002{1}\u0002.",
"get_pingif": "You will be pinged when there are at least {0} players joined.",

View File

@ -568,11 +568,11 @@ def replace(var, wrapper, message):
target, _ = users.complete_match(rest[0], pl)
if target is None:
wrapper.pm(messages["target_not_playing"].format("t"))
wrapper.pm(messages["target_not_playing"])
return
if target not in pl:
wrapper.pm(messages["target_not_playing"].format(" longer" if target.nick in var.DEAD else "t")) # FIXME: Need to fix once var.DEAD holds User instances
wrapper.pm(messages["target_no_longer_playing" if target.nick in var.DEAD else "target_not_playing"]) # FIXME: Need to fix once var.DEAD holds User instances
return
if target.account is None: