Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(%Andaris{IgnorePrives}) halt
- if(%Andaris{RepondeurAlerte} && !$andaris::bot($0) && !$away){
- echo -w=$active -i=$msgtype(OwnPrivateMessage) $andaris::event("$k(14)\[$b$k(4)Pv$b$k(14)\]$k(2) $0 $k(4)(*!$1\@$cr!h$2$cr$2$cr)$k(2) désire s'entretenir en privé.")
- $andaris::sound(prive)
- }
- if(%Andaris{RepondeurSay} && !$andaris::bot($0) && !$away){
- %f[]= $window.list(channel,$ic)
- %g[]= $window.list(query,$ic)
- %h[]= $window.list(dccchat,none)
- %nf = %f[]#
- %ng = %g[]#
- %nh = %h[]#
- if($kviequal(%nf,0)) %nf = "aucun(e)"
- if($kviequal(%ng,0)) %ng = "aucun(e)"
- if($kviequal(%nh,0)) %nh = "aucun(e)"
- %mot[0] = "nick"
- %replace[0] = $0
- %mot[1] = "nbrpv"
- %replace[1] = "%ng Privé(s)"
- %mot[2] = "nbrchan"
- %replace[2] = "%nf Salon(s)"
- %mot[3] = "nbrdcc"
- %replace[3] = "%nh Partyline(s)"
- %phrase[0] = %Andaris{RepondeurMsg}
- for(%i=0;%i < %mot[]#;%i++){
- if($kvimatch(%mot[%i],%phrase[%i]))
- %phrase[$(%i + 1)] = $kvireplace(%phrase[%i],%replace[%i],%mot[%i])
- else
- %phrase[$(%i + 1)] = %phrase[%i]
- }
- %msg = %phrase[%i]
- %nick=$0
- timer -s (repondeurenvoie_$0,0100,%nick,%msg){
- msg $0 $andaris::color($target,$1)
- }
- }
- stats::read pv
- if($away) if(%AwaySay{$0}) %AwaySay{$0}="";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement