egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] Unknown command: addhost

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sun Jul 12, 2009 9:25 am    Post subject: [SOLVED] Unknown command: addhost Reply with quote

Hi,

I have a script that works with userfiles and I wanted to be able to use addhost command. However, I get this error:

[15:10] Tcl error [users]: invalid command name "addhost"

What's going on?


Last edited by Fill on Tue Jul 14, 2009 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
while
Voice


Joined: 11 Jul 2009
Posts: 34
Location: beat mort

PostPosted: Sun Jul 12, 2009 9:47 am    Post subject: Reply with quote

maybe if you paste the code of the script someone can tell what is wrong Wink
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Sun Jul 12, 2009 10:12 am    Post subject: Reply with quote

There is no such Eggdrop Tcl command as addhost.

This is what you need :-

setuser <handle> <entry-type> [extra info]

Look it up in tcl-commands.doc or tcl-commands.html, which you can find in your bot's docs.

The obvious alternative is to define a proc named addhost which uses the above setuser command. You can then call addhost.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
username
Op


Joined: 06 Oct 2005
Posts: 196
Location: Russian Federation, Podolsk

PostPosted: Sun Jul 12, 2009 3:16 pm    Post subject: Reply with quote

You need to load compat.tcl and alltools.tcl before any other scripts. They are situated in scripts folder of your bot. That is the librarys with many useful commands, like addhost.
_________________
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Tue Jul 14, 2009 3:32 am    Post subject: Reply with quote

thanks for the great replies guys, everything was solved after loading compat.tcl

@ arfer:
Maybe I should update the script and make it use the new command?

See ya
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber