I using this code to show away users in a channel:
alias awayscan {
set %awscan .
set %chan $1
if ($window(@aws)) { window -c @aws }
window -lCk0 @aws 50 50 700 376 Verdana 11
aline @aws Scanning for away users in %chan
aline @aws Away $+ $str($chr(160),2) $+ Address $+ $str($chr(160),33) $+ Nicks
if ($hget(awayscan)) { hfree awayscan }
hmake awayscan $nick(%chan,0)
.who %chan
}
raw 352:*: {
if (%awscan) {
haltdef
if (G isin $7) {
hadd awayscan $+($3,@,$4)
}
}
}
raw 315:*: {
haltdef
var %as = $hget(awayscan,0).item
while (%as) {
var %ad = $hget(awayscan,%as).item
aline @aws %as $str($chr(160),8) $+ $hget(awayscan,%as).item $+ $str($chr(160),$calc(32 - $len(%ad))) $+ $nick(%chan,%as)
dec %as
}
}
The line:
aline @aws Away $+ $str($chr(160),2) $+ Address $+ $str($chr(160),33) $+ Nicks
will ad like a menu in bold, and now i want to put the amount of away users below Away, hosts below hosts, and nick below nicks . The problem i have is that i cant get the nick part to line up as it should. any bether way to do this then to use $calc ?
Using the var %awscan as a way to halt the code, using raw 352 to more scripts then this one. And need to recive data in different ways depending on script.