For one thing, 'var' is a local variable that can't be seen by an alias you call. For another thing, you aren't even calling the alias. Not having tested this to see if $16 really is what you want, here's more like what it should be. In case not every message from memoserv is a message containing a memo number, you want to at least check if $16 is a number. You also may not want to read multiple memos all at the same time. Also, the way you use 'isin' means that this will respond to nicks like emo mos ser etc., but here goes:



Code
on *:NOTICE:*:?: {
if ( ($nick == memoserv) && ($16 isnum 1-)) { memoser $16 }
}

alias memoser {
/msg memoserv read $1
}