mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
simplify message fallback logic
This commit is contained in:
parent
f9d88b16a2
commit
f348ccad56
1 changed files with 4 additions and 4 deletions
|
|
@ -1389,11 +1389,11 @@ class CmdPage(COMMAND_DEFAULT_CLASS):
|
|||
targets = [target_obj[0]]
|
||||
message = message[0].strip()
|
||||
else:
|
||||
# a message with a space in it - put it back together
|
||||
message = target + " " + (message[0] if message else "")
|
||||
# a message with a space in it - use the original args
|
||||
message = self.args.strip()
|
||||
else:
|
||||
# a single-word message
|
||||
message = target.strip()
|
||||
# a single-word message - use the original args
|
||||
message = self.args.strip()
|
||||
|
||||
pages = list(pages_we_sent) + list(pages_we_got)
|
||||
pages = sorted(pages, key=lambda page: page.date_created)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue