egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tcl auto op with particular ident@mask

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Robertus
Voice


Joined: 23 Aug 2007
Posts: 11

PostPosted: Thu Aug 23, 2007 8:14 pm    Post subject: Tcl auto op with particular ident@mask Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Aug 23, 2007 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri Aug 24, 2007 12:37 am    Post subject: Reply with quote

how to use auto-op
why auto-op is a real bad idea
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Aug 24, 2007 4:10 am    Post subject: Reply with quote

Try this:

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



Enjoy Very Happy

peace
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
cannot_delete
Voice


Joined: 24 Nov 2006
Posts: 31

PostPosted: Wed Aug 29, 2007 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Wed Aug 29, 2007 5:56 pm    Post subject: Reply with quote

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 Smile ^^

Thanks and Regards !
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu Aug 30, 2007 3:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Thu Aug 30, 2007 11:57 am    Post subject: Reply with quote

Of course you are right Smile I've contacted Author.. Thx
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Aug 30, 2007 6:31 pm    Post subject: Reply with quote

-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 Smile
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri Aug 31, 2007 10:03 am    Post subject: Reply with quote

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 Smile
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...
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber