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.

dcc sending a file

Old posts that have not been replied to for several years.
Locked
s
slashem
Voice
Posts: 18
Joined: Tue Aug 13, 2002 6:35 pm

dcc sending a file

Post by slashem »

hiya,
I'm having some problems dcc sending a file..
looked at some example scripts and search the forum here already, but didn't really find anything that helped me :/
the file I want to send to a user is stored in $file..
I write to $file, and after that I just have
[dccsend $file $nick] but that doesn't seem to work and the partyline says: invalid command name "dccsend"
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

Try dropping brackets [].
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
s
slashem
Voice
Posts: 18
Joined: Tue Aug 13, 2002 6:35 pm

Post by slashem »

nope, doesn't make a difference..
still doesn't work
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

regardless of the []'s, this command should work, however, depending on how it's done, it will most likely display an error.

The dccsend command returns a number, depedning on what it did (error, queued or so on).

Using the [] will allow you to capture this return value, however, using the [] on a line by itself, will cause an error EG "Inavlid command name "1"".

THis problem is actualy caused by the filesys module not being loaded.
s
slashem
Voice
Posts: 18
Joined: Tue Aug 13, 2002 6:35 pm

Post by slashem »

thx..
was indeed the filesys not being loaded :/
Locked