Match only non-whitespace characters as team or member names

Hi
It's a small fix to match only non-whitespace characters, it's quite annoying when using tab completion as many (most?) IRC clients add a space that's also part of the match.