tree checksum vpatch file split hunks
all signers: lobbes asciilifeform diana_coman
antecedents: irssi2tmsr.kv raw_line_fix.kv
press order:
patch:
(8 . 3)(8 . 4)
5 590714 znc2tmsr_etc lobbes "Converter of znc logs to the tmsr format used by the logotron. Small fixes to eat_dump.py."
6 593779 uptimefix_bye_cache lobbes "Fix in bot.py for global time_last_conn. Remove Cache from reader.py. Small README fix re: create database."
7 594463 raw_line_fix lobbes "Fix to raw line export in reader.py to remove semi-colon from right side of nick on action lines"
8 595435 irssi_format diana_coman "Updates the irssi2tmsr converter to work on out-of-the-box irssi format. Updated README file too with example of format."
- D6C6FB0C6C00F85A0665614BFFA30CD804BCF49E55CE78D58F8C744B7CBAC8657FCCAD1D6ED5A47A85BA11E71F2E583775D7E4FC36980B5AF8F7958C28802CC7(9 . 5)(9 . 20)
13 sh convert.sh 10001 < inputfile > outputfile
14
15 3. Caveats:
16 - the converter expects months to be recorded numerically in the input file (e.g. 8, 9 instead of Aug, Sep); if your irssi log uses names for months then you'll need to either update the converter or convert month names to numbers separately, as a pre-converter step.
17 - based on the previous raw awk version published at http://logs.nosuchlabs.com/log/trilema/2019-08-11#1927486 and tested *only* on one irssi log of #ossasepia (result can be seen at: deedbot.org/deed-589684-1.txt )
18 - the converter works on the "out-of-the-box" irssi log format, as currently seen, for instance:
19
20 --- Day changed Mon Jul 15 2019
21 16:46 --> moopet [~moopet@unaffiliated/moopet] has joined #ossasepia
22 16:46 moopet: Aloha
23 16:46 diana_coman: hello moopet
24 16:46 diana_coman: what brings you here?
25 16:47 * moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
26
27 will produce (./convert.sh 2 < in.log > out.log) as output:
28
29 2;1563205560;moopet;Aloha
30 3;1563205560;diana_coman;hello moopet
31 4;1563205560;diana_coman;what brings you here?
32 5;1563205620;*;moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
33
- B8CE803DC74070A6BA41B992E99050526777D4E12076268EEE0D47A4051BA343BD3D16E9695438F7E9AB5343DFE6C17773CE018BE63912978E4AD58BB8409297(5 . 14)(5 . 17)
38 exit 1
39 fi
40
41 awk -v mindex=$1 '/Day changed/ {Month=$5; Day=$6; Year=$7;}
42 /Log opened/ {Month=$5; Day=$6; Year=$10;}
43 ! /-|<--|>/ {count++; sep=";";
44 w= Year " " Month " " Day " " $1 " " $2 " 00";
45 if ($3 == "*") {
46 pp=$3 sep $4 " "; $4=""; n=5;
47 awk -v mindex=$1 'BEGIN{months="JanFebMarAprMayJunJulAugSepOctNovDec"}
48 /Day changed/ {Month=int((index(months,$5)+2)/3); Day=$6; Year=$7;}
49
50 /Log opened/ {Month=int((index(months,$5)+2)/3); Day=$6; Year=$8;}
51 ! /(-->)|(<--)|(---)/ {count++; sep=";";
52 w= Year " " Month " " Day " " substr($1, 1, 2) " " substr($1, 4, 5) " 00";
53 if ($2 == "*") {
54 pp= $2 sep $3 " "; $3=""; n=4;
55 } else {
56 pp=$3 sep; n=4;};
57 $1=""; $2=""; $3="";
58 pp=substr($2, 1, length($2)-1) sep; n=3;};
59 $1=""; $2="";
60 print count+mindex-1 sep mktime(w) sep pp substr($0,n);
61 }'
62