Handle NAMREPLY with trailing whitespace

UnrealIRC sends trailing spaces with its NAMREPLY, which leads to empty nicks
being generated.
Trim the last parameter except for PRIVMSG and NOTICE

Just to be sure that we won't encounter any more side-effects with
ircds sending random trailing whitespace, let's trim the last parameter
except for PRIVMSG and NOTICE.