Re: Another IRC scripting question [message #274079 is a reply to message #273946] |
Wed, 18 July 2007 14:31 |
|
Cat998
Messages: 1082 Registered: January 2004 Location: Austria, Vienna
Karma:
|
General (1 Star) Moderator/Captain |
|
|
You are talking about the programm mIRC in this topic I guess...
If you want to use this you need to know how to use mIRC Remote script events.
Everything about mIRC scripting is explained in its help file.
Because mIRC first has to ask a DNS server, there is a delay,
and therefore there is no identifier returning something,
but an alias event getting called when the reply of the DNS server is received.
Quote: | on DNS
The on DNS event triggers when a /dns query either succeeds or fails.
Format: on <level>:DNS:<commands>
Example: on 1:DNS:/notice $me Resolved: $raddress
Examples
on 1:DNS:{
var %n = $dns(0)
echo 4 Found %n addresses
while (%n > 0) {
echo 4 dns: $dns(%n) nick: $dns(%n).nick addr: $dns(%n).addr ip: $dns(%n).ip
dec %n
}
}
Note: This event is also triggered if you try to /dns a nickname, and the nickname is not on IRC.
The $dns(N) identifier
This identifier can be used only in the on DNS event, and returns the address that was resolved and any associated IP addresses.
Properties: nick, addr, ip
$dns(N) without a property returns the address being resolved.
You can use N = 0 to return the number of addresses found.
You can use $dns(0).nick/addr/ip to reference properties if an address couldn't be resolved.
|
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"
Programming is like sex: one mistake and you have to support it for the rest of your life
Want the best answers? Ask the best questions!
"So long, and thanks for all the fish."
[Updated on: Wed, 18 July 2007 14:39] Report message to a moderator
|
|
|