Think about the most practical order of conditions and parameters... if <nick> is always needed it's a lot easier to use it as 1st parameter smile
/aop <nick> ... will add nick to aop list of the current channel
/aop <nick> <chan> ...will nick add to aop list of the given channel
Code:
alias aop { 
  if ($2) { msg chanserv aop #$2 add $1 }
  elseif (($active ischan) && ($1)) { msg chanserv aop $active add $1 }
  else { echo -a aop: syntax is /aop <nick> or /aop <nick> <chan> }
}


Quote:
Furthermore, for /unban, just like /i I was hoping the IAL requirement could be removed so that they can be unbanned even if I do not share a channel with them.
This would be possible only if you provide the users full address (nick!identd@host.domain) within the command. Most bans ar no nick-bans, but the banlist has to be compared to a full address to succesfully remove ALL bans affecting that user.

Quote:
And now that I'm thinking about it, I wanna make sure that with the /i alias, that the channel that the nick should be invited to can either be supplied or not supplied, and if it's not supplied, the nick is invited to the channel the command was inputed on.
Imho it is doing that already smile