2 require("lib/quakenet")
4 require("lib/scheduler")
5 require("lib/schedule-legacy")
6 require("lib/serialise")
13 local NOTREPORTING = false
15 function scripterror(err)
16 local cerror = os.time()
17 if cerror > LASTERROR then
22 if not NOTREPORTING then
23 chanmsgn(traceback(err, 2))
25 LASTERROR = LASTERROR + 1
26 if LASTERROR > cerror + 10 then
28 chanmsg("Too many errors for this script -- no longer reporting")
33 math.randomseed(os.time())