fix le bug du pseudo moisi

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-01-27 21:58:02 +00:00
parent 5137f86445
commit 9d5d96c5b0
2 changed files with 3 additions and 2 deletions

View file

@ -85,7 +85,7 @@ class Room(object):
role = stanza.getRole() role = stanza.getRole()
if not self.joined: if not self.joined:
self.users.append(User(nick, affiliation, show, status, role)) self.users.append(User(nick, affiliation, show, status, role))
if nick.encode('utf-8') == self.own_nick.encode('utf-8'): if nick.encode('utf-8') == self.own_nick:
self.joined = True self.joined = True
return self.add_info("%s is in the room" % (nick)) return self.add_info("%s is in the room" % (nick))
change_nick = stanza.getStatusCode() == '303' change_nick = stanza.getStatusCode() == '303'

View file

@ -3,6 +3,7 @@ logfile = logs
resource = poezio resource = poezio
server = louiz.org server = louiz.org
port = 5222 port = 5222
rooms = discussion@kikoo.louiz.org/poetest rooms = discussion@kikoo.louiz.org/ウェブ登録サイト