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
/
channel
/
join
/
invite.plm
< prev
next >
Wrap
Text File
|
1997-11-16
|
3KB
|
103 lines
# <!-- -*- perl -*-
# $Id: invite.plm,v 2.1 1997/11/17 00:02:48 hasegawa Exp $
# copyright (c)1997 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package channel_join_invite;
$_ = 'channel_join_invite';
sub ss_invite {
local($serverno, $prefix, $cmd, $nick, $chan) = @_;
local($userno, $regex);
$userno = $'userno[$serverno];
foreach $channel (&'property($userno, 'channel')) {
foreach $name (split(/\,/, $channel)) {
if ("\L$name\E" eq "\L$chan\E") {
&'s_print($serverno, '', 'JOIN', $chan);
return ($prefix, $cmd, $nick, $chan);
}
}
}
foreach $not (&'property($userno, 'not')) {
$regex = &'regex($not);
return ($prefix, $cmd, $nick, $chan) if $prefix =~ /$regex/i;
}
foreach $user (&'property($userno, 'user')) {
$regex = &'regex($user);
if ($prefix =~ /$regex/i) {
&'s_print($serverno, '', 'JOIN', $chan);
return ($prefix, $cmd, $nick, $chan);
}
}
return ($prefix, $cmd, $nick, $chan);
}
__END__
--><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE> channel/join/invite.plm </TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3> $BL>A0(B </H3>
channel/join/invite.plm - $B>7BT$5$l$?%A%c%s%M%k$KF~$k(B
<HR><H3> $B@bL@(B </H3>
$B%A%c%s%M%k$K>7BT$5$l$?$H$-$K!"$=$N%A%c%s%M%k$KF~$j$^$9!#(B
<HR><H3> $B%W%m%Q%F%#(B </H3>
<DL>
<DT> channel.join.invite.channel* ($B%A%c%s%M%k(B)
<DD> $B>7BT$5$l$?%A%c%s%M%k$,$3$3$G;XDj$5$l$F$$$l$P!"(B
$B$=$N%A%c%s%M%k$KF~$j$^$9!#(B
$B%A%c%s%M%kL>$O(B,$B$G6h@Z$C$FJ#?t;XDj$9$k$3$H$,$G$-$^$9!#(B
$B$3$N;XDj$OB>$N(B2$B$D$N%W%m%Q%F%#$h$jM%@h$5$l$^$9!#(B
<DT> channel.join.invite.not* $B%f!<%6%^%9%/(B
<DD> $B>7BT$7$??M$,$3$3$G;XDj$5$l$?$b$N$K%^%C%A$7$?$i!"(B
$B>7BT$5$l$?%A%c%s%M%k$K$OF~$j$^$;$s!#(B
$B$3$N;XDj$O!V(Bchannel.join.invite.user$B!W$N;XDj$h$jM%@h$5$l$^$9!#(B
<DT> channel.join.invite.user* $B%f!<%6%^%9%/(B
<DD> $B>7BT$7$??M$,$3$3$G;XDj$5$l$?$b$N$K%^%C%A$7$?$i!"(B
$B>7BT$5$l$?%A%c%s%M%k$KF~$j$^$9!#(B
</DL>
<HR><H3> $B@_DjNc(B </H3>
<PRE>
+ channel/join/invite.plm
channel.join.invite.channel: #$B$^$I$+(B:*.jp
channel.join.invite.channel: #$B$W$i$`(B
</PRE>
$B>7BT$5$l$?%A%c%s%M%k$,!V(B#$B$^$I$+(B:*.jp$B!W$+!V(B#$B$W$i$`!W$@$C$?>l9g$K!"(B
$B$=$N%A%c%s%M%k$KF~$j$^$9!#(B
<PRE>
+ channel/join/invite.plm
channel.join.invite.channel: %$B$^$I$+(B,#$B$W$i$`(B
channel.join.invite.user: pupu_j!*@*.jp
channel.join.invite.user: pupu_d!*@*.jp
</PRE>
$B>7BT$5$l$?%A%c%s%M%k$,!V(B%$B$^$I$+!W$+!V(B#$B$W$i$`!W$@$C$?>l9g$O!"(B
$B$=$N%A%c%s%M%k$KF~$j$^$9!#(B
$B$^$?!">7BT$7$??M$,!V(Bpupu_j!*@*.jp$B!W$+!V(Bpupu_d*!*@*.jp$B!W$K(B
$B%^%C%A$7$?>l9g$O>7BT$5$l$?%A%c%s%M%k$K$G$bF~$j$^$9!#(B
<PRE>
+ channel/join/invite.plm
channel.join.invite.not: *!*@*
channel.join.invite.user: *!*@*
</PRE>
$BC/$+$i$I$3$N%A%c%s%M%k$K>7BT$5$l$?$H$7$F$b!"(B
$B$=$N%A%c%s%M%k$K$OF~$j$^$;$s!#(B
</BODY></HTML>