home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.madoka.org
/
2014.12.ftp.madoka.org.tar
/
ftp.madoka.org
/
pub
/
plum
/
2.x
/
plum2_28_2.lzh
/
module
/
auto
/
answer.plm
< prev
next >
Wrap
Text File
|
1998-10-15
|
3KB
|
90 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- $_ if 0; # -*- perl -*-
# $Id: answer.plm,v 2.10 1998/07/18 12:13:56 hasegawa Exp $
# copyright (c)1997-1998 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package auto_answer;
$_ = 'auto_answer';
sub ss_privmsg {
local($serverno, $prefix, $cmd, @params) = @_;
local($userno, $nick, $str, $answer);
$userno = $'userno[$serverno];
$nick = &'prefix($prefix);
foreach $reply (&'property($userno, 'reply')) {
($str, $answer) = split(/\s+/, $reply, 2);
next unless $str eq $params[1];
if ($params[0] =~ /^[\#\&\+]/) {
&'s_print($serverno, '', 'PRIVMSG', $params[0], $answer);
} else {
&'s_print($serverno, '', 'PRIVMSG', $nick, $answer);
}
foreach $cno (&'array($'clientlist)) {
next unless $'avail[$cno];
next unless $'server[$cno] == $serverno;
if ($params[0] =~ /^[\#\&\+]/) {
&'c_print($cno, &'user($cno), 'PRIVMSG', $params[0], $answer);
} else {
&'c_print($cno, &'user($cno), 'PRIVMSG', $nick, $answer);
}
}
}
return ($prefix, $cmd, @params);
}
__END__
--><HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">
<LINK REV="made" HREF="mailto:hasegawa@agusa.nuie.nagoya-u.ac.jp">
<TITLE>auto/answer.plm</TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3>$BL>A0(B</H3>
auto/answer.plm - $BFCDj$NH/8@$KH?1~$7$FBP1~$9$kH/8@$r$9$k(B
<HR><H3>$B@bL@(B</H3>
$BFCDj$N%a%C%;!<%8$,H/8@$5$l$k$H!"$=$l$KBP1~$9$k%a%C%;!<%8$rH/8@$7$^$9!#(B
$B$9$Y$F$N%a%C%;!<%8$KH?1~$9$k$?$a!"F1$8H/8@$r2?EY$b7+$jJV$92DG=@-$,$"$j$^$9!#(B
<HR><H3>$B%W%m%Q%F%#(B</H3>
<DL>
<DT> auto.answer.reply* $BJ8;zNs(B $BJ8;zNs(B
</DT>
<DD> $BH/8@$H$=$l$KBP$9$kJV;v$r;XDj$7$^$9!#(B
$BH?1~$9$kH/8@$K$O6uGr$r4^$a$k$3$H$O$G$-$^$;$s!#(B
</DD>
</DL>
<HR><H3>$B@_DjNc(B</H3>
<PRE>
+ auto/answer.plm
auto.answer.reply: $B$3$s$K$A$O(B $B$3$s$K$A$O!A!y(B
auto.answer.reply: $B$3$s$P$s$O(B $B$3$s$P$s$O!A!y(B
</PRE>
$B!V$3$s$K$A$O!W!"!V$3$s$P$s$O!W$H$$$&H/8@$,$"$C$?$H$-$K!"(B
$B$=$l$>$l!V$3$s$K$A$O!A!y!W!"!V$3$s$P$s$O!A!y!W$HH/8@$7$^$9!#(B
<PRE>
+ auto/answer.plm
auto.answer.reply: $B$X$k$W(B $BEA8@5!G=$H>.Jq5!G=$N%X%k%W$G$9(B
auto.answer.reply: $B$X$k$W(B $B$G$s$4$s(B nick message : nick$B08$K%a%C%;!<%8$rFO$1$^$9(B
auto.answer.reply: $B$X$k$W(B $B$3$E$D$_(B nick message : nick$B08$K%U%!%$%k$rFO$1$^$9(B
auto.answer.reply: $B$3$E$D$_$X$k$W(B DCC$B$r@h$KAw$C$F$+$i08@h$r65$($F2<$5$$$M(B
</PRE>
$B!V$X$k$W!W$HH/8@$9$k$H!"(B3$B9T$K$o$?$k%X%k%W%a%C%;!<%8$rH/8@$7$^$9!#(B
$B$^$?!"!V$3$E$D$_$X$k$W!W$HH/8@$9$k$H!"!V(BDCC$B$r@h$KAw$C$F$+$i(B
$B08@h$r65$($F2<$5$$$M!W$HH/8@$7$^$9!#(B
</BODY></HTML>