diff options
Diffstat (limited to 'scripts/privmsg.pl')
-rw-r--r-- | scripts/privmsg.pl | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/privmsg.pl b/scripts/privmsg.pl deleted file mode 100644 index b1d119cb..00000000 --- a/scripts/privmsg.pl +++ /dev/null @@ -1,18 +0,0 @@ -# listen PRIVMSGs - send a notice to yourself when your nick is meantioned - -use Irssi; -use strict; - -sub event_privmsg { - my ($server, $data, $nick, $address) = @_; - my ($target, $text) = $data =~ /^(\S*)\s:(.*)/; - - return if (!$server->ischannel($target)); - - my $mynick = $server->{nick}; - return if ($text !~ /\b$mynick\b/); - - $server->command("/notice $mynick In channel $target, $nick!$address said: $text"); -} - -Irssi::signal_add("event privmsg", "event_privmsg"); |