|
Joined: Dec 2007
Posts: 48
Ameglian cow
|
OP
Ameglian cow
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?
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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"
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
Joined: Oct 2003
Posts: 3,918 |
It's not an argument, it's a fact.
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): 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"
|
|
|
|
Joined: Jul 2006
Posts: 4,193
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,193 |
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.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
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.
|
|
|
|
Joined: Jul 2006
Posts: 4,193
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,193 |
Ah yes, but the $issupport is good for me.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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"
|
|
|
|
Joined: Jul 2006
Posts: 4,193
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,193 |
I just answered about your script because I've think about the issues but I don't really care about using it.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Dec 2007
Posts: 48
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2007
Posts: 48 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 2,033
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,033 |
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.
|
|
|
|
|