summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin/addadmin.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-04-28 04:10:35 +0000
committerfukachan <fukachan>2004-04-28 04:10:35 +0000
commit8cf3342dc0773e309f80a73057d77cfd1bbd1569 (patch)
tree91729d6396ceb89d3ae31dcf477f175f833e7c72 /fml/lib/FML/Command/Admin/addadmin.pm
parent483bef87b2fbaef948d041c103d3d502564265ce (diff)
downloadfml8-8cf3342dc0773e309f80a73057d77cfd1bbd1569.tar.gz
fml8-8cf3342dc0773e309f80a73057d77cfd1bbd1569.tar.bz2
fml8-8cf3342dc0773e309f80a73057d77cfd1bbd1569.zip
implement verify_syntax() using FML::Command::Syntax
Diffstat (limited to 'fml/lib/FML/Command/Admin/addadmin.pm')
-rw-r--r--fml/lib/FML/Command/Admin/addadmin.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/Admin/addadmin.pm b/fml/lib/FML/Command/Admin/addadmin.pm
index 411329b8..215bf78a 100644
--- a/fml/lib/FML/Command/Admin/addadmin.pm
+++ b/fml/lib/FML/Command/Admin/addadmin.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: addadmin.pm,v 1.17 2004/01/02 14:45:03 fukachan Exp $
+# $FML: addadmin.pm,v 1.18 2004/02/15 04:38:27 fukachan Exp $
#
package FML::Command::Admin::addadmin;
@@ -59,6 +59,20 @@ sub need_lock { 1;}
sub lock_channel { return 'command_serialize';}
+# Descriptions: verify the syntax command string.
+# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args)
+# Side Effects: none
+# Return Value: NUM(1 or 0)
+sub verify_syntax
+{
+ my ($self, $curproc, $command_args) = @_;
+
+ use FML::Command::Syntax;
+ push(@ISA, qw(FML::Command::Syntax));
+ $self->check_syntax_address_handler($curproc, $command_args);
+}
+
+
# Descriptions: addadmin a new user
# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args)
# Side Effects: update $member_map $recipient_map