diff options
| author | fukachan <fukachan> | 2003-02-01 13:53:13 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-02-01 13:53:13 +0000 |
| commit | a80c49a179c1dcde62698386ed9e58aede5c538b (patch) | |
| tree | 34deb1f2fed47c928e1bacf5b8160a3a5dc0442e /fml/lib/FML/Command/UserControl.pm | |
| parent | 84cb4e0676949a433de4479aa4182e70d3b0480e (diff) | |
| download | fml8-a80c49a179c1dcde62698386ed9e58aede5c538b.tar.gz fml8-a80c49a179c1dcde62698386ed9e58aede5c538b.tar.bz2 fml8-a80c49a179c1dcde62698386ed9e58aede5c538b.zip | |
try to remove address matched by $cred->has_address_in_map(), not
address specified by the function argument.
Diffstat (limited to 'fml/lib/FML/Command/UserControl.pm')
| -rw-r--r-- | fml/lib/FML/Command/UserControl.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fml/lib/FML/Command/UserControl.pm b/fml/lib/FML/Command/UserControl.pm index d9b15199..98c7cd54 100644 --- a/fml/lib/FML/Command/UserControl.pm +++ b/fml/lib/FML/Command/UserControl.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: UserControl.pm,v 1.22 2003/01/09 10:41:14 fukachan Exp $ +# $FML: UserControl.pm,v 1.23 2003/02/01 05:27:51 fukachan Exp $ # package FML::Command::UserControl; @@ -143,12 +143,16 @@ sub userdel $cred->set_compare_level( 100 ); if ($cred->has_address_in_map($map, $config, $address)) { + # $address may differ matched address in case. + # we need to use $address_in_map which is the matched string. + my $address_in_map = $cred->matched_address(); + $msg_args->{ _arg_map } = $curproc->which_map_nl($map); $trycount++; my $obj = new IO::Adapter $map, $config; - $obj->delete( $address ); + $obj->delete( $address_in_map ); unless ($obj->error()) { Log("remove $address from map=$_map"); $curproc->reply_message_nl('command.del_ok', |
