Code: Select all
#Set the IPS to match
set ipsmatch {
"*.com.sg"
"*.egghelp.org"
}
proc name {nick uhost ........} {
global ipsmatch
foreach ipmatch [string tolower ipsmatch] {
if {([string equal -nocase $ipmatch [lindex [split [maskhost $uhost] "@"] 1]])} {
#do stuff here
#Or, alternatively you can make a list
set ipsmatch "com.sg egghelp.org elite.com"
#And do a list search, and check if the ip matches:
if {([lsearch -exact [split [string tolower $ipsmatch]] [string tolower [lindex [split [maskhost $uhost] "@"] 1]]] != -1)} {
awyeah wrote:Okay.... You can do either one of the stuff here I mentioned.
Code: Select all
#Set the IPS to match set ipsmatch { "*.com.sg" "*.egghelp.org" } proc name {nick uhost ........} { global ipsmatch foreach ipmatch [string tolower ipsmatch] { if {([string equal -nocase $ipmatch [lindex [split [maskhost $uhost] "@"] 1]])} { #do stuff here #Or, alternatively you can make a list set ipsmatch "com.sg egghelp.org elite.com" #And do a list search, and check if the ip matches: if {([lsearch -exact [split [string tolower $ipsmatch]] [string tolower [lindex [split [maskhost $uhost] "@"] 1]]] != -1)} {
awyeah wrote:Na... this is the main piece of code you will be using for the script.
If I had time I would have completed it, though.
IN PARTYLINE:
Alternatively, how about adding *!*@*.com.sg with a +o flag.
Say make another user id, give it flag +o, and .+host (add hosts)
as many as you like.
This will use the bots internal autoop mechanism. The channels to
enable autoop on, set them to +autoop.
IN PARTYLINE (DCC with the bot): (you can try one of these)# aop-delay (minimum:maximum)
# This is used for autoop, autohalfop, autovoice. If an op or voice joins a
# channel while another op or voice is pending, the bot will attempt to put
# both modes on one line.
# aop-delay 0 No delay is used.
# aop-delay X An X second delay is used.
# aop-delay X:Y A random delay between X and Y is used.
Code: Select all
.chanset <#channel> aop-delay 0
.chanset <#channel> aop-delay 5
.chanset <#channel> aop-delay 5:10