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.

Printing to the partyline

Discussion of Eggdrop's code and module programming in C.
Post Reply
s
skridsko
Voice
Posts: 2
Joined: Thu Jan 10, 2008 5:13 am

Printing to the partyline

Post by skridsko »

I'd like to know what's the idx value to use so as to print to the partyline using dprintf in a mod. Thanks.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Think you could elaborate that alittle?

What is the trigger for your function?
Whom of the connected dcc sessions would be the recipient of the message?
etc..
NML_375
s
skridsko
Voice
Posts: 2
Joined: Thu Jan 10, 2008 5:13 am

Post by skridsko »

It will not be activated from a trigger, rather, some form of notification message when the bot encounters a certain condition. And I'd like everyone who is connected via dcc to receive it regardless of flags.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

All established dcc/telnet/socket sessions are tracked in the "dcc" table (available to modules through the global export table). A simple example on how to extract information from this can be found by checking the source for "static int tcl_hand2idx STDVAR", which is found in tcldcc.c.
NML_375
Post Reply