Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. if(%Andaris{IgnorePrives}) halt
  2. if(%Andaris{RepondeurAlerte} && !$andaris::bot($0) && !$away){
  3. 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é.")
  4. $andaris::sound(prive)
  5. }
  6. if(%Andaris{RepondeurSay} && !$andaris::bot($0) && !$away){
  7. %f[]= $window.list(channel,$ic)
  8. %g[]= $window.list(query,$ic)
  9. %h[]= $window.list(dccchat,none)
  10. %nf = %f[]#
  11. %ng = %g[]#
  12. %nh = %h[]#
  13. if($kviequal(%nf,0)) %nf = "aucun(e)"
  14. if($kviequal(%ng,0)) %ng = "aucun(e)"
  15. if($kviequal(%nh,0)) %nh = "aucun(e)"
  16. %mot[0] = "nick"
  17. %replace[0] = $0
  18. %mot[1] = "nbrpv"
  19. %replace[1] = "%ng Privé(s)"
  20. %mot[2] = "nbrchan"
  21. %replace[2] = "%nf Salon(s)"
  22. %mot[3] = "nbrdcc"
  23. %replace[3] = "%nh Partyline(s)"
  24. %phrase[0] = %Andaris{RepondeurMsg}
  25.  
  26. for(%i=0;%i < %mot[]#;%i++){
  27. if($kvimatch(%mot[%i],%phrase[%i]))
  28. %phrase[$(%i + 1)] = $kvireplace(%phrase[%i],%replace[%i],%mot[%i])
  29. else
  30. %phrase[$(%i + 1)] = %phrase[%i]
  31. }
  32.  
  33. %msg = %phrase[%i]
  34. %nick=$0
  35. timer -s (repondeurenvoie_$0,0100,%nick,%msg){
  36. msg $0 $andaris::color($target,$1)
  37. }
  38. }
  39. stats::read pv
  40. if($away) if(%AwaySay{$0}) %AwaySay{$0}="";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement