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  

 

 set +m when no ops on channel

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


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

set +m when no ops on channel Empty
PostSubject: set +m when no ops on channel   set +m when no ops on channel Empty12/6/2020, 14:01

So this script sets +m when their are currently No Ops on that channel Wink
Made by tomekk
Code:

# .chanset #channel_name +mops

 
bind part - "*" check_chan_ops
bind sign - "*" check_chan_ops

setudef flag mops

proc check_chan_ops { nick uhost hand chan msg } {
   global botnick

   if {![channel get $chan mops]} {
      return
   }

   set channel_users [chanlist $chan]

   set is_any_op 0

   foreach chan_user $channel_users {
      if {($chan_user != $nick) && ($chan_user != $botnick)} {
         if {[isop $chan_user $chan]} {
            set is_any_op 1
            break
         }
      }
   }

   if {$is_any_op == 0} {
      pushmode $chan +m
   }
}
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
set +m when no ops on channel
Back to top 
Page 1 of 1
 Similar topics
-
» cycle all channel script

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