i've used this alias as the most simplistic way i can, for aligning and getting the mode prefix from myself and other nicks, when typing.
Code:
alias xnick1 {
var %a $iif($2,$2,$chan),%b $iif($1 !isreg %a,$left($nick(%a,$1).pnick,1)) $+ $1
return $str(ÿ,$calc(21 - $len(%b))) $+ $iif($1 !isreg %a,$+(00,$left(%b,1),06,$mid(%b,2,20)),$+(06,$mid(%b,1,21)))
}
thing is, now i want to extract the actualy mode prefix itself ie; the @ . ~ % & + or whatever, so i can move it over and seperate the nickname from the prefix for a theme idea i have, not sure how to extract just the mode though.. any ideas would be great.
Ok thanks, now i got that sorted, i ran into a snag. my theme is aligned looks something like
10:00am |~| Marantz: hi
trouble is, if the user has no mode it puts it out of line some how i need it to fill with a - or a ? just something that will keep it aligned when the user has no mode.
that's what i thought, but it won't ever be $null because it takes the $left so it will always choose the first letter of the nickname if the user has no mode lol
if ($left($nick(%a,$1).pnick,1) !isalnum) { use your theme here and use | $+ $chr(160) $+ | }
Which would check to see if the first digit is a letter and/or number Then if it's not, (which rules out MOST nicknames right there).................... try /help isnum (and the others listed there) for more ideas