mIRC Home    About    Download    Register    News    Help

Print Thread
$nick().realname #172929 18/03/07 08:58 AM
Joined: Aug 2006
Posts: 60
S
Shining_Phoenix Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
$nick().realname would return the real name of the chosen nick, which can be found from raw numerics 311 and 352 iirc.

Re: $nick().realname [Re: Shining_Phoenix] #172935 18/03/07 11:00 AM
Joined: Oct 2006
Posts: 166
B
b1ink Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
I really wanted to get the ial auto updated whenever I join a channel or even someone joins. also add several identifiers such as the one you mentioned instead of using raw events all the times to just get the info from someone (i.e. $nick($nick).chans which will return every channels he's on.)


Kind Regards, blink
Re: $nick().realname [Re: b1ink] #172949 18/03/07 03:18 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Originally Posted By: b1ink
I really wanted to get the ial auto updated whenever I join a channel or even someone joins.


Invision used to do that by default. The problem occurs on really large channels, where you can experience a lot of lag when joining while the IAL is updated. Channels with 300+ people can become troublesome in that situation, which is why Invision has it optional now. Of course, it could just be how Invision did it as I've never looked into it. In either case, I think if mIRC added that, it should be optional unless it can do it without lag when channels are really large (1000+).


Invision Support
#Invision on irc.irchighway.net
Re: $nick().realname [Re: Shining_Phoenix] #172961 18/03/07 05:17 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
The problems with implementing such properties are:

1. the attributes they return are not provided by the server automatically when you join a channel or when a new user joins a channel you're on (the client needs to ask the server that info)
2. when those attributes change, the client is not notified automatically

#1 complicates things as discussed before, ie the client has to /whois each nick already in the channel as well as new nicks that join, which is an obvious problem on large channels. Alternatively, mirc could skip those /whois's and ask the server for that info when it actually needs it. This however causes the problem described later.

#2 means that at any given time your script uses $nick().realname, it cannot be sure that the result will be accurate; the user may have changed that information without you (mirc) being notified. For example, if $nick().chans (mentioned before) were to be accurate at all times, mirc would have to /whois the specified nick behind the scenes and *pause* the script until it gets a reply. This is simply not a viable option under the current architecture of mirc. For $nick().realname, the situation is a little better, as once the information is retrieved, it is guaranteed not to change as long as that user stays on the channel.

Conclusion: $nick() can only support those properties that are readily (ie locally) available and guaranteed to be accurate at all times.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: $nick().realname [Re: Riamus2] #172962 18/03/07 06:34 PM
Joined: Oct 2006
Posts: 166
B
b1ink Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
thanks for your replay. I agree to make it optional also has a maximum limit to trigger below that.


Kind Regards, blink
Re: $nick().realname [Re: b1ink] #172969 18/03/07 09:16 PM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Well... technically for real large channels you could do something like

/who <chan> a*
/who <chan> b*
/who <chan> 0*
/who <chan> [*
etc...

Of course you would need to wait a couple of seconds between each /who sent...


Beware of MeStinkBAD! He knows more than he actually does!
Re: $nick().realname [Re: qwerty] #172997 19/03/07 09:53 AM
Joined: Aug 2006
Posts: 60
S
Shining_Phoenix Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
Excepting IRCops, users cannot change their realname while connected. So you only need to /who(is) users when you first see them.

Re: $nick().realname [Re: Shining_Phoenix] #173002 19/03/07 01:24 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Originally Posted By: qwerty
For $nick().realname, the situation is a little better, as once the information is retrieved, it is guaranteed not to change as long as that user stays on the channel.


smile


Invision Support
#Invision on irc.irchighway.net
Re: $nick().realname [Re: Riamus2] #173012 19/03/07 02:55 PM
Joined: Mar 2006
Posts: 393
T
The_JD Offline
Fjord artisan
Offline
Fjord artisan
T
Joined: Mar 2006
Posts: 393
I agree with the realname thing, not the chans though
I've always wondered why realname isnt included in $address.

It is as likely to change as your ident (VERY unlikely)
Also, just as with an ident, you need to /who a room *or whois etc* to get it
Technically, With the exception of when a user joins a channel, it would be just as easy to get the realname as the ident.

I think this is a great idea, and could easily return $null if UNKNOWN.
(Just like $ial when mIRC isnt sure of the info)


[02:16] * Titanic has quit IRC (Excess Flood)
Re: $nick().realname [Re: Shining_Phoenix] #173016 19/03/07 04:17 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
As Riamus2 pointed out, I did say that about .realname but that paragraph was a bit misleading perhaps; its first sentence should read
"#2 means that at any given time your script uses $nick().someproperty,"
instead of
"#2 means that at any given time your script uses $nick().realname,"
as I was talking in general there.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: $nick().realname [Re: The_JD] #173143 21/03/07 07:13 AM
Joined: Jul 2003
Posts: 655
Om3n Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Some network services allow an ident@host style of vhost, on such networks its quite common for an ident to change. Just a note that on some networks its just as likely for an ident to change without notice, as a mask.

To the user that suggested doing a bunch /who # a* etc, that seems rather inefficient and ultimately a bad idea to me. It would then need to send 40+ individual /who requests, for each channel. A single /who # and dealing with the lag all at once would be better than joining several large channels, and issuing all those seperate /who requests for each channel and experience extended lag issues (pausing and unpausing everytime it recieves a result set).


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Re: $nick().realname [Re: Om3n] #173147 21/03/07 10:28 AM
Joined: Aug 2006
Posts: 60
S
Shining_Phoenix Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
Originally Posted By: Om3n
Some network services allow an ident@host style of vhost, on such networks its quite common for an ident to change.

One the one network I see that used, the server sends a part and a join whenever ident or host is changed.
Quote:
To the user that suggested doing a bunch /who # a* etc, that seems rather inefficient and ultimately a bad idea to me. It would then need to send 40+ individual /who requests, for each channel. A single /who # and dealing with the lag all at once would be better than joining several large channels, and issuing all those seperate /who requests for each channel and experience extended lag issues (pausing and unpausing everytime it recieves a result set).

Let the scripters deal with that.

PS: It would be nice if someone split this thread smile