egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printing to the partyline

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
skridsko
Voice


Joined: 10 Jan 2008
Posts: 2

PostPosted: Thu Jan 10, 2008 5:32 am    Post subject: Printing to the partyline Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2854

PostPosted: Thu Jan 10, 2008 3:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
skridsko
Voice


Joined: 10 Jan 2008
Posts: 2

PostPosted: Fri Jan 11, 2008 1:56 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2854

PostPosted: Fri Jan 11, 2008 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber