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.
#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- 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
-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...