Last active
October 4, 2015 23:48
-
-
Save wodim/2718787 to your computer and use it in GitHub Desktop.
This file contains 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
sub event_ping { | |
my ($server, $ping) = @_; | |
if ($ping =~ m/^:?[a-zA-Z0-9\[\]]{32}$/) { | |
Irssi::print "Recibido PING cifrado, enviando PONG acorde :-)"; | |
my $pong = "PONG :".descifrar($ping, $private_key); | |
$server->send_raw($pong); | |
Irssi::signal_stop(); | |
} | |
} | |
Irssi::signal_add("event ping", "event_ping") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment