Commit 193bb469245d532448420c55321b9f8bdd475a40
- Diff rendering mode:
- inline
- side by side
src/m.mod
(6 / 6)
|   | |||
| 35 | 35 | ||
| 36 | 36 | PROCEDURE MentionContext(parse: Message.Parse); | |
| 37 | 37 | CONST | |
| 38 | lf = "/home/terry/.xchat2/xchatlogs/freenode-"; | ||
| 38 | lf = "/home/terry/.xchat2/xchatlogs/freenode-"; (* Change this *) | ||
| 39 | 39 | lmfile = "/home/terry/p6dat/tmp/lastmentioned-context"; | |
| 40 | 40 | cfile = "/home/terry/p6dat/tmp/lastcontext"; | |
| 41 | 41 | debugging = TRUE; | |
| … | … | ||
| 78 | 78 | Message.PrintLine(Message.homechan, debugstr); | |
| 79 | 79 | END; | |
| 80 | 80 | ||
| 81 | command := "grep -m 1 -C 30 'C~' LF~CHAN~.log > /usr/share/httpd/htdocs/context/last-NICK~.txt"; | ||
| 81 | command := "grep -m 1 -C 30 'C~' LF~CHAN~.log > /usr/local/www/servers/page6.shlrm.org/pages/context/last-NICK~.txt"; | ||
| 82 | 82 | StringParse.Replace(parse.nick, "|", "-"); | |
| 83 | 83 | StringParse.Replace(command, "NICK~", parse.nick); | |
| 84 | 84 | StringParse.Replace(command, "C~", grepfor); | |
| … | … | ||
| 89 | 89 | END; | |
| 90 | 90 | done := ProgExec.Command(command, exit); | |
| 91 | 91 | ||
| 92 | string := "Context for line number N~ is available at http://linux.aliboom.com:8000/context/last-NICK~.txt"; | ||
| 92 | string := "Context for line number N~ is available at http://page6.shlrm.org/context/last-NICK~.txt"; | ||
| 93 | 93 | StringParse.Replace(string, "N~", contextline); | |
| 94 | 94 | StringParse.Replace(string, "NICK~", parse.nick); | |
| 95 | 95 | Message.PrintLine(parse.chan, string); | |
| … | … | ||
| 205 | 205 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers2 /home/terry/.xplanet/markers/sourcemage-original", res); | |
| 206 | 206 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers2 /home/terry/.xplanet/markers/sourcemage-original", res); | |
| 207 | 207 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers2 /home/terry/.xplanet/markers/sourcemage", res); | |
| 208 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers /usr/share/httpd/htdocs/markers/sourcemage", res); | ||
| 209 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers2 /usr/share/httpd/htdocs/markers/sourcemage-transformed", res); | ||
| 208 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers /usr/local/www/servers/page6.shlrm.org/pages/markers/sourcemage.txt", res); | ||
| 209 | done := ProgExec.Command("cp /home/terry/p6dat/tmp/markers/markers2 /usr/local/www/servers/page6.shlrm.org/pages/markers/sourcemage-transformed.txt", res); | ||
| 210 | 210 | ||
| 211 | 211 | ||
| 212 | 212 | ||
| … | … | ||
| 231 | 231 | Message.PrintLine(parse.chan, "Stand by please..."); | |
| 232 | 232 | MarkersUpdate; | |
| 233 | 233 | Message.PrintLine(parse.chan, "I just scraped the most recent markers from http://wiki.sourcemage.org/XplanetMarkers"); | |
| 234 | Message.PrintLine(parse.chan, "The basic version is at: http://linux.aliboom.com:8000/markers/sourcemage - sed transformed (nicks only, and colored): http://linux.aliboom.com:8000/markers/sourcemage-transformed"); | ||
| 234 | Message.PrintLine(parse.chan, "The basic version is at: http://page6.shlrm.org/markers/sourcemage.txt - sed transformed (nicks only, and colored): http://page6.shlrm.org/markers/sourcemage-transformed.txt"); | ||
| 235 | 235 | END Markers; | |
| 236 | 236 | ||
| 237 | 237 |

