mIRC Home    About    Download    Register    News    Help

Print Thread
#102314 07/11/04 05:56 PM
Joined: Feb 2004
Posts: 5
C
Cronus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Feb 2004
Posts: 5
why is it you can get a list of channels you are both on but there is no support for getting a complete list of channels somebody is on? it's just a simple case of parsing the results of a whois but that requires two scripts and gets in the way of modularity.

#102315 07/11/04 06:15 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Two reasons:

1) It's not instant. As you said, it would require getting a response from the server each and every time the identifier is called. Even what we could call an 'instant' reply would be extremely slow by scripting standards, and more often than not it would take upwards of a second - very noticeable lag in a scripting situation. It might not even return at all. All this makes the identifier very unreliable and potentially script-halting. Who's going to want to use if ($onchan(nick, channel)) { do stuff } if it might lock up mIRC for several seconds each time it's run? It makes far more sense to have a scripter handle the whois reply himself so that mIRC isn't locked while waiting for the reply.

2) It would only return the results of channels which are not set with modes to make them hidden from other users (ie. +s and +p). Again, unreliable.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#102316 07/11/04 09:44 PM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Sidenote:
+p shows in a whois, it just doesnt show in /list

#102317 08/11/04 12:08 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Depends on the IRCd. The server I happen to be on right now doesn't show either in whois results.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#102318 08/11/04 02:04 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
so whats the point in having both s and p? Just curious

#102319 08/11/04 07:07 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
As far as I am aware, on most IRCds it is the other way around than what you described. Neither +p or +s will show in /whois, however, +s is also hidden from /list where +p is not. Networks can differ though - Undernet does afaik. RFC 1459 doesn't seem to be specific though, perhaps why there's such variation today smile

Regards,


Mentality/Chris
#102320 08/11/04 08:25 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Sidenote: Mentality what is the avatar? and so lazy couldnt pull the url outta the google image search?


Link Copied to Clipboard