X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fregister.pl;h=555fe02149116536b88c515ed6e5291830493ae9;hb=5f2487385b59dbe88dc763fa9c26fe5a9b4a6b30;hp=7f5b673499a781f3f5d43770870806470054086f;hpb=579810d363939640538f88a9caa86e01fe9c7709;p=spider.git diff --git a/cmd/unset/register.pl b/cmd/unset/register.pl index 7f5b6734..555fe021 100644 --- a/cmd/unset/register.pl +++ b/cmd/unset/register.pl @@ -17,11 +17,11 @@ if ($self->priv < 9) { Log('DXCommand', $self->call . " attempted to unregister @args"); return (1, $self->msg('e5')); } -return (1, $self->msg('reginac')) unless $main::reqreq; +return (1, $self->msg('reginac')) unless $main::reqreg; foreach $call (@args) { $call = uc $call; - unless ($self->remotecmd) { + unless ($self->remotecmd || $self->inscript) { if ($ref = DXUser->get_current($call)) { $ref->registered(0); $ref->put();