| View previous topic :: View next topic |
| Author |
Message |
M4ST3R26 Voice
Joined: 17 Jun 2006 Posts: 4
|
Posted: Tue Jun 20, 2006 9:34 pm Post subject: DCC CHAT |
|
|
Hi again
i dunno if it's possible, i searched alot on the web but i can't find anything to help me :S
I want a trigger ( !read_info ), after that the eggdrop dcc chat the user ( ANY USER ), read the content of the $file and send it to the DCC CHAT window and close the chat window.
It's possible to do that or not ? If yes .. how ?!? i juste need the DCC CHAT part
Thanks  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Jun 22, 2006 8:02 pm Post subject: |
|
|
| Code: | | puthelp "privmsg $nick : your text here" |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
M4ST3R26 Voice
Joined: 17 Jun 2006 Posts: 4
|
Posted: Fri Jun 23, 2006 12:30 am Post subject: |
|
|
uhmmm ... ok i tryed this, when i type !read i get a dcc chat windows and the info is sent to the dcc chat windows ... in LOCAL, everything work fine, but if anyone else try it, the dcc chat failed .... PLZ ... help !!!
| Code: |
set file "info.txt"
set dccport "1027-2048"
#----- Listing -----
proc dcclist {nick uhost hand chan arg} {
global dccport
putserv "PRIVMSG $chan :Envoie de la liste a $nick en cours ... "
putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $dccport\001"
}
listen $dccport script dccsendinfo
proc deesendinfo {idx} {
information $idx
}
proc information {idx} {
global file
putdcc $idx "Information Index2 ;)"
set fs [open "$file" r]
while {![eof $fs]} {
gets $fs line
putdcc $idx "$line"
}
close $fs
return 1
}
|
Thanks ! |
|
| Back to top |
|
 |
|