X-Static Codes
Chat to Us @
SNM Chat
in #X-Static
Home
|
Contact
Login
Register
Search
Scripting
Snippets
Tutorials
Competitions
Links
Memberlist
Pastebin
Affiliates
Contact Admin
Sponsors
Nameless
Official #nameless website
Rooted.in
I got Rooted did you?
Stats
Total Members: 56
Newest User: Nofilicity
Snippets Added: 153
View
CheckOps
Snippet Author:
FURBY
Rated:
Snippet Description:
ok, Instructions are in the script. Its fairly easy to setup
#####################checkops version 1 by Sasuke####################### ############################################################################## ### Just a small script to check the amount of ops(@) in the channel # ### that you select, this is made for X-Static # ### irc2.snm.co.nz -j #x-static # ############################################################################## ############################################################################## #set this to the channel u want to run in.Only single channel. set allowed "#x-static" #set this to the minimum amount of ops before action set ops_min 2 #set this to how many minutes timer to check for ops set op_timer 5 ############################end settings##################################### #######################code begins dont edit################################# proc low_chkops {} { global op ops opnick allowed op_timer ops_min if {![string match "*low_chkops*" [timers]]} { timer $op_timer low_chkops } set ops 1 foreach user [chanlist $allowed] { if {[isop $user $allowed]} { incr ops } } if {$ops >= $ops_min} { return_status } if {$ops == $ops_min} { return_status } if {$ops <= $ops_min} { remove_status } } if {![string match "*low_chkops*" [timers]]} { timer $op_timer low_chkops } proc remove_status {} { putmsg #x-admin "channel #x-static has less then 2 ops" putlog "Channel #x-Static has been Scanned, Results: needs ops" } proc return_status {} { putmsg #x-admin "channel #x-static has more then 2 ops" putlog "Channel #x-Static has been Scanned Results: enough ops" } bind bot - low_chkops ########################################################################### putlog "check-Ops Created by Sasuke" ###########################################################################
Favorite Script
-
Smilies
Message:
Comments: