git » msnlib » commit e3cd6b7

Return nicks only if they don't contain spaces.

author Alberto Bertogli
2005-04-12 20:53:47 UTC
committer Alberto Bertogli
2005-04-12 20:53:47 UTC
parent 03973d4389e1fc0d363b11f621a3130cbb18d9ea

Return nicks only if they don't contain spaces.

msn +4 -1

diff --git a/msn b/msn
index ed99d3f..05b890b 100644
--- a/msn
+++ b/msn
@@ -408,7 +408,10 @@ def matchemail(begin, only_online = 0, start = 0):
 	if found:
 		if findemailnick(emails[pos], begin) == 1:
 			# return the nick
-			return email2nick(emails[pos])
+			nick = email2nick(emails[pos])
+			if ' ' in nick:
+				return emails[pos]
+			return nick
 		else:
 			return emails[pos]
 	else: