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.

using ctcp to transfer log files

Old posts that have not been replied to for several years.
Locked
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

using ctcp to transfer log files

Post by Weirdo »

I have a user in my channel who does some logging for me, and he sends it to me using a /ctcp <nickname> <trigger> <username> <password> command

I want to make a script that would allow the bot to do this. Where in all essences, the nick, user and pass are fixed variables, and the trigger is a text that i enter after the dcc command.

ie

.sendlog !nov1104.txt

Would send the log file for the 11th november using his script. Is there a way of making the bot use this kind of command to trigger a dcc send this way?
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: using ctcp to transfer log files

Post by user »

1: The subject is misleading as you don't use ctcp for anything but to trigger a normal dcc send.
2: Variable != fixed :P
3: Let me get this straight.. You want the bot to send that ctcp and recieve the file when you do '.sendlog ...' on its partyline?
Have you ever read "The Manual"?
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

basically, yes. nickname, username and pass is fixed. Its just the filename that changes, wanted to put it in after the command as you do in pub commands.
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Code: Select all

bind dcc n sendlog logctcp
proc logctcp {h i a} {
	puthelp "PRIVMSG nickname :\001TRIGGER username password $a\001"
}
Have you ever read "The Manual"?
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

Which bit does the /ctcp bit cause i dont think it worked. never mind, i used my brain, and worked it out...

Thank you
Locked