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.

Tcl auto op with particular ident@mask

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
R
Robertus
Voice
Posts: 11
Joined: Thu Aug 23, 2007 8:10 pm

Tcl auto op with particular ident@mask

Post by Robertus »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Try this:

Code: Select all

.+user karl *!*karl@karl.mask.com
.chattr karl +foa 

Enjoy :D

peace
iamdeath
|AmDeAtH @ Undernet
Death is only the *Beginning*...
c
cannot_delete
Voice
Posts: 31
Joined: Fri Nov 24, 2006 5:31 am

Post by cannot_delete »

as an tcl-script you can try something like this:

Code: Select all

#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-
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

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 !
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

Of course you are right :) I've contacted Author.. Thx
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

-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 :)
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

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...
Post Reply