לא משנה עזרו לי.
תימחקו בבקשה תאשכול !
on *:input:*:{
if ($1 == !vt) && ($2) {
VTvoice $2
}
return
}
alias -l VTvoice {
var %x = 1, %tag = $1
while ($nick($active,%x)) {
if ($nick($active,%x) !isvoice $active) && (%tag isin $nick($active,%x)) {
set %voice.nicks $addtok(%voice.nicks,$nick($active,%x),32)
if ($numtok(%voice.nicks,32) == 5) {
.timer 1 $calc(%x / 5) mode $active +vvvvv %voice.nicks
unset %voice.nicks
}
}
inc %x
}
if (%voice.nicks) {
.timer 1 $calc(%x / 5) mode $active +vvvvv %voice.nicks
unset %voice.nicks
}
}
on *:input:*:{
if ($1 == !vt) && ($2) {
VTvoice $2
}
return
}
alias -l VTvoice {
var %x = 1, %tag = $1
while ($nick($active,%x)) {
if ($nick($active,%x) !isvoice $active) && (%tag isin $nick($active,%x)) {
set %voice.nicks $addtok(%voice.nicks,$nick($active,%x),32)
if ($numtok(%voice.nicks,32) == 5) {
.timer 1 $calc(%x / 5) mode $active +vvvvv %voice.nicks
unset %voice.nicks
}
}
inc %x
}
if (%voice.nicks) {
.timer 1 $calc(%x / 5) mode $active +vvvvv %voice.nicks
unset %voice.nicks
}
}
/vt [Tag]
/vt eSr^*
כל מי שמתחיל עם הטאג יקבל +v
alias vt {
if ($1) {
modebytag $active +v $1
}
}
alias ModeByTag {
; #channel mode tag
if (!$3 || $1 !ischan) {
echo -ag ModeByTag #channel Mode Tag [eg. /modebytag #channel +v support*]
return
}
elseif ($me !isop $1) {
echo -ag Error: You're not channel operator.
return
}
var %i = 1, %j = 0, %n = $fline($1,* $+ $3 $+ *, 0, 1)
var %nickStr
while (%i <= %n) {
%nickStr = $addtok(%nickStr, $nick($1, $fline($1,* $+ $3 $+ *, %i, 1)), 32)
if ($modespl // %i) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
%nickStr =
inc %j
}
inc %i
}
if (%nickStr) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
}
}
alias vt {
if ($1) {
modebytag $active +v $1
}
}
alias ModeByTag {
; #channel mode tag
if (!$3 || $1 !ischan) {
echo -ag ModeByTag #channel Mode Tag [eg. /modebytag #channel +v support*]
return
}
elseif ($me !isop $1) {
echo -ag Error: You're not channel operator.
return
}
var %i = 1, %j = 0, %n = $fline($1,* $+ $3 $+ *, 0, 1)
var %nickStr
while (%i <= %n) {
%nickStr = $addtok(%nickStr, $nick($1, $fline($1,* $+ $3 $+ *, %i, 1)), 32)
if ($modespl // %i) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
%nickStr =
inc %j
}
inc %i
}
if (%nickStr) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
}
}
alias vt {
if ($1) {
modebytag $active +v $1
}
}
alias ModeByTag {
; #channel mode tag
if (!$3 || $1 !ischan) {
echo -ag ModeByTag #channel Mode Tag [eg. /modebytag #channel +v support*]
return
}
elseif ($me !isop $1) {
echo -ag Error: You're not channel operator.
return
}
var %i = 1, %j = 0, %n = $fline($1, $3, 0, 1)
var %nickStr
while (%i <= %n) {
%nickStr = $addtok(%nickStr, $nick($1, $fline($1, $3, %i, 1)), 32)
if ($modespl // %i) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
%nickStr =
inc %j
}
inc %i
}
if (%nickStr) {
.timer 1 %j mode $1 $str($2, $modespl) %nickStr
}
}