Fluistercontrole
Auteur: Kevin - 13 mei 2006 - 09:52 - Gekeurd door: Maarten - Hits: 4665 - Aantal punten: 4.50 (2 stemmen)
Het stopt privé oproepen en wacht een goedkeuring af.
Het is een onderdeel van DocScript, mijn eigen script voor mirc
|
Code: |
on *:load:{
echo -a 4Fluistercontrole v2.0 NL | echo -a 4Klik rechts in een venster voor Fluistercontrole menu.
_vw querycon switch on
_vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht).
_vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht).
_vw querycon reject Je prive-oproep is genegeerd (dit is een automatisch bericht).
_vw querycon soundswitch off
_vw querycon timer 120
_vw querycon version query...2.0
}
menu menubar,query,status,channel {
Fluistercontrole ( $+ $_vr(querycon,switch) $+ )
.Switch ( $+ $_vr(querycon,switch) $+ )
..Aan: _vw querycon switch on | if ($dialog(querycon) != $null) { did -c querycon 30 }
..Uit: _vw querycon switch off | if ($dialog(querycon) != $null) { did -u querycon 30 }
.Instellingen:dialog -m querycon.edit querycon.edit
}
alias querycon.edit { if ($dialog(querycon.edit) == $null) { dialog -m querycon.edit querycon.edit } }
dialog querycon.edit {
title "Fluistercontrole - [DocScript by docterdre]"
option pixels
size 200 300 290 265
edit "", 3, 10 20 270 20,autohs, left
edit "", 4, 10 55 270 20,autohs, left
edit "", 9, 10 90 270 20,autohs, left
button "Annuleren", 11, 80 235 60 20,cancel
button "OK", 12, 150 235 50 20, ok default
text "Standaard Bericht", 13, 5 5 249 15
text "Weiger Bericht", 14, 5 40 249 15
text "Negeer Bericht", 19, 5 75 249 15
check "Aan", 15, 10 126 80 20
button "Kies geluid", 16, 75 126 75 20
box "Geluid bij aanvraag fluister", 17, 5 110 160 45
button "-", 206, 190 125 15 15
button "+", 207, 250 125 15 15
edit "", 208, 210 125 35 19
box "Auto-sluit venster", 209, 170 110 110 45
text "seconden", 210, 207 140 249 15
radio "Normale Mask *!*@*", 211, 10 175 125 25
radio "Host Mask Negeren", 212, 10 195 125 18
box "Fluister flood negeer type", 213, 5 160 140 60
edit "", 214, 155 195 20 20
text "fluisters in", 215, 178 198 80 15
box "Fluister flood bescherming", 216, 150 160 140 60
edit "", 217, 230 195 30 20
text "secs", 218, 262 198 50 15
check "Aan", 219, 158 175 80 20
}
on *:dialog:querycon.edit:init:*:{
if ($_vr(querycon,ignore.host) == $null) { _vw querycon ignore.host on | _vw querycon ignore.uni off }
if ($_vr(querycon,ignore.uni) == on) && ($_vr(querycon,ignore.host) == off) { did -c querycon.edit 211 1 }
else did -c querycon.edit 212 1
did -o querycon.edit 3 1 $_vr(querycon,standby)
did -o querycon.edit 4 1 $_vr(querycon,decline)
did -o querycon.edit 9 1 $_vr(querycon,reject)
if ($_vr(querycon,soundswitch) == on) did -c querycon.edit 15
if ($_vr(querycon,timer) == $null) _vw querycon timer 120
did -o querycon.edit 208 1 $_vr(querycon,timer)
if ($_vr(querycon,max.query) == $null) { _vw querycon max.query 5 | did -o querycon.edit 214 1 $_vr(querycon,max.query) }
else did -o querycon.edit 214 1 $_vr(querycon,max.query)
if ($_vr(querycon,max.query.sec) == $null) { _vw querycon max.query.sec 20 | did -o querycon.edit 217 1 $_vr(querycon,max.query.sec) }
else did -o querycon.edit 217 1 $_vr(querycon,max.query.sec)
if ($_vr(querycon,netflood) == on) did -c querycon.edit 219
else did -b querycon.edit 211,217,212,214
}
on *:dialog:querycon.edit:sclick:*:{
if ($did == 12) {
if ($did(querycon.edit,3).text != $null) {
_vw querycon standby $did(querycon.edit,3).text
}
else _vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht).
if ($did(querycon.edit,4).text != $null) {
_vw querycon decline $did(querycon.edit,4).text
}
else _vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht).
if ($did(querycon.edit,9).text != $null) {
_vw querycon reject $did(querycon.edit,9).text
}
else _vw querycon reject Je prive-oproep is genegeerd (dit is een automatisch bericht).
dialog -x querycon.edit
halt
}
if ($did == 15) {
if ($_vr(querycon,soundswitch) == off) { _vw querycon soundswitch on | did -c querycon.edit 15 }
else { _vw querycon soundswitch off | did -u querycon.edit 15 }
}
if ($did == 16) { .timer -m 1 1 setquerysound }
if ($did == 206) { if (%timer > 0) { dec %timer 1 | did -o querycon.edit 208 1 %timer | _vw querycon timer %timer | halt } }
if ($did == 207) { inc %timer 1 | did -o querycon.edit 208 1 %timer | _vw querycon timer %timer | halt }
if ($did == 211) {
if ($_vr(querycon,ignore.uni) == off) { _vw querycon ignore.uni on | _vw querycon ignore.host off | did -c querycon.edit 211 | did -u querycon.edit 212 }
else { _vw querycon ignore.uni off | _vw querycon ignore.host on | did -u querycon.edit 211 | did -c querycon.edit 212 }
}
if ($did == 212) {
if ($_vr(querycon,ignore.host) == off) { _vw querycon ignore.host on | _vw querycon ignore.uni off | did -c querycon.edit 212 | did -u querycon.edit 211 }
else { _vw querycon ignore.host off | _vw querycon ignore.uni on | did -u querycon.edit 212 | did -c querycon.edit 211 }
}
if ($did == 219) {
if ($_vr(querycon,netflood) == off) { _vw querycon netflood on | did -c querycon.edit 219 | did -e querycon.edit 211,217,212,214 }
else { _vw querycon netflood off | did -u querycon.edit 219 | did -b querycon.edit 211,217,212,214 }
}
}
on *:dialog:querycon.edit:edit:*:{
if ($did == 208) {
if ($did(querycon.edit,208).text != $null) {
_vw querycon timer $did(querycon.edit,208).text
}
}
if ($did == 214) {
if ($did(querycon.edit,214).text != $null) {
_vw querycon max.query $did(querycon.edit,214).text
}
}
if ($did == 217) {
if ($did(querycon.edit,217).text != $null) {
_vw querycon max.query.sec $did(querycon.edit,217).text
}
}
}
alias querycon { if ($dialog(querycon) == $null) { dialog -m querycon querycon } }
dialog querycon {
title "Fluistercontrole v2.0 NL"
option pixels
size 200 300 290 140
edit "", 3, 10 20 270 20,autohs read
edit "", 4, 10 40 270 20,autohs read
edit "", 5, 10 60 270 20,autohs read
edit "", 6, 10 80 270 20,autohs read
check "Aan voor prive-oproepen", 30, 10 4 160 15
button "Negeer", 10, 60 110 50 20
button "Weiger", 11, 120 110 50 20, cancel
button "Accepteren", 12, 180 110 70 20, ok default
button "Menu", 13, 10 110 40 20
}
alias _sq_t {
return $_vr(querycon,timer)
}
alias close.qw {
.notice %nw 3 $+ $_vr(querycon,decline)
$ae 3Geweigerd
if ($dialog(querycon) != $null) dialog -x querycon
.timer.queue -m 1 1 verwerkqueue
}
on *:dialog:querycon:init:*:{
.timerclose.qw 1 $_sq_t close.qw
if ($_vr(querycon,decline) == $null) { _vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht). }
did -o querycon 5 1 $_vr(querycon,lastmsg)
if ($_vr(querycon,switch) == on) { did -c querycon 30 }
if ($dialog(querycon) == $null) _vw querycon timer 120
}
on *:dialog:querycon:sclick:*:{
if ($did == 12) {
.timerclose.qw off
.ignore -r $did(3,$did(3))
query $did(3,$did(3))
.timer -m 1 1 echo $window($did(3)) $+(<,$did(3,$did(3)),>) $_vr(querycon,lastmsg)
_vrem querycon lastmsg
_vw querycon.nicks %nw on
$ae 3Geaccepteerd
dialog -x querycon
.timer.queue -m 1 1 verwerkqueue
halt
}
if ($did == 30) {
if ($_vr(querycon,switch) == off) { _vw querycon switch on | did -c querycon 30 }
else { _vw querycon switch off | did -u querycon 30 }
}
if ($did == 10) {
.timerclose.qw off
.ignore -p $did(3,$did(3)) 3
notice $did(3,$did(3)) 3 $+ $_vr(querycon,reject)
$ae 3Genegeerd
dialog -x querycon
.timer.queue -m 1 1 verwerkqueue
halt
}
if ($did == 11) {
.timerclose.qw off
.ignore -pu120 $did(3,$did(3)) 3
notice $did(3,$did(3)) 3 $+ $_vr(querycon,decline)
$ae 3Geweigerd
dialog -x querycon
.timer.queue -m 1 1 verwerkqueue
halt
}
if ($did == 13) { querycon.edit | halt }
}
on *:INPUT:?: {
_vw querycon.nicks $query($active) on
}
on 1:CLOSE:?: {
_vrem querycon.nicks $nick
}
on 1:NICK: {
if ($_vr(querycon.queuemsg, $nick)) {
_vw querycon queue $reptok($_vr(querycon, queue), $nick, $newnick, 1, 32)
_vw querycon.queuemsg $newnick $_vr(querycon.queuemsg, $nick)
_vrem querycon.queuemsg $nick
}
elseif ($_vr(querycon.nicks, $nick)) {
_vw querycon.nicks $newnick $_vr(querycon.nicks, $nick)
_vrem querycon.nicks $nick
}
}
on 1:QUIT: {
if ($_vr(querycon.queuemsg, $nick)) {
var %findq = $findtok($_vr(querycon, queue), $nick, 1, 32)
var %restq = $deltok($_vr(querycon, queue), %findq, 32)
var %restqsite = $deltok($_vr(querycon, queuesite), %findq, 32)
if (%restq) {
_vw querycon queue %restq
_vw querycon queuesite %restqsite
}
else {
_vrem querycon queue
_vrem querycon queuesite
}
_vrem querycon.queuemsg $nick
}
}
on ^1:TEXT:*:?: {
; vul hieronder op de puntjes eventueel nicknames in die altijd mogen fluisteren
; if ($nick == .....) || ($nick == .....) { goto end }
if ($_vr(querycon,switch) == $null) _vw querycon switch on
if ($_vr(querycon.nicks,$nick) != on) {
if ($_vr(querycon,switch) == on) {
if ($dialog(querycon) == $null) {
if ($_vr(querycon,soundswitch) == on) { if ($_vr(querycon,sound) != $null) { splay $_vr(querycon,sound) } }
verwerkoproep $nick $site $1-
}
else {
_vw querycon queue $addtok($_vr(querycon,queue), $nick, 32)
_vw querycon queuesite $addtok($_vr(querycon,queuesite), $site, 32)
_vw querycon.queuemsg $nick $1-
did -o querycon 6 1 $_vr(querycon,queue)
}
halt
}
}
elseif ($_vr(querycon,netflood) == on) {
if ($isflood(priveflood. $+ $nick,$_vr(querycon,max.query),$_vr(querycon,max.query.sec))) {
if ($_vr(querycon,ignore.uni) == on) ignore -pu $+ $_vr(querycon,max.query.sec) *!*@*
else ignore -pu $+ $_vr(querycon,max.query.sec) $wildsite
_vrem querycon.nicks $nick
.msg $nick 0,4[ ALARM ] Fluister Flooding. Je wordt nu genegeerd gedurende $_vr(querycon,max.query.sec) sec.
echo -a 0,4[ ALARM ] $nick is Fluister Flooding. User ( $+ $wildsite $+ ) nu genegeerd gedurende $_vr(querycon,max.query.sec) sec.
}
}
:end
}
alias verwerkoproep {
; $1=$nick, $2=$site, $3=$1- (tekst)
if ($_vr(querycon,standby) == $null) { _vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht).
}
_vw querycon lastmsg $3-
$ae 3Prive-oproep van $1
$ae 3Wachten op bevestiging...
.ignore -pu $+ $_sq_t $1
.notice $1 3 $+ $_vr(querycon,standby)
set %nw $1
querycon
if ($dialog(querycon) != $null) {
did -o querycon 3 1 $1
did -o querycon 4 1 *!* $+ @ $+ $2
}
}
alias ae return echo -at
alias se return echo -st
;[read write data/setting.ini]
alias _vr {
if ($exists(data\setting.ini) == $false) { mkdir data | write -c data\setting.ini }
return $readini data\setting.ini $1 $2
}
alias _vw {
if ($exists(data\setting.ini) == $false) { mkdir data | write -c data\setting.ini }
writeini data\setting.ini $1 $2 $3-
}
alias _vrem {
if ($exists(data\setting.ini) == $false) { mkdir data | write -c data\setting.ini }
remini data\setting.ini $1 $2
}
alias setquerysound {
_vw querycon sound $dir="Kies een geluid:" $mircdir*.wav
}
alias verwerkqueue {
if ($_vr(querycon, queue)) {
if ($_vr(querycon,soundswitch) == on) { if ($_vr(querycon,sound) != $null) { splay $_vr(querycon,sound) } }
var %queuenick = $gettok($_vr(querycon, queue), 1, 32)
var %queuesite = $gettok($_vr(querycon, queuesite), 1, 32)
var %restqueue = $deltok($_vr(querycon, queue), 1, 32)
var %restqueuesite = $deltok($_vr(querycon, queuesite), 1, 32)
if (%restqueue) {
_vw querycon queue %restqueue
_vw querycon queuesite %restqueuesite
}
else {
_vrem querycon queue
_vrem querycon queuesite
}
var %queuemsg = $_vr(querycon.queuemsg, %queuenick)
_vrem querycon.queuemsg %queuenick
verwerkoproep %queuenick %queuesite %queuemsg
}
}
alias isflood {
if (!$3) return
var %v = $chr(37) $+ isflood. $+ $1
if !$(%v,2) {
set $(-u $+ $3,2) $(%v,1) 1
}
else {
inc $(%v,1)
}
if $(%v,2) >= $2 {
unset $(%v,1)
return $true
}
return $false
}
on *:load:{ echo -a 4Fluistercontrole v2 .0 NL | echo -a 4Klik rechts in een venster voor Fluistercontrole menu . _vw querycon switch on _vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht). _vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht). _vw querycon reject Je prive-oproep is genegeerd (dit is een automatisch bericht). _vw querycon soundswitch off _vw querycon timer 120 _vw querycon version query...2.0 } menu menubar,query,status,channel { Fluistercontrole ( $+ $_vr(querycon,switch) $+ ) .Switch ( $+ $_vr(querycon,switch) $+ ) ..Aan: _vw querycon switch on | if ($dialog(querycon) != $null) { did -c querycon 30 } ..Uit: _vw querycon switch off | if ($dialog(querycon) != $null) { did -u querycon 30 } .Instellingen:dialog -m querycon.edit querycon.edit } alias querycon.edit { if ($dialog(querycon.edit) == $null) { dialog -m querycon.edit querycon.edit } } dialog querycon.edit { title "Fluistercontrole - [DocScript by docterdre]" option pixels size 200 300 290 265 edit "", 3, 10 20 270 20,autohs, left edit "", 4, 10 55 270 20,autohs, left edit "", 9, 10 90 270 20,autohs, left button "Annuleren", 11, 80 235 60 20,cancel button "OK", 12, 150 235 50 20, ok default text "Standaard Bericht", 13, 5 5 249 15 text "Weiger Bericht", 14, 5 40 249 15 text "Negeer Bericht", 19, 5 75 249 15 check "Aan", 15, 10 126 80 20 button "Kies geluid", 16, 75 126 75 20 box "Geluid bij aanvraag fluister", 17, 5 110 160 45 button "-", 206, 190 125 15 15 button "+", 207, 250 125 15 15 edit "", 208, 210 125 35 19 box "Auto-sluit venster", 209, 170 110 110 45 text "seconden", 210, 207 140 249 15 radio "Normale Mask *!*@*", 211, 10 175 125 25 radio "Host Mask Negeren", 212, 10 195 125 18 box "Fluister flood negeer type", 213, 5 160 140 60 edit "", 214, 155 195 20 20 text "fluisters in", 215, 178 198 80 15 box "Fluister flood bescherming", 216, 150 160 140 60 edit "", 217, 230 195 30 20 text "secs", 218, 262 198 50 15 check "Aan", 219, 158 175 80 20 } on *:dialog:querycon.edit:init:*:{ if ($_vr(querycon,ignore.host) == $null) { _vw querycon ignore.host on | _vw querycon ignore.uni off } if ($_vr(querycon,ignore.uni) == on) && ($_vr(querycon,ignore.host) == off) { did -c querycon.edit 211 1 } else did -c querycon.edit 212 1 did -o querycon.edit 3 1 $_vr(querycon,standby) did -o querycon.edit 4 1 $_vr(querycon,decline) did -o querycon.edit 9 1 $_vr(querycon,reject) if ($_vr(querycon,soundswitch) == on) did -c querycon.edit 15 if ($_vr(querycon,timer) == $null) _vw querycon timer 120 did -o querycon.edit 208 1 $_vr(querycon,timer) if ($_vr(querycon ,max.query ) == $null) { _vw querycon max.query 5 | did -o querycon .edit 214 1 $_vr(querycon ,max.query ) } else did -o querycon .edit 214 1 $_vr(querycon ,max.query ) if ($_vr(querycon ,max.query .sec ) == $null) { _vw querycon max.query .sec 20 | did -o querycon .edit 217 1 $_vr(querycon ,max.query .sec ) } else did -o querycon .edit 217 1 $_vr(querycon ,max.query .sec ) if ($_vr(querycon,netflood) == on) did -c querycon.edit 219 else did -b querycon.edit 211,217,212,214 } on *:dialog:querycon.edit:sclick:*:{ if ($did == 12) { if ($did(querycon.edit,3).text != $null) { _vw querycon standby $did(querycon.edit,3).text } else _vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht). if ($did(querycon.edit,4).text != $null) { _vw querycon decline $did(querycon.edit,4).text } else _vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht). if ($did(querycon.edit,9).text != $null) { _vw querycon reject $did(querycon.edit,9).text } else _vw querycon reject Je prive-oproep is genegeerd (dit is een automatisch bericht). dialog -x querycon.edit halt } if ($did == 15) { if ($_vr(querycon,soundswitch) == off) { _vw querycon soundswitch on | did -c querycon.edit 15 } else { _vw querycon soundswitch off | did -u querycon.edit 15 } } if ($did == 16) { .timer -m 1 1 setquerysound } if ($did == 206) { if (%timer > 0) { dec %timer 1 | did -o querycon.edit 208 1 %timer | _vw querycon timer %timer | halt } } if ($did == 207) { inc %timer 1 | did -o querycon.edit 208 1 %timer | _vw querycon timer %timer | halt } if ($did == 211) { if ($_vr(querycon,ignore.uni) == off) { _vw querycon ignore.uni on | _vw querycon ignore.host off | did -c querycon.edit 211 | did -u querycon.edit 212 } else { _vw querycon ignore.uni off | _vw querycon ignore.host on | did -u querycon.edit 211 | did -c querycon.edit 212 } } if ($did == 212) { if ($_vr(querycon,ignore.host) == off) { _vw querycon ignore.host on | _vw querycon ignore.uni off | did -c querycon.edit 212 | did -u querycon.edit 211 } else { _vw querycon ignore.host off | _vw querycon ignore.uni on | did -u querycon.edit 212 | did -c querycon.edit 211 } } if ($did == 219) { if ($_vr(querycon,netflood) == off) { _vw querycon netflood on | did -c querycon.edit 219 | did -e querycon.edit 211,217,212,214 } else { _vw querycon netflood off | did -u querycon.edit 219 | did -b querycon.edit 211,217,212,214 } } } on *:dialog:querycon.edit:edit:*:{ if ($did == 208) { if ($did(querycon.edit,208).text != $null) { _vw querycon timer $did(querycon.edit,208).text } } if ($did == 214) { if ($did(querycon.edit,214).text != $null) { _vw querycon max.query $did(querycon .edit ,214).text } } if ($did == 217) { if ($did(querycon.edit,217).text != $null) { _vw querycon max.query .sec $did(querycon .edit ,217).text } } } alias querycon { if ($dialog(querycon) == $null) { dialog -m querycon querycon } } dialog querycon { title "Fluistercontrole v2.0 NL" option pixels size 200 300 290 140 edit "", 3, 10 20 270 20,autohs read edit "", 4, 10 40 270 20,autohs read edit "", 5, 10 60 270 20,autohs read edit "", 6, 10 80 270 20,autohs read check "Aan voor prive-oproepen", 30, 10 4 160 15 button "Negeer", 10, 60 110 50 20 button "Weiger", 11, 120 110 50 20, cancel button "Accepteren", 12, 180 110 70 20, ok default button "Menu", 13, 10 110 40 20 } alias _sq_t { return $_vr(querycon,timer) } alias close.qw { .notice %nw 3 $+ $_vr(querycon,decline) $ae 3Geweigerd if ($dialog(querycon) != $null) dialog -x querycon .timer.queue -m 1 1 verwerkqueue } on *:dialog:querycon:init:*:{ .timerclose.qw 1 $_sq_t close.qw if ($_vr(querycon,decline) == $null) { _vw querycon decline Je prive-oproep is geweigerd, probeer later nog eens (dit is een automatisch bericht). } did -o querycon 5 1 $_vr(querycon,lastmsg) if ($_vr(querycon,switch) == on) { did -c querycon 30 } if ($dialog(querycon) == $null) _vw querycon timer 120 } on *:dialog:querycon:sclick:*:{ if ($did == 12) { .timerclose.qw off .ignore -r $did(3,$did(3)) query $did(3,$did(3)) .timer -m 1 1 echo $window($did(3)) $ +(<,$did(3,$did(3)),>) $_vr(querycon ,lastmsg ) _vrem querycon lastmsg _vw querycon.nicks %nw on $ae 3Geaccepteerd dialog -x querycon .timer.queue -m 1 1 verwerkqueue halt } if ($did == 30) { if ($_vr(querycon,switch) == off) { _vw querycon switch on | did -c querycon 30 } else { _vw querycon switch off | did -u querycon 30 } } if ($did == 10) { .timerclose.qw off .ignore -p $did(3,$did(3)) 3 notice $did(3,$did(3)) 3 $+ $_vr(querycon,reject) $ae 3Genegeerd dialog -x querycon .timer.queue -m 1 1 verwerkqueue halt } if ($did == 11) { .timerclose.qw off .ignore -pu120 $did(3,$did(3)) 3 notice $did(3,$did(3)) 3 $+ $_vr(querycon,decline) $ae 3Geweigerd dialog -x querycon .timer.queue -m 1 1 verwerkqueue halt } if ($did == 13) { querycon.edit | halt } } on *:INPUT:?: { _vw querycon.nicks $query($active) on } on 1:CLOSE:?: { _vrem querycon.nicks $nick } on 1:NICK: { if ($_vr(querycon.queuemsg, $nick)) { _vw querycon queue $reptok($_vr(querycon, queue), $nick, $newnick, 1, 32) _vw querycon.queuemsg $newnick $_vr(querycon.queuemsg, $nick) _vrem querycon.queuemsg $nick } elseif ($_vr(querycon.nicks, $nick)) { _vw querycon.nicks $newnick $_vr(querycon.nicks, $nick) _vrem querycon.nicks $nick } } on 1:QUIT: { if ($_vr(querycon.queuemsg, $nick)) { var %findq = $findtok($_vr(querycon, queue), $nick, 1, 32) var %restq = $deltok($_vr(querycon, queue), %findq, 32) var %restqsite = $deltok($_vr(querycon, queuesite), %findq, 32) if (%restq) { _vw querycon queue %restq _vw querycon queuesite %restqsite } else { _vrem querycon queue _vrem querycon queuesite } _vrem querycon.queuemsg $nick } } on ^1:TEXT:*:?: { ; vul hieronder op de puntjes eventueel nicknames in die altijd mogen fluisteren ; if ($nick == .....) || ($nick == .....) { goto end } if ($_vr(querycon,switch) == $null) _vw querycon switch on if ($_vr(querycon.nicks,$nick) != on) { if ($_vr(querycon,switch) == on) { if ($dialog(querycon) == $null) { if ($_vr(querycon,soundswitch) == on) { if ($_vr(querycon,sound) != $null) { splay $_vr(querycon,sound) } } verwerkoproep $nick $site $1- } else { _vw querycon queue $addtok($_vr(querycon,queue), $nick, 32) _vw querycon queuesite $addtok($_vr(querycon,queuesite), $site, 32) _vw querycon.queuemsg $nick $1- did -o querycon 6 1 $_vr(querycon,queue) } halt } } elseif ($_vr(querycon,netflood) == on) { if ($isflood(priveflood . $ + $nick,$_vr(querycon ,max.query ),$_vr(querycon ,max.query .sec ))) { if ($_vr(querycon ,ignore .uni ) == on ) ignore -pu $ + $_vr(querycon ,max.query .sec ) *!*@* else ignore -pu $ + $_vr(querycon ,max.query .sec ) $wildsite _vrem querycon.nicks $nick .msg $nick 0,4[ ALARM ] Fluister Flooding . Je wordt nu genegeerd gedurende $_vr(querycon ,max.query .sec ) sec . echo -a 0,4[ ALARM ] $nick is Fluister Flooding . User ( $ + $wildsite $ + ) nu genegeerd gedurende $_vr(querycon ,max.query .sec ) sec . } } } alias verwerkoproep { ; $1=$nick, $2=$site, $3=$1- (tekst) if ($_vr(querycon,standby) == $null) { _vw querycon standby Je prive-oproep is tegengehouden, wacht op bevestiging (dit is een automatisch bericht). } _vw querycon lastmsg $3- $ae 3Prive-oproep van $1 $ae 3Wachten op bevestiging... .ignore -pu $+ $_sq_t $1 .notice $1 3 $+ $_vr(querycon,standby) set %nw $1 querycon if ($dialog(querycon) != $null) { did -o querycon 3 1 $1 did -o querycon 4 1 *!* $+ @ $+ $2 } } ;[read write data/setting.ini] alias _vr { if ($exists(data\setting .ini ) == $false) { mkdir data | write -c data\setting .ini } return $readini data\setting.ini $1 $2 } alias _vw { if ($exists(data\setting .ini ) == $false) { mkdir data | write -c data\setting .ini } writeini data\setting.ini $1 $2 $3- } alias _vrem { if ($exists(data\setting .ini ) == $false) { mkdir data | write -c data\setting .ini } remini data\setting.ini $1 $2 } alias setquerysound { _vw querycon sound $dir="Kies een geluid:" $mircdir*.wav } alias verwerkqueue { if ($_vr(querycon, queue)) { if ($_vr(querycon,soundswitch) == on) { if ($_vr(querycon,sound) != $null) { splay $_vr(querycon,sound) } } var %queuenick = $gettok($_vr(querycon, queue), 1, 32) var %queuesite = $gettok($_vr(querycon, queuesite), 1, 32) var %restqueue = $deltok($_vr(querycon, queue), 1, 32) var %restqueuesite = $deltok($_vr(querycon, queuesite), 1, 32) if (%restqueue) { _vw querycon queue %restqueue _vw querycon queuesite %restqueuesite } else { _vrem querycon queue _vrem querycon queuesite } var %queuemsg = $_vr(querycon.queuemsg, %queuenick) _vrem querycon.queuemsg %queuenick verwerkoproep %queuenick %queuesite %queuemsg } } alias isflood { if (!$3) return var %v = $chr(37) $+ isflood. $+ $1 if !$(%v,2) { set $(-u $+ $3,2) $(%v,1) 1 } else { inc $(%v,1) } if $(%v,2) >= $2 { return $true } return $false }
Download code (.txt)
|
|
Stemmen |
Niet ingelogd. |
|