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.

Calling netbots procedures from a tcl

Old posts that have not been replied to for several years.
Locked
a
azul

Calling netbots procedures from a tcl

Post by azul »

Hi guys
I need to call the netchanset procedure from my tcl.
I suppose the command should be:
putallbots "nb netchanset #mychannel chanmode +is"

but netbots is not catching this call...
can you give me some help?


Thanks!
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

The putallbots won't work -- you need to send the command through nb_sendcmd with the following syntax for netchanset:

nb_sendcmd $nb_control netchanset [list <hand> <chan> <settings>]

For <hand> you'll probably want to put the name of your script, and <chan> could be "-reload" or "-all" or a valid channel. <settings> is optional, but if you need to specify them they could be a little fiddly.

This of course will execute the command on other netbots, but not the current one.
Locked