Skip to content

Instantly share code, notes, and snippets.

@dafrancis
Created December 7, 2012 09:06
Show Gist options
  • Save dafrancis/4231998 to your computer and use it in GitHub Desktop.
Save dafrancis/4231998 to your computer and use it in GitHub Desktop.
use strict;
use vars qw($VERSION %IRSSI);
use URI::Escape;
use Irssi qw(command_bind signal_add);
sub same {
my ($server, $msg, $nick, $address, $channel) = @_;
if($msg =~ /^same$/) {
$server->command("msg $channel same") if ($channel);
}
}
signal_add("message public", "same");
signal_add("message own_public", "same");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment