mIRC Home    About    Download    Register    News    Help

Print Thread
#51331 25/09/03 06:04 PM
Joined: Apr 2003
Posts: 8
N
NetVoiD Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Apr 2003
Posts: 8
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..

Last edited by NetVoiD; 25/09/03 06:54 PM.

NetVoiD @ Undernet
IRC isn't real life..
#51332 25/09/03 06:09 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
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
-

Last edited by r0ck0; 25/09/03 06:13 PM.
#51333 25/09/03 06:14 PM
Joined: Apr 2003
Posts: 8
N
NetVoiD Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Apr 2003
Posts: 8
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..
#51334 25/09/03 06:20 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
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
-

Last edited by r0ck0; 25/09/03 06:24 PM.
#51335 25/09/03 06:24 PM
Joined: Apr 2003
Posts: 8
N
NetVoiD Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Apr 2003
Posts: 8
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..
#51336 25/09/03 06:27 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
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.

Last edited by r0ck0; 25/09/03 06:51 PM.
#51337 25/09/03 07:05 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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
#51338 25/09/03 10:43 PM
Joined: Dec 2002
Posts: 349
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
$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)

Last edited by Skip; 25/09/03 10:46 PM.

Link Copied to Clipboard