/usr/share/plum/module/ctcp/part.plm is in plum 1:2.33.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | # $Id: part.plm,v 2.17 1999/01/16 07:21:57 hasegawa Exp $
# copyright (c)1997-1999 Yoshinori Hasegawa <hasegawa@madoka.org>
package ctcp_part;
$CLIENTINFO = 'PART';
$_ = 'ctcp_part';
sub cpss_part {
local($serverno, $prefix, $cmd, @params) = @_;
local($userno, $regex, $nick, $chan);
$nick = &'prefix($prefix);
$userno = $'userno[$serverno];
if ($params[1]) {
$chan = &'real((split(/\s+/, $params[1]))[0]);
if (&check_mask($userno, $prefix, $chan)) {
&'s_print($serverno, '', 'PART', $chan, $nick);
return ();
}
}
return ($prefix, $cmd, @params);
}
sub check_mask {
local($userno, $prefix, $chan) = @_;
local($user, $chlist, $list);
foreach $mask (&'property($userno, 'mask')) {
($user, $chlist) = split(/\s+/, $mask);
$list = '';
foreach $vchan (split(/\,/, $chlist || '')) {
$list = &'add($list, &'real($vchan));
}
if (&'channel($chan)) {
next unless (!$list || &'exist($list, $chan));
} else {
next unless (!$list || &'exist($list, '*'));
}
if ($user =~ /^\-/) {
$regex = &'regex(substr($user, 1));
return 0 if $prefix =~ /$regex/i;
}
if ($user =~ /^\+/) {
$regex = &'regex(substr($user, 1));
} else {
$regex = &'regex($user);
}
return 1 if $prefix =~ /$regex/i;
}
return 0;
}
__END__
--><HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">
<LINK REV="made" HREF="mailto:hasegawa@madoka.org">
<TITLE>ctcp/part.plm</TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3>$BL>A0(B</H3>
ctcp/part.plm - CTCP PART$B$KH?1~$7$F%A%c%s%M%k$rH4$1$k(B
<HR><H3>$B@bL@(B</H3>
CTCP PART$B$,Aw$i$l$F$-$?$H$-!"(B
$B$=$l$KH?1~$7$F;XDj$5$l$?%A%c%s%M%k$rH4$1$^$9!#(B
<HR><H3>$B%W%m%Q%F%#(B</H3>
<DL>
<DT> ctcp.part.mask* $B%f!<%6%^%9%/(B [($B%A%c%s%M%kL>(B)]
</DT>
<DD> CTCP PART$B$,Aw$i$l$F$-$?$H$-!"Aw$j<g$*$h$S%A%c%s%M%k$,(B
$B$3$3$G;XDj$5$l$?$b$N$K%^%C%A$7$?$i!"$=$N%A%c%s%M%k$rH4$1$^$9!#(B
</DD>
</DL>
<HR><H3>$B@_DjNc(B</H3>
<PRE>
+ ctcp/part.plm
ctcp.part.mask: *!*@* #$B$^$I$+(B
</PRE>
$B!V(B#$B$^$I$+!W$rH4$1$k$h$&$K(BCTCP PART$B$,Aw$i$l$F$-$?>l9g!"(B
$B!V(B#$B$^$I$+!W$+$iH4$1$^$9!#(B
<PRE>
+ ctcp/part.plm
ctcp.part.mask: *!*@*.jp
</PRE>
CTCP PART$B$,Aw$i$l$F$-$?$H$-!"$=$l$rAw$C$??M$,!V(B*!*@*.jp$B!W$K%^%C%A$7$?$i!"(B
$B$=$N%A%c%s%M%k$rH4$1$^$9!#(B
</BODY></HTML>
|