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 

DCC CHAT

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


Joined: 17 Jun 2006
Posts: 4

PostPosted: Tue Jun 20, 2006 9:34 pm    Post subject: DCC CHAT Reply with quote

Hi again Wink

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 Wink
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Jun 22, 2006 8:02 pm    Post subject: Reply with quote

Code:
puthelp "privmsg $nick : your text here"

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
M4ST3R26
Voice


Joined: 17 Jun 2006
Posts: 4

PostPosted: Fri Jun 23, 2006 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting 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