/ Published in: Perl
Expand |
Embed | Plain Text
use Irssi; $VERSION = "0.1"; %IRSSI = ( authors => 'PrincessLeia2', contact => 'lyz\@princessleia.com ', name => 'gimmie', description => 'a script, using !host will will get you a host.', license => 'GNU GPL v2 or later', url => 'http://www.princessleia.com/' ); close hosts; sub event_privmsg { my ($server, $data, $nick, $mask, $target) =@_; my ($target, $text) = $data =~ /^(\S*)\s:(.*)/; if ( $text !~ /^!/i ); if ( $text =~ /^!host *?$/i ) { $server->command ( "msg $target $urfact" ); } } Irssi::signal_add('event privmsg', 'event_privmsg');
You need to login to post a comment.
