mIRC Home    About    Download    Register    News    Help

Print Thread
#76872 27/03/04 03:34 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
I have Auto-get file in my mIRC options but would like to somehow limit that on certain networks, have this atm but it doesn't seem to do what it's supposed to:
Code:
on *:DCCSERVER: if (NetwNameHere isin $network) { /dcc reject } 

Could some1 help me out with this one, would be great if i get a "Show Send Dialog" or at least get a PM or something so that i'd know DCC was blocked and who tried to send me a file. DCC Chat isn't a problem cause i have that off on all netws and would like to keep it that way.

#76873 27/03/04 03:53 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You could just type /ignore -d * on the network that you do not wish to accept DCCs from.

However, I suggest you read /help on dccserver and use on *:dccserver:send: and if ($network == newtnamehere) instead of iswm $network.

Regards,


Mentality/Chris
#76874 27/03/04 06:14 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On dccserver is not suitable for sends over IRC. It only works in conjunction with an enabled DCC server that listens to direct connections (IP to IP).

This script auto-accepts files on Undernet and displays the Get Dialog for other networks:
  • Ctcp *:dcc send *:?:{
    if $network == Undernet {
    .sreq auto
    .timer 1 0 .sreq ask
    }
    }

#76875 27/03/04 07:11 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
Thx for the help so far am using this atm:
Code:
ctcp *:dcc send:*: { if ($network == NetwNameHere) { /halt | /dcc reject } } 

but i feel like it's overkill.

Online could u somehow "tweak" your code so that it would auto-accept files on all networks and i could add a few netws so i'd receive the Get Dialog...the opposite of what u have.

#76876 27/03/04 07:22 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Quote:
the opposite of what u have

Ctcp *:dcc send *:?:{
if !$istok(DALnet Undernet IRCnet,$network,32) {
.sreq auto
.timer 1 0 .sreq ask
}
}

This script will autoget files everywhere except on the networks you specify in your list.

#76877 27/03/04 07:32 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
Online thank you very very much, this is exactly what i was after, truly appreciate it smile

#76878 27/03/04 07:44 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You're welcome laugh and btw, I would suggest Mentality's idea of /ignore -d on certain networks if you didn't need to show the Get Dialog for them.


Link Copied to Clipboard