summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin/delmoderator.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-03-04 13:48:28 +0000
committerfukachan <fukachan>2006-03-04 13:48:28 +0000
commit24acfd76bcca6a742dd3d12c07af8e2ae193f430 (patch)
tree7c31c02b071e5702427542214385344aa483f3db /fml/lib/FML/Command/Admin/delmoderator.pm
parent80a851d319914b556899769706825eb9a9f5a27b (diff)
downloadfml8-24acfd76bcca6a742dd3d12c07af8e2ae193f430.tar.gz
fml8-24acfd76bcca6a742dd3d12c07af8e2ae193f430.tar.bz2
fml8-24acfd76bcca6a742dd3d12c07af8e2ae193f430.zip
$command_args -> $command_context (OBJ), method style
Diffstat (limited to 'fml/lib/FML/Command/Admin/delmoderator.pm')
-rw-r--r--fml/lib/FML/Command/Admin/delmoderator.pm30
1 files changed, 15 insertions, 15 deletions
diff --git a/fml/lib/FML/Command/Admin/delmoderator.pm b/fml/lib/FML/Command/Admin/delmoderator.pm
index de9103d8..65042964 100644
--- a/fml/lib/FML/Command/Admin/delmoderator.pm
+++ b/fml/lib/FML/Command/Admin/delmoderator.pm
@@ -1,10 +1,10 @@
#-*- perl -*-
#
-# Copyright (C) 2002,2003,2004,2005 Ken'ichi Fukamachi
+# Copyright (C) 2002,2003,2004,2005,2006 Ken'ichi Fukamachi
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: delmoderator.pm,v 1.19 2005/08/17 10:36:36 fukachan Exp $
+# $FML: delmoderator.pm,v 1.20 2005/08/17 12:08:42 fukachan Exp $
#
package FML::Command::Admin::delmoderator;
@@ -27,7 +27,7 @@ remove the specified moderator.
=head1 METHODS
-=head2 process($curproc, $command_args)
+=head2 process($curproc, $command_context)
=cut
@@ -60,29 +60,29 @@ sub lock_channel { return 'command_serialize';}
# Descriptions: verify the syntax command string.
-# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args)
+# Arguments: OBJ($self) OBJ($curproc) OBJ($command_context)
# Side Effects: none
# Return Value: NUM(1 or 0)
sub verify_syntax
{
- my ($self, $curproc, $command_args) = @_;
+ my ($self, $curproc, $command_context) = @_;
use FML::Command::Syntax;
push(@ISA, qw(FML::Command::Syntax));
- $self->check_syntax_address_handler($curproc, $command_args);
+ $self->check_syntax_address_handler($curproc, $command_context);
}
# Descriptions: remove the specified moderator.
-# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args)
+# Arguments: OBJ($self) OBJ($curproc) OBJ($command_context)
# Side Effects: update $member_map $recipient_map
# Return Value: none
sub process
{
- my ($self, $curproc, $command_args) = @_;
+ my ($self, $curproc, $command_context) = @_;
my $config = $curproc->config();
- my $options = $command_args->{ options };
- my $address = $command_args->{ command_data } || $options->[ 0 ];
+ my $options = $command_context->get_options();
+ my $address = $command_context->{ command_data } || $options->[ 0 ];
# XXX We should always add/rewrite only $primary_*_map maps via
# XXX command mail, CUI and GUI.
@@ -113,7 +113,7 @@ sub process
eval q{
use FML::User::Control;
my $obj = new FML::User::Control;
- $obj->user_del($curproc, $command_args, $uc_args);
+ $obj->user_del($curproc, $command_context, $uc_args);
};
if ($r = $@) {
croak($r);
@@ -122,18 +122,18 @@ sub process
# Descriptions: show cgi menu to remove the specified moderator.
-# Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args)
+# Arguments: OBJ($self) OBJ($curproc) OBJ($command_context)
# Side Effects: update $member_map $recipient_map
# Return Value: none
sub cgi_menu
{
- my ($self, $curproc, $command_args) = @_;
+ my ($self, $curproc, $command_context) = @_;
my $r = '';
eval q{
use FML::CGI::User;
my $obj = new FML::CGI::User;
- $obj->cgi_menu($curproc, $command_args);
+ $obj->cgi_menu($curproc, $command_context);
};
if ($r = $@) {
croak($r);
@@ -151,7 +151,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2002,2003,2004,2005 Ken'ichi Fukamachi
+Copyright (C) 2002,2003,2004,2005,2006 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.