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.
General support and discussion of Eggdrop bots.
extazyti
Voice
Posts: 2 Joined: Tue Aug 08, 2006 6:21 am
Post
by extazyti » Tue Aug 08, 2006 6:34 am
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
Please Help
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue Aug 08, 2006 9:04 am
That could be solvable by a simple tcl-script
One way would be
Code: Select all
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: Select all
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
extazyti
Voice
Posts: 2 Joined: Tue Aug 08, 2006 6:21 am
Post
by extazyti » Tue Aug 08, 2006 9:28 am
thanks