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 a function in a module

Old posts that have not been replied to for several years.
Locked
L
Loveless

Calling a function in a module

Post by Loveless »

I have written a poker module in C, which (most likely) works fine. The problem is that I cant figure out how to connect to it from a script.

Lets say the module is named dealer.mod, and I have two functions called OpenReg and JoinTable.

How do I "find" these functions from my dealer.tcl file? (the module loads fine with the bot)
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

You have to add tcl function into module. Take a look at server module, tclirc.c file. Check module_start (for add_tcl_commands(my_tcl_cmds);) and module_close function (for rem_tcl_commands(my_tcl_cmds);)
Que?
L
Loveless

Post by Loveless »

Ok, thanks I'll give that a check.
Locked