Debian Codegraph @

modules/scripting/perl/examples/catserv.pl

raw
1 # ircd_catserv perl edition
2
3 use Atheme;
4 use Atheme::Fault qw/:all/;
5
6 %Info = (
7 name => 'catserv.pl',
8 );
9
10 Atheme::Log->info ("CatServ is " . $Services{catserv});
11
12 # xxx: this has to come second, as we have to lookup the object once in order
13 # to dereference, maybe spb has a solution. --nenolod
14 $Services{catserv}->bind_command(
15 name => "MEOW",
16 desc => "Makes the cute little kitty-cat meow!",
17 help_path => "contrib/catserv/meow",
18 handler => \&cmd_hello
19 );
20
21 sub cmd_hello {
22 my ($source, @parv) = @_;
23
24 $source->success("Meow!");
25 }