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 

Pls Help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
extazyti
Voice


Joined: 08 Aug 2006
Posts: 2

PostPosted: Tue Aug 08, 2006 6:34 am    Post subject: Pls Help Reply with quote

I want to ask how to make my eggdrop show ".who" command in the my party line when I get connected,..
in the text/motd file.. what can I put there to do .who command there. I try to edit src/misc.c but I can't programming Sad

Please Help
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Aug 08, 2006 9:04 am    Post subject: Reply with quote

That could be solvable by a simple tcl-script
One way would be
Code:

proc chon:dowho {hand idx} {
  dccsimul $idx ".who"
}
bind chon - * chon:dowho

Would basically simulate the user typing .who when connecting

edit: Another example:
Code:

proc chon:listwho {hand idx} {
  foreach h [dcclist "chat"] {
    putidx $idx "  \[[lindex $h 0]\]  [lindex $h 1]  [lindex $h 2]"
  }
}

Might wanna tidy up the code with some formatting (spacing etc) tho..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
extazyti
Voice


Joined: 08 Aug 2006
Posts: 2

PostPosted: Tue Aug 08, 2006 9:28 am    Post subject: Reply with quote

thanks Smile
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 -> Eggdrop Help 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