Excuse me .. the first one works perfectly for me.
The second one was meant as an example for a new
isquery if-then-else operator suggested in
feature suggestions, so of course it won't work.
What was meant by
"type /help aliases" was this ..
Make an alias instead of trying to do it all in one line.
[color:green];Usage: This checks to see if $active is a channel.
;If $active is a channel, this performs action on $active
;If $active not a channel, this checks to see if $lactive
; is a channel, if $lactive is a channel & $active is a query,
; this performs action on $lactive[/color]
[color:red]; Syntax: /act <text>
;Example: /act is hungry[/color]
alias act {
if ($active ischan) var %tchan = $active
elseif (($query($active)) && ($lactive ischan)) var %tchan = $lactive
if (%tchan != $null) scid $activecid describe $1-
}
That was exactly what you asked for.
Or you could use the following ..
[color:green];Usage: This checks to see if $active is a channel.
;If $active is a channel, this performs action on $active
;If $active is not a channel, this checks to see if $lactive is a channel.
;If $lactive is a channel , this performs action on $lactive[/color]
[color:red]; Syntax: /act <text>
;Example: /act is hungry[/color]
alias act {
if ($active ischan) var %tchan = $active
elseif ($lactive ischan) var %tchan = $lactive
if (%tchan != $null) scid $activecid describe $1-
}
I personally would use the latter over the former.