TCLDROP
Would you like to react to this message? Create an account in a few clicks or log in to continue.
TCLDROP

Eggdrop And TCL Help, Support And Chat
 
HomeHome  PublicationsPublications  FAQFAQ  SearchSearch  MemberlistMemberlist  Latest imagesLatest images  UsergroupsUsergroups  RegisterRegister  Log in  CalendarCalendar  WebsiteWebsite  ChatRoomChatRoom  

 

 MassKick

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


Posts : 99
Points : 268
Reputation : 0
Join date : 2020-04-30

MassKick Empty
PostSubject: MassKick   MassKick Empty21/5/2020, 21:41

Hey all this is a masskick script (Warning) it might be a little TOO powerful for some networks hehe

Code:
    bind pub - ?masskick kick_allX5
   
    proc kick_allX5 {nick host handle chan text} {
   
      if {![isop $nick $chan] && ![ishalfop $nick $chan] && ![matchattr [nick2hand $nick] o|o $chan]} { putserv "NOTICE $nick you dont have access to use this command" ; return o}
   
    putnow "mode $chan +im"
                    utimer 10 [list putnow "mode $chan +im"]
   
   
      set reasonX55 [join [lrange [split $text ] 0 end]]
      if {$reasonX55 eq ""} { set reasonX55 Requested }
   
    foreach user [chanlist $chan] {
    if {![isop $user $chan] && ![ishalfop $user $chan] && ![isvoice $user $chan] && ![matchattr [nick2hand $user] fnmo|fnmo $chan]} {
    lappend kickList $user
    }
    }
   
    if {[info exists kickList]} {
      set max 4
      set count [llength $kickList]
      if {$count > 0} {
          while {$count > 0} {
            if {$count > $max} {
                set users [join [lrange $kickList 0 [expr {$max - 1}]] ","]
                set kickList [lrange $kickList $max end]
                incr count -$max
                } else {
                  set users [join $kickList ","]
                  set count 0
                }
                putnow "KICK $chan $users $reasonX55"
            }
          }
      } 
    }
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
MassKick
Back to top 
Page 1 of 1
 Similar topics
-
» Normal Slow and steady Masskick

Permissions in this forum:You cannot reply to topics in this forum
TCLDROP :: Other :: Code-
Jump to: