Originally Posted by Epic
Try using this code:
Code
alias addnick {
  if ($1) {
    var %nick $remove($1,*,!), %chars $remove($1,%nick)
    if ($left(%chars,1) == *) { echo -ag Return 1: $+(%nick,*!*@*) }
    elseif ($left(%chars,1) == !) { echo -ag Return 2: $+(%nick,!*@*) }
    else { echo -ag Return 3: $1 }
  }
}

I tested it and there's a problem.

If I want to add a vHost or a mask, for example:

/addnick *!*@127.1.1.1 -- Return 1: @127.1.1.1*!*@*

My code:
Returns: cs access #portugal add 1271.1.1.1*!*@* 3


TECO
irc.PTirc.org (Co-Admin)