Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias rejoin {
- if ($1 == all) {
- if ($2 == 1) || ($2 == on) {
- set %rejoin.kick 1
- set %rejoin.ban 1
- echo -at <AutoRejoin> Activé pour KICK et BAN
- }
- if ($2 == 0) || ($2 == off) {
- set %rejoin.kick 0
- set %rejoin.ban 0
- echo -at <AutoRejoin> Désactivé pour KICK et BAN
- }
- }
- if ($1 == kick) {
- if ($2 == 1) || ($2 == on) {
- set %rejoin.kick 1
- echo -at <AutoRejoin> Activé pour KICK
- }
- if ($2 == 0) || ($2 == off) {
- set %rejoin.kick 0
- echo -at <AutoRejoin> Désactivé pour KICK
- }
- }
- if ($1 == ban) {
- if ($2 == 1) || ($2 == on) {
- set %rejoin.ban 1
- echo -at <AutoRejoin> Activé pour BAN
- }
- if ($2 == 0) || ($2 == off) {
- set %rejoin.ban 0
- echo -at <AutoRejoin> Désactivé pour BAN
- }
- }
- }
- on *:ban:#:{
- if (%rejoin.ban == 1) {
- if ($bnick == $me) {
- echo -st <AutoRejoin> Je me suis fait bannir sur $chan par $nick $+ .
- echo -st <AutoRejoin> Tentative de débannissement.
- if (ChanServ ison $chan) {
- cs delbanme $chan
- echo -st <AutoRejoin> ChanServ étant sur $chan $+ , j'ai pu me débannir.
- }
- if (Centravi ison $chan) {
- msg Centravi delban $chan $me
- echo -st <AutoRejoin> Centravi étant sur $chan $+ , j'ai pu me débannir.
- }
- }
- }
- }
- on *:kick:#:{
- if (%rejoin.kick == 1) {
- if ($knick == $me) {
- echo -st <AutoRejoin> Je me suis fait kické sur $chan par $nick $+ .
- echo -st <AutoRejoin> Tentative de join via INVITE/RAW_JOIN $+ .
- if (ChanServ ison $chan) {
- cs inviteme $chan
- timer 1 3 raw join $chan
- echo -st <AutoRejoin> J'ai effectué toutes les commandes possibles pour rejoindre $chan $+ .
- }
- if (Centravi ison $chan) {
- msg Centravi inviteme $chan
- echo -st <AutoRejoin> J'ai effectué toutes les commandes possibles pour rejoindre $chan $+ .
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement