From 1966c07afa2c77e0da59a60b34b1a9e12eadcbde Mon Sep 17 00:00:00 2001 From: Pablo Martín Báez Echevarría Date: Sat, 20 Dec 2014 22:35:14 -0200 Subject: Add clones_scanner.pl --- _data/scripts.yaml | 10 ++ scripts/clones_scanner.pl | 297 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 307 insertions(+) create mode 100644 scripts/clones_scanner.pl diff --git a/_data/scripts.yaml b/_data/scripts.yaml index a823da2..f113260 100644 --- a/_data/scripts.yaml +++ b/_data/scripts.yaml @@ -886,6 +886,16 @@ url: "http://irssi.dgl.cx/" version: "2.01" +- authors: "Pablo Martín Báez Echevarría" + contact: "pab_24n@outlook.com" + description: "when a nick joins #channel, notifies you if there is (or there has been) someone in #channel with the same hostname" + filename: "clones_scanner.pl" + modified: "2014-12-20 22:30:25" + license: "Public domain" + name: "clones_scannner" + url: "http://reirssi.wordpress.com" + version: "1.5" + - authors: "Gabor Nyeki" contact: "bigmac@vim.hu" description: "kicking users for using colors or blinks" diff --git a/scripts/clones_scanner.pl b/scripts/clones_scanner.pl new file mode 100644 index 0000000..1f31fbb --- /dev/null +++ b/scripts/clones_scanner.pl @@ -0,0 +1,297 @@ +use strict; +use warnings; + +{ package Irssi::Nick } +# just in case, to avoid Irssi::Nick warnings ( see http://bugs.irssi.org/index.php?do=details&task_id=242 ) + +use Irssi; +use vars qw($VERSION %IRSSI); + +# Thanks to noi_esportista!#Girona@chathispano for his suggestions about how this script should work. + +$VERSION = '1.5'; +%IRSSI = ( + authors => 'Pablo Martín Báez Echevarría', + contact => 'pab_24n@outlook.com', + name => 'clones_scanner', + description => 'when a nick joins #channel, notifies you if there is (or there has been) someone in #channel with the same hostname', + license => 'Public Domain', + url => 'http://reirssi.wordpress.com', + changed => '22:30:25, Dec 20th, 2014 UYT', +); + +# +# USAGE +# ===== +# Copy the script to ~/.irssi/scripts/ +# +# In irssi: +# /run clones_scanner +# +# +# OPTIONS +# ======= +# Settings can be resetted to defaults with /set -default +# +# /set clones_scanner_maxtime