mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Code:
timerjoin69 0 10 $iif($me !ison #UNLOBBY,join $v2,timerjoin69 off)


sometimes the timer will stop but MOST times the timer will not

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The $iif() is being evaluated when you set the timer so whether it stops or not is determined by whether you were in that channel at that time, not every ten seconds. To do that you need to prevent the $iif() from being evaluated like so:

Code:
timerjoin69 0 10 $!iif($me !ison #UNLOBBY,join $!v2,timerjoin69 off)


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Originally Posted By: starbucks_mafia
The $iif() is being evaluated when you set the timer so whether it stops or not is determined by whether you were in that channel at that time, not every ten seconds. To do that you need to prevent the $iif() from being evaluated like so:

Code:
timerjoin69 0 10 $!iif($me !ison #UNLOBBY,join $!v2,timerjoin69 off)


got this error with that

$IIF($ME Unknown command
-
$IIF($ME Unknown command
-
$IIF($ME Unknown command
-
$IIF($ME Unknown command

Last edited by McOwnage; 24/01/07 10:01 PM.
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Using $!escaped identifiers in timers can be confusing. Try this instead:

Code:
//timerjoin69 0 10 $($iif($me !ison #UNLOBBY,join $v2,timerjoin69 off),0)



-genius_at_work

Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Originally Posted By: genius_at_work
Using $!escaped identifiers in timers can be confusing. Try this instead:

Code:
//timerjoin69 0 10 $($iif($me !ison #UNLOBBY,join $v2,timerjoin69 off),0)



-genius_at_work


Same thing
$IIF($ME Unknown command
-
$IIF($ME Unknown command

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Personally, I like aliases in timers better than escaping everything anyhow.

Code:
.timerjoin69 0 10 JoinChan

alias JoinChan {
  $iif($me !ison #UNLOBBY,join $v2,timerjoin69 off)
}


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I agree with Riamus completely. When I first started working with timers I found lots of problems when it was anything more than a simple command. I create an alias as well.

Joined: Dec 2006
Posts: 80
Babel fish
Offline
Babel fish
Joined: Dec 2006
Posts: 80
Yes, try the alias.


Scripto ---- Life is about the relationships. The correct code being: $replace($them,$you,$me)
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
Originally Posted By: Riamus2
Personally, I like aliases in timers better than escaping everything anyhow.

Code:
.timerjoin69 0 10 JoinChan

alias JoinChan {
  $iif($me !ison #UNLOBBY,join $v2,timerjoin69 off)
}


Thanks that works GREAT


Link Copied to Clipboard