* 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('=')
|
eq_args = args[0].split('=')
|
||||||
if len(eq_args) > 1:
|
if len(eq_args) > 1:
|
||||||
target = functions_db.local_and_global_search(pobject, eq_args[0])
|
target = functions_db.local_and_global_search(pobject, eq_args[0])
|
||||||
message = eq_args[1]
|
message = eq_args[1:]
|
||||||
|
|
||||||
if len(target) == 0:
|
if len(target) == 0:
|
||||||
session.msg("I can't find the user %s." % (eq_args[0].capitalize(),))
|
session.msg("I can't find the user %s." % (eq_args[0].capitalize(),))
|
||||||
|
|
@ -268,7 +268,7 @@ def cmd_page(cdat):
|
||||||
else:
|
else:
|
||||||
if target[0].is_connected_plr():
|
if target[0].is_connected_plr():
|
||||||
target[0].emit_to("%s pages you with: %s" %
|
target[0].emit_to("%s pages you with: %s" %
|
||||||
(pobject.get_name(), message))
|
(pobject.get_name(), ' '.join(message)))
|
||||||
session.msg("Page sent.")
|
session.msg("Page sent.")
|
||||||
else:
|
else:
|
||||||
session.msg("Player %s does not exist or is not online." %
|
session.msg("Player %s does not exist or is not online." %
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue