setaway {
set %aw1 $chr(124)
if ( %aw1 isin $me ) then { aecho 7 %aw1 is in $me }
else {
aecho 7 %aw1 is not in $me
set %awon ON
set %awold $me
nick $me $+ $chr(124) $+ AutoAway
}
}
It doesn't say the helpfile to use "then", so don't.
Code:
setaway {
set %aw1 $chr(124)
if ( %aw1 isin $me ) { aecho 7 %aw1 is in $me }
else {
aecho 7 %aw1 is not in $me
set %awon ON
set %awold $me
nick $me $+ $chr(124) $+ AutoAway
}
}