mIRC Home    About    Download    Register    News    Help

Topic Options
#76872 - 27/03/04 03:34 PM DCC Reject/Show Dialog
Anyone Offline
Pikka bird

Registered: 21/10/03
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.

Top
#76873 - 27/03/04 03:53 PM Re: DCC Reject/Show Dialog
Mentality Offline
Planetary brain

Registered: 01/06/03
Posts: 5024
Loc: London, England
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

Top
#76874 - 27/03/04 06:14 PM Re: DCC Reject/Show Dialog
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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
    }
    }

Top
#76875 - 27/03/04 07:11 PM Re: DCC Reject/Show Dialog
Anyone Offline
Pikka bird

Registered: 21/10/03
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.

Top
#76876 - 27/03/04 07:22 PM Re: DCC Reject/Show Dialog
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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.

Top
#76877 - 27/03/04 07:32 PM Re: DCC Reject/Show Dialog
Anyone Offline
Pikka bird

Registered: 21/10/03
Posts: 14
Online thank you very very much, this is exactly what i was after, truly appreciate it smile

Top
#76878 - 27/03/04 07:44 PM Re: DCC Reject/Show Dialog
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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.

Top