1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00
irssi/scripts/hello.pl
Timo Sirainen 2799d200cb Directory should really be named "scripts", not "examples".
Added script mlock.pl


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@149 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-03-15 20:49:44 +00:00

13 lines
249 B
Perl

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