4 # initial script by Ilya Sukhanov <ilya@sukhanov.net>
5 # http://dotcommie.net/?id=155
8 # Documentation and formating by Boris Petersen <transacid@centerim.org>
10 # Usage: cimformathistory history
11 # where <history> is the history file in ~/.centerim/<id>/history
18 # change this to the nick of the buddy
20 # change this to your nick
24 if (match ($
2,"MSG")) { if (match($
1,"IN")) a=from
;
26 # you can modify the format of the timestamp
27 # here. please refer to `man 3 strftime`
28 # this example will look like:
29 # 2010/07/27 [16:31:36]
30 printf("%s %s: %s", strftime
("%Y/%m/%d [%H:%M:%S]", $
4), a
, $
5);
31 for (i=
6; i
<=
NF;i
++) printf("\t\t%s\n", $i
);