diff options
Diffstat (limited to 'scripts/privmsg.pl')
-rw-r--r-- | scripts/privmsg.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/privmsg.pl b/scripts/privmsg.pl index c667220c..b1d119cb 100644 --- a/scripts/privmsg.pl +++ b/scripts/privmsg.pl @@ -1,6 +1,7 @@ # listen PRIVMSGs - send a notice to yourself when your nick is meantioned use Irssi; +use strict; sub event_privmsg { my ($server, $data, $nick, $address) = @_; @@ -8,7 +9,7 @@ sub event_privmsg { return if (!$server->ischannel($target)); - $mynick = $server->{nick}; + my $mynick = $server->{nick}; return if ($text !~ /\b$mynick\b/); $server->command("/notice $mynick In channel $target, $nick!$address said: $text"); |