This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

All Op Tcl (Need Help)

Old posts that have not been replied to for several years.
Locked
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

All Op Tcl (Need Help)

Post by WeiJie »

Hi guys,

I'm looking for this particular which ops all users in a particular channel BUT only current IP... Like...

*!*@.*.com.sg
*!*@.*.egghelp.org

And not op other users with another ISP/Domain hostmask...
Anyone have it? Or any solutions?
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: All Op Tcl (Need Help)

Post by user »

You're looking for the docs? .help +user & .help whois & .help chattr & .help +host (add a user with the autoop flag + the hosts you want autooped)
Have you ever read "The Manual"?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Hi
1) Is this a TCL coding?
2) If i place this coding in .tcl, will it works and auto-op *.com.sg and *.egghelp.org?

Sorry, i dunno anything about coding stuffs regarding tcl... :)

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)} { 
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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. :mrgreen:

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. :wink:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Oh ok, but what if i want the tcl to work only on some particular channels?
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For that, set a variable to a list of channels you would like the script to work on. Use lsearch to check if it matches any of the channels, if it does go ahead do your stuff, otherwise halt. :)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

why do we always have to make it complicated... :roll:
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

:P :lol: :D :mrgreen: :wink: :roll:
arcane wrote:why do we always have to make it complicated... :roll:
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Tried the PARTYLINE method and it doesn't seems to work for me...
Wonder where does the problem lies at... This is what I did:

1) Add a user (.+user)
2) +o flag to that user
3) Add host (.+host *!*@*.com.sg)
4) Set the channel to autoop (.chanset # +autoop)

But when a *!*@*.com.sg user joined, it doesn't op them.
Why?
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. :mrgreen:

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. :wink:
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

There's a timed delay to allow ChanServ to perform the function first.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You should check this.
# 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.
IN PARTYLINE (DCC with the bot): (you can try one of these)

Code: Select all

.chanset <#channel> aop-delay 0
.chanset <#channel> aop-delay 5
.chanset <#channel> aop-delay 5:10
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Thanks alot! :D
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
Locked