| View previous topic :: View next topic |
| Author |
Message |
Robertus Voice
Joined: 23 Aug 2007 Posts: 11
|
Posted: Thu Aug 23, 2007 8:14 pm Post subject: Tcl auto op with particular ident@mask |
|
|
Hi guys,
i have a little problem
because i need a little script in my bot, when a user join in the channel, the bot op this user, if have a particular ident and mask.
for example:
op Karl if karl{at}karl.mask.com
Thank u for the reply.
ps. i used the forum search, but i don't find help about my problem. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Aug 23, 2007 9:15 pm Post subject: |
|
|
Simply add the user to the bot (with the appropriate hostmask) and give them the 'a' (auto-op) flag. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Fri Aug 24, 2007 4:10 am Post subject: |
|
|
Try this:
| Code: | .+user karl *!*karl@karl.mask.com
.chattr karl +foa |
Enjoy
peace
iamdeath _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
cannot_delete Voice
Joined: 24 Nov 2006 Posts: 31
|
Posted: Wed Aug 29, 2007 5:19 pm Post subject: |
|
|
as an tcl-script you can try something like this:
| Code: | #check on join:
bind join - * op_on_joined
#procedere on join:
proc op_on_joined {nick host handle channel} {
#set the host to be opped. my $host for example is "~typ@moxquiz.de"
set ophost "~typ@moxquiz.de"
#set the name of your chanserv. just "chanserv" won't work.
set chanserv "chanserv@services.gamesurge.net"
#set the channel in which the user will be opped
set opchannel "#Quiz.de"
if {$host != $ophost || $channel != $opchannel} {
#if host or channel don't fit, the script will halt
return
}
#sending op-command to chanserv
putquick "PRIVMSG $chanserv :$opchannel op $nick"
} |
-typ- |
|
| Back to top |
|
 |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Wed Aug 29, 2007 5:56 pm Post subject: |
|
|
Thats what i'm looking for, too.
I don't want to add the Users via the Bot. I want to use an accesslist.
I've found this Script
I fits for me, except that the Users are only added with there Nicks. I'd prefer, if they are added like:
*!nick@*host
Can someone please edit the above posted or tell me, where i'll find ^^
Thanks and Regards ! |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Aug 30, 2007 3:34 am Post subject: |
|
|
contact the script's author first, it's nice to be polite
side note: not many people are gong to download a script to help with editing it, posting it works better |
|
| Back to top |
|
 |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Thu Aug 30, 2007 11:57 am Post subject: |
|
|
Of course you are right I've contacted Author.. Thx |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Aug 30, 2007 6:31 pm Post subject: |
|
|
| -typ- wrote: | as an tcl-script you can try something like this:
*snipped code*
-typ- |
That tcl-script is super redundant, mainly because it asks Chanserv to op the person. Chanserv has its own access list it follows and you won't need a bot to do this chore if your network has services, use the access lists provided by services on your IRCd. Im figuring the person wanted a script for a serviceless network; no Chanserv, no Nickserv. As they want the bot to be the 'services'. Using a tcl script has many flaws, as tcl special characters become involved. Using the bots "built-in" .adduser, .+host, .chattr is how you 'should' run your service bot on a serviceless network. Just some wise words of advice  |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri Aug 31, 2007 10:03 am Post subject: |
|
|
| speechles wrote: | | -typ- wrote: | as an tcl-script you can try something like this:
*snipped code*
-typ- |
That tcl-script is super redundant, mainly because it asks Chanserv to op the person. Chanserv has its own access list it follows and you won't need a bot to do this chore if your network has services, use the access lists provided by services on your IRCd. Im figuring the person wanted a script for a serviceless network; no Chanserv, no Nickserv. As they want the bot to be the 'services'. Using a tcl script has many flaws, as tcl special characters become involved. Using the bots "built-in" .adduser, .+host, .chattr is how you 'should' run your service bot on a serviceless network. Just some wise words of advice  | i completely agree, every chanserv i have ever encountered has it's own way to auto-op, and it is truly a bit more secure than using an eggdrop, since it usually requires you to identify in one way or another... _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
|