1 # Example how to create your own /commands:
3 # /HELLO <nick> - sends a "Hello, world!" to given nick.
7 use vars qw($VERSION %IRSSI);
11 authors => 'Timo Sirainen',
13 description => 'Command example',
14 license => 'Public Domain'
18 my ($data, $server, $channel) = @_;
20 $server->command("/msg $data Hello, world!");
23 Irssi::command_bind('hello', 'cmd_hello');