mass commandes

Voir le sujet précédent Voir le sujet suivant Aller en bas

mass commandes

Message par Admin le Mar 19 Jan - 11:17

menu channel {
 -
 «« Mass commandes »»
 .MassOp:/massmodeop
 .MassDeOp:/massmodedeop
 .-
 .MassHalfop:/massmodehalfop
 .MassDeHalfop:/massmodedehalfop
 .-
 .MassVoice:/massmodevoice
 .MassDeVoice:/massmodedevoice
 .-
 .MassProtect:/massmodeprotect
 .MassDeProtect:/massmodedeprotect
 .-
 .MassOwner:/massmodeowner
 .MassDeOwner:/massmodedeowner
 .-
 .MassBan:/massmodeban
 .MassUnBan:/massmodedeban
 .-
 .MassKick:/masskick
 .MassKickBan:/masskickban
 .-
 .MassKill:/masskill
 .-
 .MassKickOper:/masskickoper
}

; OP et DEOP ###################################################################################################################################

alias massmodeop {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 /mode $chan +o $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been oped.
   halt
 }
 else goto operation
}

alias massmodedeop {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -o $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been deoped.
   halt
 }
 else goto operation
}

; VOICE et DEVOICE ###############################################################################################################################

alias massmodevoice {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 /mode $chan +v $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been voiced.
   halt
 }
 else goto operation
}

alias massmodedevoice {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -v $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been devoiced.
   halt
 }
 else goto operation
}

; HALFOP et DEHALFOP #############################################################################################################################

alias massmodehalfop {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 /mode $chan +h $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been halfoped.
   halt
 }
 else goto operation
}

alias massmodedehalfop {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -h $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been dehalfoped.
   halt
 }
 else goto operation
}

; PROTECT et DEPROTECT ###########################################################################################################################

alias massmodeprotect {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 /mode $chan +a $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been protected.
   halt
 }
 else goto operation
}

alias massmodedeprotect {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -a $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been deprotect.
   halt
 }
 else goto operation
}

; OWNER et DEOWNER

alias massmodeowner {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 /mode $chan +q $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been ownered.
   halt
 }
 else goto operation
}

alias massmodedeowner {
 if ($me !isop $chan) {
   //echo You must to be OP on $chan !
   halt
 }
 else unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -q $nick( $+ $chan $+ , $+ %channicktemp $+ )
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been deownered.
   halt
 }
 else goto operation
}

; BAN et UNBAN ###################################################################################################################################

alias massmodeban {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 mode $chan +b $address( $+ $nick( $+ $chan $+ , %channicktemp) $+ ,2)
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been banned.
   halt
 }
 else goto operation
}

alias massmodedeban {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan -b $address( $+ $nick( $+ $chan $+ , %channicktemp) $+ ,2)
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been unbanned.
   halt
 }
 else goto operation
}

; MASSKICK ###########################################################################################################################################

alias masskick {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 set %reason $$?="Quelle raison ?"
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else /kick $chan $nick( $+ $chan $+ , $+ %channicktemp $+ ) %reason
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been kicked.
   halt
 }
 else goto operation
}

; MASSKICKBAN ###################################################################################################################################

alias masskickban {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 set %reason $$?="Quelle raison ?"
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 set %nicktemp $nick( $+ $chan $+ , %channicktemp $+ )
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else mode $chan +b $address( $+ %nicktemp $+ ,2)
 /kick $chan %nicktemp %reason
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been kicked and banned.
   halt
 }
 else goto operation
}

; MASSKILL ###########################################################################################################################################

alias masskill {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 set %reason $$?="Quelle raison ?"
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else /kill $nick( $+ $chan $+ , $+ %channicktemp $+ ) %reason
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been killed.
   halt
 }
 else goto operation
}

; MASSKICKOPER ###########################################################################################################################################

alias masskickoper {
 if (($me !ishop $chan) && ($me !isop $chan)) {
   //echo You must to be HALFOP or OP on $chan !
   halt
 }
 unset %channicktemp
 unset %channicks
 unset %channumtemp
 unset %channum
 unset %leso
 set %channumtemp 1
 set %reason $$?="Quelle raison ?"
 :boucle
 set %channum $nick( $+ $chan $+ ,0)
 set %channicks $addtok(%channicks,$nick( $+ $chan $+ , $+ %channumtemp $+ ),32)
 inc %channumtemp
 if (%channumtemp == $calc(%channum + 1)) {
   goto operation
 }
 else goto boucle
 :operation
 if ($nick( $+ $chan $+ , $+ %channicktemp $+ ) == $me) {
   inc %channicktemp
   goto operation
 }
 else /msg operserv kick $chan $nick( $+ $chan $+ , $+ %channicktemp $+ ) %reason
 inc %channicktemp
 if (%channicktemp == $calc(%channum + 1)) {
   /msg $chan %channicks have been kicked.
   halt
 }
 else goto operation
}

Admin
Admin

Messages : 34
Date d'inscription : 15/10/2015

http://remotes-irc-addons.forum-officiel.com

Revenir en haut Aller en bas

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum