mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
* changed the message to be a tail slice of the eq_args instead of just the second element.
* changed the emit_to() on the target object to use join to turn the message into a string.
This commit is contained in:
parent
26c6dd109a
commit
cb05b23b5b
1 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ def cmd_page(cdat):
|
|||
eq_args = args[0].split('=')
|
||||
if len(eq_args) > 1:
|
||||
target = functions_db.local_and_global_search(pobject, eq_args[0])
|
||||
message = eq_args[1]
|
||||
message = eq_args[1:]
|
||||
|
||||
if len(target) == 0:
|
||||
session.msg("I can't find the user %s." % (eq_args[0].capitalize(),))
|
||||
|
|
@ -268,7 +268,7 @@ def cmd_page(cdat):
|
|||
else:
|
||||
if target[0].is_connected_plr():
|
||||
target[0].emit_to("%s pages you with: %s" %
|
||||
(pobject.get_name(), message))
|
||||
(pobject.get_name(), ' '.join(message)))
|
||||
session.msg("Page sent.")
|
||||
else:
|
||||
session.msg("Player %s does not exist or is not online." %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue