# RandName 1.1
#
# set a random real name taken from a file
#
# derived from quitmsg.pl by Timo Sirainen
use strict;
use Irssi;
use vars qw($VERSION %IRSSI);
$VERSION = '1.1';
%IRSSI = (
authors => 'legion',
contact => 'a.lepore(at)email.it',
name => 'RandName',
description => 'Random "/set real_name" taken from a file.',
license => 'Public Domain',
changed => 'Sat Dec 6 12:28:04 CET 2003',
);
sub randname {
my $namefile = (glob Irssi::settings_get_str('random_realname_file'))[0];
open (FILE, "<", $namefile) || return;
my $lines = 0; while(