| View previous topic :: View next topic |
| Author |
Message |
extazyti Voice
Joined: 08 Aug 2006 Posts: 2
|
Posted: Tue Aug 08, 2006 6:34 am Post subject: Pls Help |
|
|
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 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Aug 08, 2006 9:04 am Post subject: |
|
|
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 |
|
 |
extazyti Voice
Joined: 08 Aug 2006 Posts: 2
|
Posted: Tue Aug 08, 2006 9:28 am Post subject: |
|
|
thanks  |
|
| Back to top |
|
 |
|