It's not a raw numeric then.
Just use on JOIN, on PART etc. and 'haltdef' the default output

You can use /debug @debug to see what server sends to you.

example:

Code:

on ^*:JOIN:#:{
  if ($nick != $me) {
    echo -t $chan $nick has joined $chan $+ !
    haltdef
  }
}