home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.madoka.org
/
2014.12.ftp.madoka.org.tar
/
ftp.madoka.org
/
pub
/
plum
/
2.x
/
plum2_15_2.lzh
/
module
/
sys
/
conf
/
update.plm
< prev
Wrap
Text File
|
1997-11-25
|
1KB
|
58 lines
# <!-- -*- perl -*-
# $Id: update.plm,v 2.4 1997/11/26 00:52:31 hasegawa Exp $
# copyright (c)1997 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package sys_conf_update;
$_ = 'sys_conf_update';
sub main_loop {
local($userno) = @_;
local($file, $user, $mtime);
$user = $'username[$userno];
$file = $'filename{$user};
$mtime = (stat($file))[9];
return unless defined($mtime);
$modify[$userno] = $mtime unless $modify[$userno];
return if $modify[$userno] == $mtime;
$modify[$userno] = $mtime;
&'load($user, $file);
foreach $cno (&'array($'clientlist)) {
next unless $'avail[$cno];
next unless $'userno[$cno] == $userno;
&'c_print($cno, '', 'NOTICE', $'nick[$cno], "*** update configuration $file");
}
}
__END__
--><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE> sys/conf/update.plm </TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3> $BL>A0(B </H3>
sys/conf/update.plm - plum.conf$B$,JQ99$5$l$k$H<+F0E*$KFI$_9~$_D>$9(B
<HR><H3> $B@bL@(B </H3>
$B0lDj;~4V$4$H$K(Bplum.conf$B$,JQ99$5$l$F$$$J$$$+$r%A%'%C%/$7!"(B
$BJQ99$5$l$F$$$l$P$=$l$rFI$_9~$s$G%b%8%e!<%k$H%W%m%Q%F%#$N:F@_Dj$r9T$$$^$9!#(B
<HR><H3> $B%W%m%Q%F%#(B </H3>
<DL>
</DL>
<HR><H3> $B@_DjNc(B </H3>
<PRE>
+ sys/conf/update.plm
</PRE>
</BODY></HTML>