ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.13 by root, Fri Mar 31 22:09:36 2006 UTC vs.
Revision 1.14 by root, Fri Mar 31 22:47:35 2006 UTC

67my @exts; 67my @exts;
68my @hook; 68my @hook;
69my %command; 69my %command;
70 70
71sub inject_event { 71sub inject_event {
72 my ($data) = @_; 72 my $extension = shift;
73 my $event_code = shift;
73 74
74 my $cb = $hook[$data->{event_code}]{$data->{extension}} 75 my $cb = $hook[$event_code]{$extension}
75 or return; 76 or return;
76 77
77 $cb->($data) 78 &$cb
78} 79}
79 80
80sub inject_global_event { 81sub inject_global_event {
81 my $event = shift; 82 my $event = shift;
82 83

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines