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. # -dg!#irssi@freenode (David Leadbeater) for the several code style issues that he pointed out and that helped me to improve my Perl. $VERSION = '1.6'; %IRSSI = ( authors => 'Pablo Martín Báez Echevarría', contact => '[email protected]', 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 reset to defaults with /set -default # # /set clones_scanner_maxtime