|
|
Joined: Feb 2017
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2017
Posts: 24 |
hi, is possible get info of raw 301 without giving whois, tankyou!
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
301 is only ever received from /whois. You can gather the same info of this whois line from the /who command. You can generally gather this same information, without sending a server command, with mIRC's built-in Internal Address List (IAL), which remembers the information it sees about people. When someone joins a channel or speaks, their address is recorded to the IAL. Sending the command /who #channel or /ialfill #channel will populate the IAL with everyone's information, whether they have spoken or not.
$ial(nick|address) .nick .user .host .addr .mark .account .away .gecos .id
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Feb 2017
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2017
Posts: 24 |
nice man, but when i use $ial(nick/address).away return $true or $false and i wish it would come back away reason, has as?
|
|
|
|
Joined: Jul 2006
Posts: 4,020
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,020 |
The ial does not provide a way to access the away message, you can suggest it.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
Away Message is not a readily accessible message and it has a tenancy to change. By readily accessible, it's not available in WHO, NAMES, nor other recent IRCx3 extensions. You will have to /whois or /msg the user.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Feb 2017
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2017
Posts: 24 |
al right, so no way to get away reason if not with whois?
|
|
|
|
Joined: Jul 2006
Posts: 4,020
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,020 |
It has a tendency to change but it would *change* whenever the away status change, yet this one is available via the prop. Possibly the away status is available for mIRC without asking it to the server, which may not be true for the away message, but that could still be wanted by user, for example ircv3 might improve this in the future. $ial().awaymsg can always be a thing, even if it wouldn't return something until you whois the user (at least for now)
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Feb 2011
Posts: 469
Pan-dimensional mouse
|
Pan-dimensional mouse
Joined: Feb 2011
Posts: 469 |
If the network supports away-notify (it can be found in the " Caps supported:" line in your server/status window when connecting to a network) you could get the away message. It will only work if they set /away while in the same channel(s) with you or they join a channel you are in while they are /away.
raw AWAY:*:{
if ($1 != $null) {
echo -ag Nick: $nick
echo -ag Away Message: $1-
}
else { echo -ag $nick is no longer away. }
}
<- :wat!wat@127.0.0.1 PRIVMSG #foo :mIRC RULES! <- :wat!wat@127.0.0.1 AWAY :I AM AWAY!
Nick: wat Away Message: I AM AWAY!
15/04/2017 - mIRC v7.48 ... 18.Added CAP support for away-notify. This is automatically enabled if available and makes the server send AWAY events to the client indicating the away state of users on the same channels as you. AWAY events are not shown but are used to set $ial().away. They trigger as RAW events.
https://ircv3.net/specs/extensions/away-notify-3.1.html
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
I stand corrected. Was not aware that the message was included in this event. So it would make a good IAL candidate in theory.
It could be tacked onto the IAL as an IALmark property. /ialmark -n $nick awaymsg $1- $ialmark($nick,awaymsg).mark
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Jul 2006
Posts: 4,020
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,020 |
That's for scripting, what's wrong with $ial().awaymsg, just like $ial().away ?
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
Nothing is wrong if that's going to become a feature suggestion. But you can get started and rolling today with scripting.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
|
|