Skip to content

Instantly share code, notes, and snippets.

@zachpendleton
Created February 7, 2013 23:23
Show Gist options
  • Select an option

  • Save zachpendleton/4735173 to your computer and use it in GitHub Desktop.

Select an option

Save zachpendleton/4735173 to your computer and use it in GitHub Desktop.
use strict;
sub event_send_text {
my ($text, $server, $win_item) = @_;
$text =~ s/:-1:/πŸ‘Ž/g;
$text =~ s/:\+1:/πŸ‘/g;
$text =~ s/:poop:/πŸ’©/g;
$text =~ s/:no_good:/πŸ™…/g;
$text =~ s/:ok_woman:/πŸ™†/g;
Irssi::signal_continue($text, $server, $win_item);
}
Irssi::signal_add('send text', 'event_send_text');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment