Skip to content

Commit

Permalink
* tkabber-log: now eats grep -R output
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Jun 15, 2015
1 parent 9cd9e4c commit bdf84e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tkabber-log
@@ -1,6 +1,6 @@
#!/usr/bin/perl
while (<STDIN>) {
/^timestamp (.*?) jid (.*?) nick (.*?) body (.*?)( me \d)*$/;
/^.*?timestamp (.*?) jid (.*?) nick (.*?) body (.*?)( me \d)*$/;
($time, $nick, $body) = ($1, unescape($3), unescape($4));
$nick = "$nick: " if $nick;
print "$time] $nick$body\n";
Expand Down

0 comments on commit bdf84e3

Please sign in to comment.