added "use strict" for all scripts, made some small changes.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1639 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-16 20:22:45 +00:00 committed by cras
commit 69a6096b8b
8 changed files with 37 additions and 31 deletions

View file

@ -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");