Commit 05306b46e42013e99b44f385707217b2088c5dd7

More touchups to u.Unmaintained
src/u.mod
(7 / 6)
  
1414
1515IMPLEMENTATION MODULE u;
1616
17IMPORT FileSys, Message, ProgExec, StreamFile, Strings, TextIO, IOResult, util, p6Fifo;
17IMPORT FileSys, Message, ProgExec, StreamFile, Strings, TextIO, Timers, IOResult, util, p6Fifo;
1818
1919 PROCEDURE Uptime(parse : Message.Parse);
2020 (* Uptime: How long has the computer that the bot is running on *)
6060 TextIO.SkipLine(file);
6161 UNTIL (IOResult.ReadResult(file) = IOResult.endOfInput);
6262 StreamFile.Close(file);
63 Strings.Concat(tmp, "DONE", tmp);
63 Strings.Concat(tmp, " DONE", tmp);
6464 Message.PrintLine(parse.chan, "The following sections are not currently maintained:");
6565 IF LENGTH(tmp) > 400 THEN
6666 REPEAT
6767 Strings.FindPrev(", ", tmp, 401, found, pos);
6868 Strings.Extract(tmp, 0, pos+1, str);
6969 Message.PrintLine(parse.chan, str);
70 Strings.Extract(tmp, pos+2, LENGTH(tmp), str);
71 Message.PrintLine(parse.chan, str);
70 Strings.Extract(tmp, pos+2, LENGTH(tmp), tmp);
71 (* Message.PrintLine(parse.chan, str); *)
72 Timers.Delay(2);
7273 UNTIL LENGTH(tmp) <= 400;
73 ELSE
74 END; (* ELSE *)
7475 Message.PrintLine(parse.chan, tmp);
75 END; |
76 (* END; *) |
7677 ELSE
7778 Message.PrintLine(parse.chan, "I'm sorry. I've encountered and logged an error in !unmaintained");
7879 util.Log("Unable to open file unmaintained.", parse);