From b73a0f8f8c86c79e214c771151b0b7302c4c792d Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 1 Mar 2017 08:08:19 +0100 Subject: [PATCH] Some minor language fixes. --- evennia/commands/default/general.py | 10 +++++----- evennia/commands/default/tests.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py index e2b543e50..38d724126 100644 --- a/evennia/commands/default/general.py +++ b/evennia/commands/default/general.py @@ -424,7 +424,8 @@ class CmdWhisper(COMMAND_DEFAULT_CLASS): Usage: whisper = - Talk privately to those in your current location. + Talk privately to those in your current location, without + others being informed. """ key = "whisper" @@ -438,13 +439,12 @@ class CmdWhisper(COMMAND_DEFAULT_CLASS): if not self.lhs or not self.rhs: caller.msg("Usage: whisper = ") return - + receiver = caller.search(self.lhs) if not receiver: - caller.msg("Usage: whisper = ") return - + if caller == receiver: caller.msg("You can't whisper to yourself.") return @@ -452,7 +452,7 @@ class CmdWhisper(COMMAND_DEFAULT_CLASS): speech = self.rhs # Feedback for the object doing the talking. - caller.msg('You whisper %s, "%s|n"' % (receiver.key, speech)) + caller.msg('You whisper to %s, "%s|n"' % (receiver.key, speech)) # Build the string to emit to receiver. emit_string = '%s whispers, "%s|n"' % (caller.name, speech) diff --git a/evennia/commands/default/tests.py b/evennia/commands/default/tests.py index 111eba635..1d09a56c7 100644 --- a/evennia/commands/default/tests.py +++ b/evennia/commands/default/tests.py @@ -118,7 +118,7 @@ class TestGeneral(CommandTest): self.call(general.CmdSay(), "Testing", "You say, \"Testing\"") def test_whisper(self): - self.call(general.CmdWhisper(), "Obj = Testing", "You whisper Obj, \"Testing\"") + self.call(general.CmdWhisper(), "Obj = Testing", "You whisper to Obj, \"Testing\"") def test_access(self): self.call(general.CmdAccess(), "", "Permission Hierarchy (climbing):")