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
/
ctcp
/
part.plm
< prev
next >
Wrap
Text File
|
1998-01-12
|
2KB
|
94 lines
# <!-- -*- perl -*-
# $Id
# copyright (c)1997 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package ctcp_part;
$CLIENTINFO = 'PART';
$_ = 'ctcp_part';
sub cpss_part {
local($serverno, $prefix, $cmd, $msg) = @_;
local($userno, $regex, $rchan, $nick);
$nick = &'prefix($prefix);
$userno = $'userno[$serverno];
foreach $channel (&'property($userno, 'channel')) {
foreach $name (split(/\,/, $channel)) {
$rchan = &'real($name);
if ("\L$rchan\E" eq "\L$msg\E") {
&'s_print($serverno, '', 'PART', $msg, $nick);
return ($prefix, $cmd, $msg);
}
}
}
foreach $not (&'property($userno, 'not')) {
$regex = &'regex($not);
return ($prefix, $cmd, $msg) if $prefix =~ /$regex/i;
}
foreach $user (&'property($userno, 'user')) {
$regex = &'regex($user);
if ($prefix =~ /$regex/i) {
&'s_print($serverno, '', 'PART', $msg, $nick);
return ($prefix, $cmd, $msg);
}
}
return ($prefix, $cmd, $msg);
}
__END__
--><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><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.channel* ($B%A%c%s%M%k(B)
<DD> CTCP PART$B$,Aw$i$l$F$-$?$H$-!"(B
$B$=$l$,$3$3$G;XDj$5$l$?%A%c%s%M%k$J$i!"(B
$B$=$N%A%c%s%M%k$rH4$1$^$9!#(B
$B$3$N;XDj$OB>$N(B2$B$D$N%W%m%Q%F%#$h$jM%@h$5$l$^$9!#(B
<DT> ctcp.part.not* $B%f!<%6%^%9%/(B
<DD> CTCP PART$B$rAw$C$??M$,$3$3$G;XDj$5$l$?$b$N$K%^%C%A$7$?$i!"(B
$B$=$N%A%c%s%M%k$+$i$OH4$1$^$;$s!#(B
$B$3$N;XDj$O!V(Bctcp.part.user$B!W$N;XDj$h$jM%@h$5$l$^$9!#(B
<DT> ctcp.part.user* $B%f!<%6%^%9%/(B
<DD> CTCP PART$B$rAw$C$??M$,$3$3$G;XDj$5$l$?$b$N$K%^%C%A$7$?$i!"(B
$B$=$N%A%c%s%M%k$+$iH4$1$^$9!#(B
</DL>
<HR><H3> $B@_DjNc(B </H3>
<PRE>
+ ctcp/part.plm
ctcp.part.channel: #$B$^$I$+(B
</PRE>
$B!V(B#$B$^$I$+!W$rH4$1$k$h$&$K(BCTCP PART$B$,Aw$i$l$F$-$?>l9g!"!V(B#$B$^$I$+!W$rH4$1$^$9!#(B
<PRE>
+ ctcp/part.plm
ctcp.part.user: pupu_j!*@*
</PRE>
CTCP PART$B$,Aw$i$l$F$-$?$H$-!"$=$l$rAw$C$??M$,!V(Bpupu_j!*@*$B!W$K%^%C%A$7$?$i!"(B
$B$=$N%A%c%s%M%k$rH4$1$^$9!#(B
</BODY></HTML>