Created
May 4, 2015 19:32
-
-
Save eiro/908b5610ece27d4bee49 to your computer and use it in GitHub Desktop.
my first attempt to log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use vars qw($VERSION %IRSSI); | |
use Irssi; | |
use Eirotic; | |
use re '/x'; | |
Irssi::signal_add "message public" , sub { | |
my ( $srv, $msg, $nick, $address, $target ) = @_; | |
state $fh = do { | |
open my $w, '>>','/tmp/logmetender'; | |
$w | |
}; | |
say $fh join "\t" | |
, $nick | |
, $target | |
, $$srv{chatnet} | |
, $msg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment