diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-18 20:50:12 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-18 20:50:12 +0000 |
commit | fcb1374e40ebd2b58c1ebf957a76fa5416034431 (patch) | |
tree | 74be402eb1eeb1c4742e9c5955c8d8c4e7ed8d31 /scripts/privmsg.pl | |
parent | ac6bfeba1f83a205e1516eb6166ed2d79c9b6a54 (diff) | |
download | irssi-fcb1374e40ebd2b58c1ebf957a76fa5416034431.zip |
fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@768 dbcabf3a-b0e7-0310-adc4-f8d773084564
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 999bd213..9fdcdcb1 100644 --- a/scripts/privmsg.pl +++ b/scripts/privmsg.pl @@ -1,12 +1,13 @@ # listen PRIVMSGs - send a notice to yourself when your nick is meantioned use Irssi; +use Irssi::Irc; sub event_privmsg { my ($data, $server, $nick, $address) = @_; my ($target, $text) = $data =~ /^(\S*)\s:(.*)/; - return if (!Irssi::is_channel($target)); + return if (!$server->ischannel($target)); $mynick = $server->values()->{'nick'}; return if ($text !~ /\b$mynick\b/); |