| View previous topic :: View next topic |
| Author |
Message |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Thu Jun 24, 2010 3:51 am Post subject: $botnick empty on start |
|
|
Hello there,
I've a small trouble I can't understand whith a script I'm doing.
It contains an init procedure which is called at the end of the script, and inside I use $::botnick.
When I start, or restart, the eggdrop, I got the following error:
| Code: | [09:09] can't read "::crelay::regg()": no such element in array
while executing
"array set me $::crelay::regg($::botnick)"
(procedure "::crelay::init" line 5)
invoked from within
"::crelay::init" |
But if I comment the auto-load and launch the procedure from party-line, it works fine.
So, what is the trouble, when is $botnick setted ? _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jun 24, 2010 8:22 am Post subject: |
|
|
Since your eggdrop has not yet completed the connection and handshake with the irc server, at the time the code is executed, your eggdrop hasn't gained it's nickname yet.
::botnick will always contain the current nickname the eggdrop holds on the server, and is thus empty until it has gained a nickname. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
|
|
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
|
|