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.500 by root, Sat Jan 16 00:08:33 2010 UTC vs.
Revision 1.501 by root, Sat Jan 16 23:27:21 2010 UTC

3251=cut 3251=cut
3252 3252
3253sub register_script_function { 3253sub register_script_function {
3254 my ($fun, $cb) = @_; 3254 my ($fun, $cb) = @_;
3255 3255
3256 no strict 'refs'; 3256 $fun = "safe::$fun" if $CFG{safe_eval};
3257 *{"safe::$fun"} = $safe_hole->wrap ($cb); 3257 *$fun = $safe_hole->wrap ($cb);
3258} 3258}
3259 3259
3260=back 3260=back
3261 3261
3262=cut 3262=cut

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines