| View previous topic :: View next topic |
| Author |
Message |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Tue Nov 08, 2005 4:20 am Post subject: Basic aop Script |
|
|
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! |
|
| Back to top |
|
 |
Linux Halfop

Joined: 04 Apr 2004 Posts: 71 Location: Under The Sky
|
Posted: Tue Nov 08, 2005 4:51 am Post subject: |
|
|
Did you even bother to search at TCL Archive?  _________________ I'm an idiot, At least this one [bug] took about 5 minutes to find... |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Tue Nov 08, 2005 5:44 am Post subject: |
|
|
Or use forum search function _________________ Slovene Eggdrop Page |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Tue Nov 08, 2005 5:54 am Post subject: |
|
|
| i cant find anything that basic... |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Nov 08, 2005 9:34 am Post subject: |
|
|
| Code: | 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 |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Wed Nov 09, 2005 2:28 am Post subject: |
|
|
Alchera how could i delop then ? |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Wed Nov 09, 2005 2:33 am Post subject: |
|
|
the code doesent work btw  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Nov 09, 2005 10:48 am Post subject: |
|
|
| anixion wrote: | the code doesent work btw  |
Worked for me more than once. It checks for the 'o' flag btw.
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Thu Nov 10, 2005 1:27 am Post subject: |
|
|
| Do u just add that into a txt and save it as aop.tcl then add it to my scripts? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Nov 10, 2005 5:21 am Post subject: |
|
|
| 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. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Fri Nov 11, 2005 2:28 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Nov 11, 2005 6:38 am Post subject: |
|
|
anixion, if you mean you want the bot to autoop him then use
| Code: | 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:
| Quote: | .+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. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Nov 11, 2005 9:40 am Post subject: Re: Basic aop Script |
|
|
| 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 |
|
| Back to top |
|
 |
|