add set and unset/agwmonitoring
[spider.git] / cmd / unset / agwmonitor.pl
diff --git a/cmd/unset/agwmonitor.pl b/cmd/unset/agwmonitor.pl
new file mode 100644 (file)
index 0000000..c9bfb6e
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# unset AGW engine monitoring
+#
+# $Id$
+#
+
+my $self = shift;
+return (1, $self->msg('e5')) if $self->priv < 9;
+if ($AGWMsg::monitor == 1) {
+       AGWMsg::_sendf('m');
+       $AGWMsg::monitor = 0;
+       return (1, $self->msg('mond'));
+}
+return (1);