Commit 73e6edad8a89ae8a41ab1f7c497585fe37968fa0
- Diff rendering mode:
- inline
- side by side
src/gaze.mod
(7 / 1)
|   | |||
| 873 | 873 | Message.PrintLine(parse.chan, "Stand by please."); | |
| 874 | 874 | StringParse.Split("ions ", parse.message, null, target); | |
| 875 | 875 | Strings.Extract(target, 0, LENGTH(target)-2, target); | |
| 876 | Strings.Assign("p6-versions ", command); | ||
| 876 | Strings.Assign("p6Versions20080923 ", command); | ||
| 877 | 877 | Strings.Concat(command, target, command); | |
| 878 | 878 | (* Debugging *) | |
| 879 | 879 | IF debugging THEN | |
| 880 | 880 | Message.PrintLine(Message.homechan, command); | |
| 881 | 881 | END; | |
| 882 | p6Fifo.writeFIFO(command); | ||
| 883 | p6Fifo.readFIFO(result); | ||
| 884 | (* | ||
| 882 | 885 | done := ProgExec.Command(command, res); | |
| 883 | 886 | StreamFile.Open(file, "/tmp/versions", StreamFile.read, iores); | |
| 884 | 887 | TextIO.ReadString(file, result); | |
| 885 | 888 | TextIO.SkipLine(file); | |
| 889 | *) | ||
| 886 | 890 | (* Debugging: *) | |
| 887 | 891 | IF debugging THEN | |
| 888 | 892 | Message.PrintLine(Message.homechan, result); | |
| … | … | ||
| 902 | 902 | Strings.Concat(str, parse.nick, str); | |
| 903 | 903 | END; | |
| 904 | 904 | Message.PrintLine(parse.chan, str); | |
| 905 | (* | ||
| 905 | 906 | StreamFile.Close(file); | |
| 906 | 907 | IF NOT debugging THEN | |
| 907 | 908 | FileSys.Remove("/tmp/versions", done); | |
| 908 | 909 | END; | |
| 910 | *) | ||
| 909 | 911 | EXCEPT | |
| 910 | 912 | str := "chews on T~ and spits it out. That wasn't a very tasty spell name."; | |
| 911 | 913 | StringParse.Replace(str, "T~", target); |

