| View previous topic :: View next topic |
| Author |
Message |
skridsko Voice
Joined: 10 Jan 2008 Posts: 2
|
Posted: Thu Jan 10, 2008 5:32 am Post subject: Printing to the partyline |
|
|
| 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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jan 10, 2008 3:02 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
skridsko Voice
Joined: 10 Jan 2008 Posts: 2
|
Posted: Fri Jan 11, 2008 1:56 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jan 11, 2008 10:58 am Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|