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.

Basic aop Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Basic aop Script

Post by anixion »

Hey i just need a basic aop script so i can do

!aop nick

and it adds them to Auto Op in that CHANNEL

and does it by ident!
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

Did you even bother to search at TCL Archive? :)
I'm an idiot, At least this one [bug] took about 5 minutes to find...
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Or use forum search function
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Post by anixion »

i cant find anything that basic...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

bind pub o|o !aop op:user

proc op:user {nick uhost hand chan arg} {
    set thenick [lindex [split [string trim $arg]] 0]
    if {![isop $thenick $chan]} { pushmode $chan +o $thenick }
}
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Post by anixion »

Alchera how could i delop then :P?
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Post by anixion »

the code doesent work btw :(
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

anixion wrote:the code doesent work btw :(
Worked for me more than once. It checks for the 'o' flag btw.

Code: Select all

!aop <nick>
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Post by anixion »

Do u just add that into a txt and save it as aop.tcl then add it to my scripts?
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

anixion wrote:Do u just add that into a txt and save it as aop.tcl then add it to my scripts?
Don't forget the source line in the conf file.
a
anixion
Voice
Posts: 15
Joined: Sat Nov 05, 2005 11:50 pm

Post by anixion »

Ok this is what is happening..

(17:27:22) (@pES`anixion) !aop KING|coMA
(17:27:24) • functionzer0 sets mode (+o KING|coMA)
(17:27:27) • KING|coMA has left #hahahah (~ScottyG_@c211-28-127-199.eburwd3.vic.optusnet.com.au)
(17:27:27) • KING|coMA has joined #hahahah (~ScottyG_@c211-28-127-199.eburwd3.vic.optusnet.com.au)

then it doesent reop them
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

anixion, if you mean you want the bot to autoop him then use

Code: Select all

bind pub o|o !aop op:user

proc op:user {nick uhost hand chan arg} {
    set thenick [lindex [split [string trim $arg]] 0]
    setuser autoops HOSTS $thenick![lindex [split [maskhost [getchanhost $thenick $chan]] !] 1]
}
and in dcc:
.+user autoops
.chattr autoops +o #yourchannel
.chpass autoops kasjdsj
.chanset #yourchannel +autoop
the script will add nick!ident@*.domain.net to the autoops handle. This might be insecure, so I suggest you use some autoop script with enough security from the Tcl archive.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Re: Basic aop Script

Post by Alchera »

anixion wrote:Hey i just need a basic aop script so i can do

!aop nick

and it adds them to Auto Op in that CHANNEL

and does it by ident!
You made a request. You got it!
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply