View/Edit #12:__fix

Switch to edit mode.

Name(s): __fix
1:  "runs the old->new format conversion on every message in this.messages."
2:  " => 1 if successful"
3:  " => 0 if anything toward happened during a suspension"
4:  "      (e.g., new message received, someone deleted stuff) "
5:  "      in which case this.messages is left as if this routine were never run."
6:  if (!$perm_utils:controls(caller_perms(), this))
7:    return E_PERM
8:  endif
9:  msgs = {}
10: i = 1
11: for m in (oldmsgs = this.messages)
12:   msgs = {@msgs, {m[1], $mail_agent:__convert_new(@m[2])}}
13:   if ($command_utils:running_out_of_time())
14:     player:notify(tostr("...", i, " ", this))
15:     suspend(0)
16:     if (oldmsgs != this.messages)
17:       return 0
18:     endif
19:   endif
20:   i = i + 1
21: endfor
22: this.messages = msgs
23: return 1

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]