mIRC Home    About    Download    Register    News    Help

Print Thread
#133882 26/10/05 10:45 AM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
Hi, I thought about a command to resend the last file sent.
So far I managed to do this:

on 1:filesent:*.*:{ set %lastfile $filename }

then the alias:

resend /dcc send $active %lastfile

but this way I'm only able to resend with an open query window.

I'd like this stuff:

- when i type /resend i want it to ask me "resend the file <filename" with yes - no buttons
- if the focus is not on a query window mirc asks me for the nick to send to
- if there's no %lastfile set mirc says "no lastfile, you're an idiot :P "

thanks a lot wink

#133883 26/10/05 02:39 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, you may want to also set the $nick of the last file sent so that it would resend to the same person automatically. It depends on what exactly you're doing. Of course, if you're using FILESENT, I'm unsure why you're trying to resend the file. If it was sent, then you shouldn't need to resend it. Perhaps you meant to use SENDFAIL?

Code:
alias resend {
  if (%lastfile == $null) { echo -a No lastfile.  You're an idiot :P | return }
  if ($?!="Resend the file %lastfile $+ ?" == $true) {
    if ($left($active,1) == #) {
      var %nick = $?="Send to what nick?"
    }
    else var %nick = $active
    if (%nick == $null) { echo -a You must specify a nick. | return }
    dcc send %nick %lastfile
  }
}


That should do the alias part of it for you.


Invision Support
#Invision on irc.irchighway.net
#133884 27/10/05 12:51 AM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
no, it's meant to send the same file to different persons!

e.g. I send "dog.jpg" to Joe then Bruce asks for the same file and instead of using the usual way, I simply open a query with bruce and type /resend.

thanks a lot smile

#133885 27/10/05 01:32 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I see. Well, the alias there should work for you.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard