mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
13 lines
249 B
Perl
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');
|