Switch to edit mode.
Name(s): update1: caller_perms().wizard || raise(E_PERM, "Love ya dear!")
2: hour = toint(ctime()[12..13])
3: if (hour > 16 || hour < 6)
4: return
5: elseif (index(ctime(), "Sat") == 1 || index(ctime(), "Sun") == 1)
6: return
7: endif
8: for __x in [1..3]
9: update = this.last_update + 1
10: if (`this.quotes[update] ! E_RANGE' == E_RANGE)
11: update = 1
12: endif
13: if (this.quotes[update][2] == -1)
14: this.last_update = update
15: continue
16: endif
17: quote = `this:_get_quote(this.quotes[update][1]) ! E_INVARG'
18: if (quote == E_INVARG)
19: " $mail_agent:send_message(this, {#8084, #7407}, \"Invalid Symbol\", {(\"I was unable to get a quote for stock market symbol '\" + tostr(this.quotes[update][1])) + \"'. I've ignored it.\"});"
20: else
21: this.quotes[update][2] = quote
22: endif
23: this.last_update = update
24: endfor
25: "Last modified by Dax (#789) on Tue May 3 14:09:33 2005 MDT."