| View previous topic :: View next topic |
| Author |
Message |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Mon Feb 26, 2007 7:40 am Post subject: |
|
|
| Sir_Fz wrote: | How about you load some identification script from the Tcl archive? There are a lot of scripts that will do what you want.
Btw, you don't just add lines to the top of the .conf file. The .conf file is organized for a reason. |
I know this, but then what did you say about this:
| Linux wrote: | Try this if you want to login your nickname via NickServ.
ADD this into your .conf file,
Code:
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putquick "IDENTIFY <nickname> <your-password>"
}
Regards. |
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Feb 26, 2007 8:15 am Post subject: |
|
|
| Cr4sh wrote: | | Sir_Fz wrote: | How about you load some identification script from the Tcl archive? There are a lot of scripts that will do what you want.
Btw, you don't just add lines to the top of the .conf file. The .conf file is organized for a reason. |
I know this, but then what did you say about this:
| Linux wrote: | Try this if you want to login your nickname via NickServ.
ADD this into your .conf file,
Code:
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putquick "IDENTIFY <nickname> <your-password>"
}
Regards. |
|
You are getting confused Cr4sh. Ignore all but what Sir_Fz suggested in his (last) post. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Mon Feb 26, 2007 9:21 am Post subject: |
|
|
Right, thx!
Now i've tried to load this script (the first one in the script list):
| Code: | ###########################################################################################
###### NickServ & ChanServ Tools #####
###########################################################################################
#
# Autor : Holger Brähne (Holli)
# E-Mail : hbraehne@web.de
# Version: 1.0
#
# Beschreibung: Das Script Identifiziert den Bot automatisch bei NickServ und lässt den
# Bot automatisch Op erhalten falls das gewünscht ist und er die benötigten
# Channelrechte besitzt. Das Script wurde getestet und hat funktioniert.
# Ich kann allerdings nicht garantieren das es das auf allen IRC Servern
# tut!
#
###########################################################################################
###### KONFIGURATION ######
###########################################################################################
# Der Name den NickServ auf dem IRC Server verwendet auf dem sich der Bot befindet
set nserv(name) "NickServ"
# Der Befehl mit dem man sich bei NickServ identifiziert (normalerweise: IDENTIFY)
set nserv(idnt) "IDENTIFY"
# Der Name den der Bot verwendet. Wichtig falls jemand den Namen geklaut hat und der Bot
# in den GHOST Modus gehen soll um ihn zurück zu erhalten.
set nserv(nick) "botnick"
# Das Passwort mit dem der Bot bei NickServ registriert ist.
set nserv(pass) "password"
# Die Zeit die der Bot zwischen dem erkennen von NickServ und der Identifizierung warten
# soll. Bei mir haben 10 Sekunden immer gereicht, aber es soll ja auch langsamere Server
# geben ;)
set nserv(time) 10
# Der Name den ChanServ auf dem IRC Server verwendet auf dem sich der Bot befindet
set cserv(name) "ChanServ"
# Soll der Bot sich automatisch Op im unten angegebenen Channel holen?
# 0 = nein / 1 = ja
set cserv(opme) 1
# Der Channel in dem sich der Bot Op holen soll.
set cserv(chan) "#mainchannel"
# Siehe nserv(time). Die Zeit hier sollte aber mindestens 5 Sekunden länger angegeben sein!
set cserv(time) 15
###########################################################################################
###### !!! AB HIER NICHTS MEHR ÄNDERN, AUSSER DU WEISST GENAU WAS DU DA MACHST !!! ######
###########################################################################################
bind notc - "*msg*IDENTIFY*pass*" nick_ident
bind dcc o nservid nick_ident
proc nick_ident {nick uhost hand args} {
global botnick nserv cserv
if {$botnick == $nserv(nick)} {
utimer $nserv(time) "putserv \"PRIVMSG $nserv(name) :$nserv(idnt) $nserv(pass)\""
if {$cserv(opme) == 1} {
utimer $cserv(time) "putserv \"PRIVMSG $cserv(name) :OP $cserv(chan)\""
}
} else {
utimer $nserv(time) "putserv \"PRIVMSG $nserv(name) :GHOST $nserv(nick) $nserv(pass)\""
}
} |
...the result it's the same...bot don't identify itself.  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Feb 26, 2007 3:40 pm Post subject: |
|
|
Then try another script. I use chanservneed by De Kus, give it a try. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Mon Feb 26, 2007 3:55 pm Post subject: |
|
|
It's ok!!
Thank you very much.
To the next help...bye |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Feb 26, 2007 3:57 pm Post subject: |
|
|
@cr4sh: Which irc server are you trying to identify on? Here's an example for undernet (this goes in your eggdrop.conf, make sure there are no other proc evnt:init_server entries in your conf.)
| Code: |
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +ix-ws"
putquick "PRIVMSG X@channels.undernet.org :login botname botpassword"
}
|
If its a server that uses nickserv, change the privmsg line to:
putquick "PRIVMSG nickserv :identify botpassword"
or possibly:
putquick "ns identify botpassword"
Some servers use the command "ns" to talk to nickserv, instead of /msg nickserv.
You're basically issuing the same commands you do for yourself when you identify manually. Make sure your bot isn't ignoring nickserv and services in general when you connect, sometimes it will ignore them for flooding. Add nickserv and chanserv to your bot's userlist, give them the +f flag, and make sure they're not being ignored (if you're not seeing any replies from nickserv, then your bot is ignoring it or you don't have the right flags set on your dcc console to be able to see them. Check your .ignore list and check your console settings.)
And, yeah chanservneed is a very good script, I use that one too. |
|
| Back to top |
|
 |
|