if (grep(/out/, @{$_->{DIRECTION}})) { $hasout = 1; }
}
- $self->pidl("if (LIBNETAPI_LOCAL_SERVER($fn->{ELEMENTS}[0]->{NAME})) {");
- $self->indent;
- $self->pidl("$fn_str_l(ctx, &r);");
- $self->deindent;
- $self->pidl("} else {");
- $self->indent;
- $self->pidl("$fn_str_r(ctx, &r);");
- $self->deindent;
- $self->pidl("}");
+ if ($fn->{ELEMENTS}[0]->{NAME} =~ /server/) {
+ $self->pidl("if (LIBNETAPI_LOCAL_SERVER($fn->{ELEMENTS}[0]->{NAME})) {");
+ $self->indent;
+ $self->pidl("$fn_str_l(ctx, &r);");
+ $self->deindent;
+ $self->pidl("} else {");
+ $self->indent;
+ $self->pidl("$fn_str_r(ctx, &r);");
+ $self->deindent;
+ $self->pidl("}");
+ } else {
+ $self->pidl("$fn_str_l(ctx, &r);");
+ }
$self->pidl("");
$self->pidl("r.out.result = W_ERROR_V(werr);");
$self->pidl("");