mIRC Home    About    Download    Register    News    Help

Topic Options
#51331 - 25/09/03 07:04 PM $away
NetVoiD Offline
Pikka bird

Registered: 02/04/03
Posts: 8
Loc: Canada
Try this:

Code:
/alias test away | away BlEh
//echo -a $away
/test
//echo -a $away


Now, this is what I saw in my status:


* Added 'test' alias
-
$false
-
You are no longer marked as being away
-
You have been marked as being away
-
$false


What about the second $false ? Isn't it supposed to return $true ? confused
I'm using mIRC v6.1..


Edited by NetVoiD (25/09/03 07:54 PM)
_________________________
NetVoiD @ Undernet
IRC isn't real life..

Top
#51332 - 25/09/03 07:09 PM Re: $away
r0ck0 Offline
Fjord artisan

Registered: 22/06/03
Posts: 242
Code:
//alias test away | away BlEh
//echo -a $away
/test
//echo -a $away


-
You have been marked as being away
-
$true
-
You are no longer marked as being away
-
$false
-
You have been marked as being away
-


Edited by r0ck0 (25/09/03 07:13 PM)

Top
#51333 - 25/09/03 07:14 PM Re: $away
NetVoiD Offline
Pikka bird

Registered: 02/04/03
Posts: 8
Loc: Canada
I think you missed the point that /alias here was used to create an alias that allowed me to put myself back and away rapidly, like this:


test {
 away
 away BlEh
}


or

test away | away BlEh

I don't see why I should use // instead of / to create this alias, the | was part of the alias I wished to create, not of the command I typed.
_________________________
NetVoiD @ Undernet
IRC isn't real life..

Top
#51334 - 25/09/03 07:20 PM Re: $away
r0ck0 Offline
Fjord artisan

Registered: 22/06/03
Posts: 242
Yes I did missunderstand
Maybe the second $away was evaluated in between the two commands due to a small amount of lag on the server.

/alias test away | away BlEh
//timer 1 1 echo -a $!away
//timer 1 2 test
//timer 1 3 echo -a $!away

* Added 'test' alias
-
* Timer 1 activated
-
* Timer 4 activated
-
* Timer 5 activated
-
$false
-
* Timer 1 halted
-
* Timer 4 halted
-
$true
-
* Timer 5 halted
-
You are no longer marked as being away
-
You have been marked as being away
-


Edited by r0ck0 (25/09/03 07:24 PM)

Top
#51335 - 25/09/03 07:24 PM Re: $away
NetVoiD Offline
Pikka bird

Registered: 02/04/03
Posts: 8
Loc: Canada
I don't think lag is part of the game here. I did //echo $away AFTER recieving the You have been marked as being away. And even if I do it more than once, I still get $false.. Even after 30 minutes.. *lol*
_________________________
NetVoiD @ Undernet
IRC isn't real life..

Top
#51336 - 25/09/03 07:27 PM Re: $away
r0ck0 Offline
Fjord artisan

Registered: 22/06/03
Posts: 242
Well I just tried your first one on a very small network with almost zero lag and with no timers and got this:

-
* Added 'test' alias
-
$false
$true
-
You are no longer marked as being away
-
You have been marked as being away
-

using these lines all pasted at once:

/alias test away | away BlEh
//echo -a $away
/test
//echo -a $away

I wonder if $away is set when the /away command is issued or the reply is received from the server .. seems like the former. If so it should be latter.


Edited by r0ck0 (25/09/03 07:51 PM)

Top
#51337 - 25/09/03 08:05 PM Re: $away
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
I can reproduce the bug. A //whois $me afterwards updates $away (makes it return $true), //who $me, however, does not.
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#51338 - 25/09/03 11:43 PM Re: $away
Skip Offline
Fjord artisan

Registered: 09/12/02
Posts: 349
Loc: Darwin, Australia
$away seems to completely ignore the 'You have been marked as away" and "You are no longer marked as being away" messages.

Code:
/away
(make sure we aren't away to begin with)

//away . | echo -a $away

//away | echo -a $away

//away . | away | echo -a $away



Clearly mIRC updates the status of $away instantly. I think mIRC may do this so as not to confuse various scripts setting away (ie: an 'autoaway on idle' script could flood the server with aways if it didn't receive a prompt reply from the server). You'll also find if your network has a server-side alias for away (like /A) that using this will not update mIRC.

(edit: eye speel funniey :P)


Edited by Skip (25/09/03 11:46 PM)

Top