File: update.plm

package info (click to toggle)
plum 1%3A2.33.1-11
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,056 kB
  • sloc: perl: 4,453; makefile: 2
file content (54 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $Id: update.plm,v 2.8 1998/12/24 02:57:59 hasegawa Exp $
# copyright (c)1997-1998 Yoshinori Hasegawa <hasegawa@madoka.org>

package sys_conf_update;

$_ = 'sys_conf_update';

sub main_loop {
  local($userno) = @_;
  local($file, $mtime);
  $file = $'filename[$userno];
  $mtime = (stat($file))[9];
  return unless defined($mtime);
  $modify[$userno] = $mtime unless $modify[$userno];
  return if $modify[$userno] == $mtime;
  $modify[$userno] = $mtime;
  &'load($'username[$userno], $file);
  foreach $cno (&'array($'clientlist)) {
    next unless $'avail[$cno];
    next unless $'userno[$cno] == $userno;
    &'c_print($cno, '', 'NOTICE', $'nick[$cno], "*** update configuration $file");
  }
}

__END__
--><HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">
<LINK REV="made" HREF="mailto:hasegawa@madoka.org">
<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>


<HR><H3>$B@_DjNc(B</H3>

<PRE>
+ sys/conf/update.plm
</PRE>

</BODY></HTML>