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.

Tcl extensions and .restart

Old posts that have not been replied to for several years.
Locked
J
Jules_74

Post by Jules_74 »

When I load up a tcl extension from within a script (say the fbsql extension) and then perform a .restart the extension will stay loaded but it can't be used by the script again. Meaning I'm forced to load the extension every time the bot restarts which causes the same extension being loaded multiple times as can be seen with .tcl putlog [info loaded]
Is this a bug or a feature in eggdrop? Or is it extension the problem here?

[edit]
I was the problem! :razz:
Problem is solved now.
[/edit]

<font size=-1>[ This Message was edited by: Jules_74 on 2002-05-19 10:12 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Just for your information, when you .restart, the Tcl interpreter is totally reset.
J
Jules_74

Post by Jules_74 »

Yeap, but still there's something weird going on, or at least [info loaded] doesn't display correct information:

Code: Select all

<[Jules]> .tcl putlog [info loaded]
<JuleBot> 
<JuleBot> Tcl: 
<[Jules]> .tcl load fbsql
<JuleBot> Tcl: 
<[Jules]> .tcl putlog [info loaded]
<JuleBot> [11:41] {fbsql Fbsql}
<JuleBot> Tcl: 
<[Jules]> .restart
<JuleBot> [11:41] #Jules# restart
<JuleBot> Restarting.
<JuleBot> [11:41] Writing user file...
<JuleBot> [11:41] Writing channel file...
<JuleBot> [11:41] Restarting ...
<JuleBot> [11:41] Module unloaded: uptime
<JuleBot> [11:41] Module unloaded: assoc
<JuleBot> [11:41] Module unloaded: seen
<JuleBot> [11:41] Module unloaded: console
<JuleBot> [11:41] Module unloaded: notes
<JuleBot> [11:41] Module unloaded: irc
<JuleBot> [11:41] Module unloaded: ctcp
<JuleBot> [11:41] Module unloaded: server
<JuleBot> [11:41] Writing channel file...
<JuleBot> [11:41] Module unloaded: channels
<JuleBot> [11:41] Listening at telnet port 13333 (all)
<JuleBot> [11:41] No longer supporting channel #JuleBot
<JuleBot> [11:41] Module loaded: channels        
<JuleBot> [11:41] Module loaded: server          
<JuleBot> [11:41] Module loaded: ctcp            
<JuleBot> [11:41] Module loaded: irc             
<JuleBot> [11:41] Module loaded: notes            (with lang support)
<JuleBot> [11:41] Module loaded: console          (with lang support)
<JuleBot> [11:41] Module loaded: seen            
<JuleBot> [11:41] Module loaded: assoc            (with lang support)
<JuleBot> [11:41] Module loaded: uptime          
<JuleBot> [11:41] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
<JuleBot> [11:41] use '.help userinfo' for commands.
<JuleBot> [11:41] Userfile loaded, unpacking...
<JuleBot> You have no messages.
<JuleBot> [11:41] Trying server irc.xs4all.nl:6664
<JuleBot> [11:41] Connected to irc.xs4all.nl
<[Jules]> .tcl putlog [info loaded]
<JuleBot> [11:41] {fbsql Fbsql}
<JuleBot> Tcl: 
So it seems here that fbsql is still loaded, but it isn't...
Locked