Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. #############
  2. # #
  3. # Plainte #
  4. # #
  5. #############
  6.  
  7. set plainte_ver "1.5"
  8. set plainte_author "AngeDesOmbres"
  9. set plainte_date "15/08/2012"
  10. set plainte_upgrade "14/01/2017"
  11. set log "#services"
  12. set chanplainte "#plaintes"
  13.  
  14. bind join - "*" join:
  15. bind pub - "!aide" pub:aide
  16. bind MSGM - "*plainte*" plainte
  17. bind pub - !ok ok
  18. bind pub - !rej rej
  19. bind pub - !abus abus
  20.  
  21. proc join: { nick uhost hand chan } {
  22. if {$chan == "#plaintes"} {
  23. putserv "PRIVMSG $nick \00312Bienvenue\0034 $nick ,\00312 pour l'aide a la gestion des plaintes tape \002\0034!aide \002\00312( uniquement sur le salon #Plaintes )"
  24. return 0
  25. }
  26. }
  27.  
  28. proc pub:aide { nick uhost handle chan arg } {
  29. puthelp "NOTICE $nick :\0036Voici les commandes d'aide à la gestion des plaintes."
  30. puthelp "NOTICE $nick :\0034!ok \00312pour prendre en charge la plainte."
  31. puthelp "NOTICE $nick :\0034!rej raison \00312pour rejeter la plainte."
  32. puthelp "NOTICE $nick :\0034!abus \00312pour envoyer un message d'abus a l'utilisateur."
  33. }
  34.  
  35. proc plainte { nick host ident arg } {
  36. global chanplainte
  37. putquick "NOTICE $chanplainte :\00312Plainte émise par \0037$nick \00312Venez sur le salon pour la prise en charge"
  38. putquick "PRIVMSG $chanplainte :\00312Plainte de \0037$nick \00312contre \0034[lindex $arg 2] \00312Plainte : \0036[lrange $arg 2 end]"
  39. putquick "PRIVMSG $chanplainte :\00312Tapez \0037!ok $nick \00312pour prendre en charge la plainte ou \0037!rej $nick raison \00312pour rejeter la plainte ou \0037!abus $nick \00312pour envoyer un message d'abus de la commande."
  40. putquick "NOTICE $nick :\00312Votre plainte à été envoyé au service abus. Merci de patienter le temps du traitement de celle-ci."
  41. putquick "PRIVMSG $::log :\00312Plainte : \0037$nick \00312contre \0034[lindex $arg 2]"
  42. }
  43.  
  44. proc ok { nick uhost handle channel arg } {
  45. global chanplainte
  46. if ![string compare -nocase $channel "$chanplainte"] {
  47. set comp [lindex $arg 2]
  48. if ![string compare -nocase $comp ""] {
  49. putquick "NOTICE [lindex $arg 0] :\00312Plainte prise en charge par \0036$nick"
  50. putquick "PRIVMSG $chanplainte :\00312Prise en charge de la plainte de \0037[lindex $arg 0] \00312par \0036$nick"
  51. putquick "PRIVMSG $::log :\00312Plainte : \0036$nick \00312prend en charge la plainte de \0037[lindex $arg 0]"
  52. unset comp
  53. } else {
  54. putquick "NOTICE [lindex $arg 0] :\00312Plainte prise en charge par \0036$nick \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  55. putquick "PRIVMSG $chanplainte :\00312Prise en charge de la plainte de \0037[lindex $arg 0] \00312par \0036$nick \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  56. putquick "PRIVMSG $::log :\00312Plainte : \0036$nick \00312prend en charge la plainte de \0037[lindex $arg 0] \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  57. }
  58. }
  59. }
  60.  
  61. proc rej { nick uhost handle channel arg } {
  62. global chanplainte
  63. if ![string compare -nocase $channel "$chanplainte"] {
  64. set comp [lindex $arg 2]
  65. if ![string compare -nocase $comp ""] {
  66. putquick "NOTICE [lindex $arg 0] :\00312Plainte rejetée par \0036$nick"
  67. putquick "PRIVMSG $chanplainte :\00312Rejet de la plainte de \0037[lindex $arg 0] \00312par \0036$nick"
  68. putquick "PRIVMSG $::log :\00312Plainte : \0036$nick \00312rejete la plainte de \0037[lindex $arg 0]"
  69. unset comp
  70. } else {
  71. putquick "NOTICE [lindex $arg 0] :\00312Plainte rejetée par \0036$nick \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  72. putquick "PRIVMSG $chanplainte :\00312Rejet de la plainte de \0037[lindex $arg 0] \00312par \0036$nick \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  73. putquick "PRIVMSG $::log :\00312Plainte : \0036$nick \00312rejete la plainte de \0037[lindex $arg 0] \00312Informations complémentaires : \0037[lrange $arg 1 end]"
  74. }
  75. }
  76. }
  77.  
  78. proc abus { nick uhost handle channel arg } {
  79. global chanplainte
  80. if ![string compare -nocase $channel "$chanplainte"] {
  81. set comp [lindex $arg 2]
  82. if ![string compare -nocase $comp ""] {
  83. putquick "NOTICE [lindex $arg 0] :\00312Plainte rejetée par \0036$nick \00312Informations complémentaires : \0037Merci de ne pas abusé du système"
  84. putquick "PRIVMSG $chanplainte :\0036$nick \00312estime que \0037[lindex $arg 0] \00312abuse du système. Rejet de la plainte."
  85. putquick "PRIVMSG $::log :\00312Plainte :\0036$nick \00312abus du système par \0037[lindex $arg 0]"
  86. unset comp
  87. } else {
  88. putquick "NOTICE [lindex $arg 0] :\00312Plainte rejetée par \0036$nick \00312Informations complémentaires : \0037Merci de ne pas abusé du système"
  89. putquick "PRIVMSG $chanplainte :\0036$nick \00312estime que \0037[lindex $arg 0] \00312abuse du système. Rejet de la plainte."
  90. putquick "PRIVMSG $::log :\00312Plainte :\0036$nick \00312abus du système par \0037[lindex $arg 0]"
  91. }
  92. }
  93. }
  94.  
  95. putlog "\00312Plainte Version\0037 $plainte_ver \00312By\0034 $plainte_author \00312fait le\0034 $plainte_date \00312upgrade le\0034 $plainte_upgrade \00312has been loaded"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement