X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fscripts%2Fexamples%2Fcommand.pl;fp=apps%2Firssi%2Fscripts%2Fexamples%2Fcommand.pl;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=77a9d7fb3bc9599a0c7f4acfb7ed6cfda250677e;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/irssi/scripts/examples/command.pl b/apps/irssi/scripts/examples/command.pl deleted file mode 100644 index 77a9d7fb..00000000 --- a/apps/irssi/scripts/examples/command.pl +++ /dev/null @@ -1,23 +0,0 @@ -# Example how to create your own /commands: - -# /HELLO - sends a "Hello, world!" to given nick. - -use Irssi; -use strict; -use vars qw($VERSION %IRSSI); - -$VERSION = "1.00"; -%IRSSI = ( - authors => 'Timo Sirainen', - name => 'command', - description => 'Command example', - license => 'Public Domain' -); - -sub cmd_hello { - my ($data, $server, $channel) = @_; - - $server->command("/msg $data Hello, world!"); -} - -Irssi::command_bind('hello', 'cmd_hello');