mIRC Home    About    Download    Register    News    Help

Topic Options
#171425 - 24/02/07 08:33 AM RAW 352 anomaly
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
This is weird. Im using who $nick with raw 352 to check someones usertag ($9-) to say whether they are a script or a browser.

Raw 352, $2 == $chan
So lets say I /who $nick in $chan(3)

My problem is most nicknames return $chan(3) for $2, but some of these are returning $chan(1). So it appeared at first that if the nick was also in $chan(1) it returned $chan(1), but there are some nicks that are in $chan(1) and raw 352 returns the correct channel. ($chan(3)) Do I make sense? THIS DOESN'T!! :p

I use $2 to message the channel they are in.
on join:/who $nick
raw 352:if (its not webchat) msg $2 $6 is a script!

I know I can set a variable on join to save the channel name to work around it, but I want to know why this is doing this!

Any ideas?

Top
#171451 - 24/02/07 01:37 PM Re: RAW 352 anomaly [Re: DJ_Sol]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
/who isn't channel-specific. mIRC looks at your open channels and labels them based on the order you joined them. The /who (most likely) lists the channels a user is in based on the order they joined the channels. Obviously, these won't always be the same thing. So when you use /who, the $2 is probably the first channel the user joined, which isn't necessarily your $chan(1).

As a disclaimer, I don't really know the answer. This is all speculation, but I wouldn't be surprised if I was correct. smile
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#171453 - 24/02/07 02:21 PM Re: RAW 352 anomaly [Re: Riamus2]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
I regret to inform you that your suggestion doesn't match up with the information located here

It states
Quote:
If the user is on multiple channels, only one will be returned. If the WHO was performed on a channel, this will always be the channel that was requested.


Unfortunately this doesn't help understand why the original poster is obtaining the results he is.

Top
#171454 - 24/02/07 02:50 PM Re: RAW 352 anomaly [Re: RusselB]
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
The OP isn't performing the /who on a channel, he's performing it on the nick, so that doesn't apply.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#171461 - 24/02/07 05:18 PM Re: RAW 352 anomaly [Re: DJ_Sol]
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
I believe the previous posters are correct. If you /who #channel1, the response will always show each nick as being on #channel1. However, if you /who Nick, the IRC server will return the first channel that the user joined on that server.

Even though you are typing /who Nick in a channel window, the IRC server has no idea which window you are typing in. The command sent to the server (/who nick) doesn't reflect the channel name in any way.

-genius_at_work

Top
#171478 - 24/02/07 07:19 PM Re: RAW 352 anomaly [Re: genius_at_work]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Originally Posted By: genius_at_work
Even though you are typing /who Nick in a channel window, the IRC server has no idea which window you are typing in. The command sent to the server (/who nick) doesn't reflect the channel name in any way.


Exactly. smile
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#171481 - 24/02/07 08:33 PM Re: RAW 352 anomaly [Re: Riamus2]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
Ok Thanks!! I learned something new!! I will just set the channel as a variable on join. laugh

Top