Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. alias rejoin {
  2. if ($1 == all) {
  3. if ($2 == 1) || ($2 == on) {
  4. set %rejoin.kick 1
  5. set %rejoin.ban 1
  6. echo -at <AutoRejoin> Activé pour KICK et BAN
  7. }
  8. if ($2 == 0) || ($2 == off) {
  9. set %rejoin.kick 0
  10. set %rejoin.ban 0
  11. echo -at <AutoRejoin> Désactivé pour KICK et BAN
  12. }
  13. }
  14. if ($1 == kick) {
  15. if ($2 == 1) || ($2 == on) {
  16. set %rejoin.kick 1
  17. echo -at <AutoRejoin> Activé pour KICK
  18. }
  19. if ($2 == 0) || ($2 == off) {
  20. set %rejoin.kick 0
  21. echo -at <AutoRejoin> Désactivé pour KICK
  22. }
  23. }
  24. if ($1 == ban) {
  25. if ($2 == 1) || ($2 == on) {
  26. set %rejoin.ban 1
  27. echo -at <AutoRejoin> Activé pour BAN
  28. }
  29. if ($2 == 0) || ($2 == off) {
  30. set %rejoin.ban 0
  31. echo -at <AutoRejoin> Désactivé pour BAN
  32. }
  33. }
  34. }
  35.  
  36. on *:ban:#:{
  37. if (%rejoin.ban == 1) {
  38. if ($bnick == $me) {
  39. echo -st <AutoRejoin> Je me suis fait bannir sur $chan par $nick $+ .
  40. echo -st <AutoRejoin> Tentative de débannissement.
  41. if (ChanServ ison $chan) {
  42. cs delbanme $chan
  43. echo -st <AutoRejoin> ChanServ étant sur $chan $+ , j'ai pu me débannir.
  44. }
  45. if (Centravi ison $chan) {
  46. msg Centravi delban $chan $me
  47. echo -st <AutoRejoin> Centravi étant sur $chan $+ , j'ai pu me débannir.
  48. }
  49. }
  50. }
  51. }
  52.  
  53. on *:kick:#:{
  54. if (%rejoin.kick == 1) {
  55. if ($knick == $me) {
  56. echo -st <AutoRejoin> Je me suis fait kické sur $chan par $nick $+ .
  57. echo -st <AutoRejoin> Tentative de join via INVITE/RAW_JOIN $+ .
  58. if (ChanServ ison $chan) {
  59. cs inviteme $chan
  60. timer 1 3 raw join $chan
  61. echo -st <AutoRejoin> J'ai effectué toutes les commandes possibles pour rejoindre $chan $+ .
  62. }
  63. if (Centravi ison $chan) {
  64. msg Centravi inviteme $chan
  65. echo -st <AutoRejoin> J'ai effectué toutes les commandes possibles pour rejoindre $chan $+ .
  66. }
  67. }
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement