mIRC Home    About    Download    Register    News    Help

Print Thread
#3492 26/12/02 12:39 AM
Joined: Dec 2002
Posts: 10
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 10
Shouldn't the DNS event support $show?

#3493 26/12/02 12:52 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Returns $false if a command is prefixed with a . to make it quiet, otherwise returns $true.

on DNS isn't a command (like you said, it's an event). $show isn't for that purpose, anyway, you can easily set a variable when you use the command and you don't want the result to be shown, and then check to see it if is set in the on DNS event.

#3494 26/12/02 01:10 AM
Joined: Dec 2002
Posts: 10
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 10
i think you're wrong in this case. mIRC doesn't display the result of the /dns if it's prefixed with a dot. So, i think it would be fair if $show returned $false in the DNS event if it shouldn't be shown. Would make it alot easier for scripts who customize the dns output. Setting variables and stuff is pretty dirty, if you ask me.

Also, /dns [-ch] [nick|address] [id] would be cool. id = unique ID that could be used in the DNS event to check if you should process the result. Sure, could be done with variables.. but it gets so dirty smirk

#3495 26/12/02 01:16 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Well alot of commands are like that, /nick for example, but it isn't really a bug, since it was never intended, good suggestion though smile

Edit: Yes, I know I'm being pedantic

Last edited by Collective; 26/12/02 01:22 AM.
#3496 26/12/02 01:16 AM
Joined: Dec 2002
Posts: 10
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 10
i got some more to say.. wink

my main problem with this is that scripts and addons easily gets in each others way when it comes to /dns. if my addon wants to do a .dns and the user has a script loaded that customizes the dns output... it would [censored] up, because alot of the scripts out there isn't "correctly" scripted. support for $show would make everything much more easier - for everyone.

#3497 26/12/02 04:06 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Extremely good points tronicer cool

#3498 27/12/02 05:47 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Although I agree with you, there is a work around, there are dlls that allow you to get the dns reply without an event, you could try using one of those...


Link Copied to Clipboard