Fixed spaces

master
haddaway 2012-10-20 21:49:19 -07:00
parent 16c2f0499f
commit 0db444ac72
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class ToorChatMessage():
self.xid = self.get_random_xid() self.xid = self.get_random_xid()
if user != None: if user != None:
self.user = user self.user = user
if len(self.user) < USER_NAME_SIZE:
self.user = self.user + " "* (USER_NAME_SIZE-len(self.user))
else: else:
self.user = "anonymous" self.user = "anonymous"
self.data = message self.data = message