mIRC Home    About    Download    Register    News    Help

Print Thread
$maxtargets? #203646 23/08/08 05:25 AM
Joined: Dec 2007
Posts: 48
K
Kol Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2007
Posts: 48
Another paramter recieved through 005 on CONNECT and I know it already is held in mIRC because I saw the /debug output when /amsging so why can't we call it?

Re: $maxtargets? [Re: Kol] #203656 23/08/08 03:35 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Because you can just get it yourself from raw 005?


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: $maxtargets? [Re: argv0] #203658 23/08/08 03:40 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not exactly a good arguement, as the maximum number of modes (for example) is also returned in raw 005, yet mIRC has $modespl

Re: $maxtargets? [Re: Kol] #203659 23/08/08 04:18 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Rather than add an identifier for each token one-by-one I'd much rather see an $isupport(<token-name>) identifier.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $maxtargets? [Re: RusselB] #203660 23/08/08 04:24 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
It's not an argument, it's a fact.

Code:
raw $005:/\b(\S+)=(\S+)\b/g: { var %i = 1, %n = ENV. $+ $network | while ($regml(%i)) { hadd -m %n $v1 $regml($calc(%i + 1)) | inc %i 2 } }
alias isupport { return $hget(ENV. $+ $network, $1) }


$isupport(MODES)


The other problem being that there is more than one "maxtargets" result on certain networks (this is from efnet):
Quote:
TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR:


It would have to be something like $maxtargets(kick), which I don't think is standardized across networks.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: $maxtargets? [Re: argv0] #203662 23/08/08 06:41 PM
Joined: Jul 2006
Posts: 3,582
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,582
And if $network is $null ?
Btw, I don't see why we should not have one identifier per token.

Last edited by Wims; 23/08/08 06:42 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $maxtargets? [Re: Wims] #203663 23/08/08 07:07 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quote:
Btw, I don't see why we should not have one identifier per token.

Because then mIRC has to explicitly add support for each and every token which is just stupid and impractical. Having a single $isupport() identifier means mIRC can just parse 005 and return the values for whatever tokens it provides (or $true for tokens which have no specific value).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $maxtargets? [Re: starbucks_mafia] #203664 23/08/08 07:22 PM
Joined: Jul 2006
Posts: 3,582
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,582
Ah yes, but the $issupport is good for me.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $maxtargets? [Re: Wims] #203668 23/08/08 09:24 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Feel free to use $cid if you use networks that don't fill $network, doesn't really change much.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: $maxtargets? [Re: argv0] #203672 23/08/08 09:44 PM
Joined: Jul 2006
Posts: 3,582
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,582
I just answered about your script because I've think about the issues but I don't really care about using it.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $maxtargets? [Re: argv0] #203723 25/08/08 05:12 AM
Joined: Dec 2007
Posts: 48
K
Kol Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2007
Posts: 48
Originally Posted By: argv0
Because you can just get it yourself from raw 005?


As Russel says, mIRC has $chantypes, $chanmodes, $modespl, and $prefix all from 005. There is evidence that MAXTARGETS is also used so I'm wondering why that isn't an identifier too.

Re: $maxtargets? [Re: Kol] #203730 25/08/08 03:01 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013

MAXTARGETS isn't supported by all networks. I like the $isupport idea and have stated so on several occasions here in the past, but unfortunately it has never come to be. I too have a $isupport custum identifier.