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
/
dcc
/
forward.plm
next >
Wrap
Text File
|
1998-01-11
|
2KB
|
73 lines
# <!-- -*- perl -*-
# $Id: forward.plm,v 2.2 1998/01/11 20:41:37 hasegawa Exp $
# copyright (c)1997 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package ctcp_dcc_forward;
$CLIENTINFO = 'DCC';
$_ = 'ctcp_dcc_forward';
sub cpss_dcc {
local($serverno, $prefix, $cmd, $msg) = @_;
local($userno, $list, $no, $chan);
$userno = $'userno[$serverno];
foreach $key (keys(%'nameslist)) {
($no, $chan) = split(/$;/, $key);
next unless $no == $userno;
$list = &'add($list, &'array($'nameslist{$key}));
}
foreach $item (&'property($userno, 'nick')) {
foreach $nick (split(/\,/, $item)) {
if (&'exist($list, $nick, "+$nick", "\@$nick")) {
&'s_print($serverno, '', 'PRIVMSG', $nick, "\cA" . join(' ', $cmd, $msg) . "\cA");
return ();
}
}
}
return ($prefix, $cmd, $msg);
}
__END__
--><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE> ctcp/dcc/forward.plm </TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3> $BL>A0(B </H3>
ctcp/dcc/forward.plm - CTCP DCC$B$r;XDj$7$?%f!<%6$KE>Aw$9$k(B
<HR><H3> $B@bL@(B </H3>
CTCP DCC$B$,Aw$i$l$F$-$?$H$-!"$=$l$r;XDj$7$?%f!<%6$KE>Aw$7$^$9!#(B
$B$?$@$7E>Aw$9$k$H$-$KAw$j<g$,JQ$o$k$?$a!"E>Aw$5$l$?(BCTCP DCC$B$r(B
$B%-%c%s%;%k$9$k$3$H$O$G$-$^$;$s!#(B
<HR><H3> $B%W%m%Q%F%#(B </H3>
<DL>
<DT> ctcp.dcc.forward.nick* ($B%K%C%/%M!<%`(B)
<DD> CTCP DCC$B$rE>Aw$9$k%K%C%/%M!<%`!#A0$+$i=gHV$K8+$F$$$-!"(B
$BF1$8%A%c%s%M%k$K;XDj$7$?%K%C%/%M!<%`$N%f!<%6$,$$$l$P!"(B
$B$=$N%f!<%6$KE>Aw$7$^$9!#;XDj$7$?%K%C%/%M!<%`$N%f!<%6$,(B
$B$$$J$1$l$PE>Aw$O9T$$$^$;$s!#(B
</DL>
<HR><H3> $B@_DjNc(B </H3>
<PRE>
+ ctcp/dcc/forward.plm
ctcp.dcc.forward.nick: pupu_j,pupu_d
ctcp.dcc.forward.nick: pupu_ppp
</PRE>
CTCP DCC$B$,Aw$i$l$F$-$?$H$-$K!"(Bpupu_j$B!"(Bpupu_d$B!"(Bpupu_ppp$B$N(B
$B$I$l$+$N%K%C%/%M!<%`$N%f!<%6$,$$$l$P!"$=$N%f!<%6$K(BCTCP DCC$B$rE>Aw$7$^$9!#(B
</BODY></HTML>