mIRC Home    About    Download    Register    News    Help

Print Thread
away, problem to show reason #82995 14/05/04 09:04 PM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
hello, i dont know what's wrong with this code, but not show reason when i leave room"away" when i turn back i see reason but when i leave not. any idea

thanks in advance.

menu channel {
-
$iif($away,$style(1)) Away
.$iif($away,Set Back,Set Away):{ if ($away) { ame is back from:  $+ $awaymsg $+ . I was gone for:  $+ $duration($awaytime) $+  | away } | else { away $$input(Enter reason,129,Set Away) | ame is leaving. reason:  $+ $awaymsg $+  } }
}

Re: away, problem to show reason #82996 14/05/04 09:32 PM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
Code:
menu channel {
  -
  $iif($away,$style(1)) Away
  .$iif($away,Set Back,Set Away):{ if ($away) { ame is back from:  $+ $awaymsg $+ . I was gone for:  $+ $duration($awaytime) $+  | away } | else { away $$input(Enter reason,129,Set Away) | .timer 1 0  ame is leaving. Reason: $!(,$!awaymsg,) } }
}

Try that.

Re: away, problem to show reason #82997 14/05/04 10:27 PM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
not work frown

Re: away, problem to show reason #82998 14/05/04 11:29 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
.Set $iif($away,Back,Away):if ($away) { ame is back from: $+(,$awaymsg,. I was gone for: ,$duration($awaytime),) | away } | else { away $$input(Enter reason,129,Set Away) | ame is leaving. reason: $+(,[color:red]$![/color],) }

Re: away, problem to show reason #82999 15/05/04 12:12 AM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
$me is leaving. reason: Iori rocks

well done Iori work now, thanks man

Re: away, problem to show reason #83000 15/05/04 12:15 AM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
When I tried that snippet that I pasted for you to try, it worked for me.

And you have to make sure to include the ! marks where I placed them.

Re: away, problem to show reason #83001 15/05/04 05:52 AM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
wolfire, maybe.
thanks for your effort, appreciated much