mIRC Home    About    Download    Register    News    Help

Print Thread
raw 301 #264264 14/11/18 05:19 AM
Joined: Feb 2017
Posts: 19
D
Doctor_Souza Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2017
Posts: 19
hi, is possible get info of raw 301 without giving whois, tankyou!

Re: raw 301 [Re: Doctor_Souza] #264265 14/11/18 09:14 AM
Joined: Feb 2003
Posts: 2,650
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,650
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!
Re: raw 301 [Re: Raccoon] #264266 14/11/18 01:38 PM
Joined: Feb 2017
Posts: 19
D
Doctor_Souza Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2017
Posts: 19
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?

Re: raw 301 [Re: Doctor_Souza] #264267 14/11/18 02:37 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
The ial does not provide a way to access the away message, you can suggest it.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: raw 301 [Re: Wims] #264268 14/11/18 03:00 PM
Joined: Feb 2003
Posts: 2,650
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,650
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!
Re: raw 301 [Re: Raccoon] #264269 14/11/18 04:46 PM
Joined: Feb 2017
Posts: 19
D
Doctor_Souza Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2017
Posts: 19
al right, so no way to get away reason if not with whois?

Re: raw 301 [Re: Raccoon] #264270 14/11/18 05:06 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
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)


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: raw 301 [Re: Doctor_Souza] #264272 15/11/18 09:41 AM
Joined: Feb 2011
Posts: 315
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 315
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.

Code:
raw AWAY:*:{
  if ($1 != $null) { 
    echo -ag Nick: $nick
    echo -ag Away Message: $1-
  }
  else { echo -ag $nick is no longer away. } 
}


Quote:

<- :wat!wat@127.0.0.1 PRIVMSG #foo :mIRC RULES!
<- :wat!wat@127.0.0.1 AWAY :I AM AWAY!

Quote:

Nick: wat
Away Message: I AM AWAY!


Quote:

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


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: raw 301 [Re: KindOne] #264278 15/11/18 07:24 PM
Joined: Feb 2003
Posts: 2,650
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,650
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!
Re: raw 301 [Re: Raccoon] #264280 15/11/18 07:45 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
That's for scripting, what's wrong with $ial().awaymsg, just like $ial().away ?


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: raw 301 [Re: Wims] #264285 16/11/18 07:37 AM
Joined: Feb 2003
Posts: 2,650
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,650
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!