1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
irssi/scripts/hello.pl
Timo Sirainen fcb1374e40 fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@768 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-18 20:50:12 +00:00

14 lines
265 B
Perl

# "Hello, world!" script :) /hello <nick> sends "Hello, world!" to <nick>
use Irssi;
use Irssi::Irc;
sub cmd_hello {
my ($data, $server, $channel) = @_;
$server->command("/msg $data Hello, world!");
return 1;
}
Irssi::command_bind('hello', '', 'cmd_hello');