works but doesnt return
Posted by w.e
Friday, April 22, 2005
Description: works but doesnt return

alias auth {
  set %whois 3
  unset %authname
  whois $1
  return %authname
}
raw 330:*: {
  if (%whois == 3) {
    set %authname $3
    unset %whois
  }
}

works but doesnt return
Subject line
Posted by Someone
Tuesday, June 21, 2005 03:13pm PDT
i doubt this is still actual... but you cant return %authname in the alias since it hasnt got any value yet there...
you could do it instead like that

alias auth {
  set %whois 3
  unset %authname
  whois $1
}
raw 330:*: {
  if (%whois == 3) {
    set %authname $3
    unset %whois
  }
}

and then just continue using %authname...
because as you wrote it, it will at first whois $1 and then return %authname where %authname has no value yet...
not sure if this was comprehensible...
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world