added swop file
[spider.git] / cmd / load / badmsg.pl
index 44689b543424ab840cbd7cfb595f3298b60d84db..18eb747f26a795650936909b3109cfc413552979 100644 (file)
@@ -1,8 +1,7 @@
 # reload the badmsg file
 my $self = shift;
 my @out;
-return (0, $self->msg('e5')) if $self->priv < 9;
-do "$main::data/badmsg.pl" if -e "$main::data/badmsg.pl";
-push @out, $@ if $@;
+return (1, $self->msg('e5')) if $self->priv < 9;
+push @out, (DXMsg::load_badmsg());
 @out = ($self->msg('ok')) unless @out;
 return (1, @out);