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.

identify to nickserv

Old posts that have not been replied to for several years.
Locked
g
gasman
Voice
Posts: 10
Joined: Tue Feb 17, 2004 5:09 am
Location: UK

identify to nickserv

Post by gasman »

hello all

i'm something of a newbie with the eggdrops but i'm trying to make mine
identify to nickserv...from what i have gleaned from the messages i've read about this and associated subjects i came to the conclusion that the following needed to be put into the conf

proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putquick "PRIVMSG nickserv :register <nick> <pass> <e-mail>" -next

but..when the bot connects i get
-NickServ (services@nsane.net)- You have to be connected longer than 30 seconds to register your nick.

is there something i need to add to this to delay it for xx amount of time

the line will obviously be changed once registered to the ident command etc

TIA
gasman
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You're trying to register a nick not identify to it. :P
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
g
gasman
Voice
Posts: 10
Joined: Tue Feb 17, 2004 5:09 am
Location: UK

Post by gasman »

yes as i stated in last line the line will be changed once successful in registring
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

If you want to put a delay on a command, you can use a utimer

Code: Select all

utimer xx [list <you code goes here>]
xx being the number of seconds.

However, since it's a one time deal, you could just as well just leave the code you have now, and register the nick thru partyline with something like:

Code: Select all

.dump privmsg nickserv register <nick> <pass> <e-mail>
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You can register the nick with services, fix up access list etc and *then* have the bot identify on connect or setup its' nick via DCC with something simple >> .msg nickserv register password [email]. For DALnet: .msg NickServ@services.dal.net register password [email]
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Or alternatively, you can call another procedure with a 30+ second delay timer and then register the nick.

Something like this should do it! :mrgreen:

Code: Select all

#Set the password to register the nick with
set pass "irule"

#Set the email to register the nick with
set email "awyeah@microsoft.com"

bind evnt - init-server delay:in:register
 
proc delay:in:register {type} { 
 global botnick pass email
  putquick "MODE $botnick +i-ws" -next
  utimer 35 [list register:nick $pass $email]
}

proc register:nick {pass email} {
 global botnick
  putquick "PRIVMSG nickserv :REGISTER $botnick $pass $email" -next
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Has anyone heard of the famous KISS principle?

"Keep It Simple Stupid"
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For KISS:

Use this in the same procedure binded on event, init-server:

Code: Select all

utimer 35 "putquick \"PRIVMSG nickserv :REGISTER $botnick $pass $email\" -next"
There we go! :wink:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Actually, if you reeeallly wanted to go for KISS, then he should go with the identify code in init-server, and register the nick from partyline, like Alchera and myself already told him to.
Locked