| View previous topic :: View next topic |
| Author |
Message |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sun Jul 12, 2009 9:25 am Post subject: [SOLVED] Unknown command: addhost |
|
|
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 |
|
 |
while Voice
Joined: 11 Jul 2009 Posts: 34 Location: beat mort
|
Posted: Sun Jul 12, 2009 9:47 am Post subject: |
|
|
maybe if you paste the code of the script someone can tell what is wrong  |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Sun Jul 12, 2009 10:12 am Post subject: |
|
|
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 |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Sun Jul 12, 2009 3:16 pm Post subject: |
|
|
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 |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Tue Jul 14, 2009 3:32 am Post subject: |
|
|
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 |
|
 |
|