Handle the case where "name" exists twice in the result string, like when connecting to a server with another user logged in.
Merge pull request #49 from corbanmailloux/master

Nice catch! Merging :)