mirror of
https://github.com/irssi/irssi.git
synced 2024-08-18 03:54:16 -04:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1639 dbcabf3a-b0e7-0310-adc4-f8d773084564
13 lines
246 B
Perl
13 lines
246 B
Perl
# "Hello, world!" script :) /hello <nick> sends "Hello, world!" to <nick>
|
|
|
|
use Irssi;
|
|
use strict;
|
|
|
|
sub cmd_hello {
|
|
my ($data, $server, $channel) = @_;
|
|
|
|
$server->command("/msg $data Hello, world!");
|
|
}
|
|
|
|
Irssi::command_bind('hello', 'cmd_hello');
|