View/Edit #12:receive_page

Switch to edit mode.

Name(s): receive_page
1:  "Return codes:"
2:  "  1:  page was received"
3:  "  2:  player is not connected"
4:  "  0:  page refused"
5:  "If a specialization wants to refuse a page, it should return 0 to say it was refused. This code now uses is_listening(), and thus does interact with the gagging system, returning a refusal if this object is not listening to the player."
6:  this:sub_tell(@args)
7:  user = caller_perms()
8:  for x in (callers())
9:    if (x[1] != this && is_player(x[1]))
10:     user = x[1]
11:     break
12:   endif
13: endfor
14: if (!this:connected(0))
15:   "Try Jabber..."
16:   return $jabber:receive_page(this, @args)
17: endif
18: return this:is_listening() ? 1 | 0
19: "Last modified by Dax (#789) on Thu May  5 15:08:12 2005 MDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Slacker (#55)

You are not logged in.

[home | help | who | search | setup | code]