Changeset 162:8bffd58d7b6d for wokkel/muc.py
- Timestamp:
- Jan 8, 2012, 9:26:06 AM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/muc.py
r161 r162 1134 1134 @type nick: C{unicode} 1135 1135 1136 @ivar state: The status code of the room.1137 @type state: L{int}1138 1139 1136 @ivar occupantJID: The JID of the occupant in the room. Generated from 1140 1137 roomJID and nick. 1141 1138 @type occupantJID: L{jid.JID} 1142 """ 1143 1144 1145 def __init__(self, roomJID, nick, state=None): 1139 1140 @ivar locked: Flag signalling a locked room. A locked room first needs 1141 to be configured before it can be used. See 1142 L{MUCClientProtocol.getConfiguration} and 1143 L{MUCClientProtocol.configure}. 1144 @type locked: C{bool} 1145 """ 1146 1147 locked = False 1148 1149 def __init__(self, roomJID, nick): 1146 1150 """ 1147 1151 Initialize the room. … … 1149 1153 self.roomJID = roomJID 1150 1154 self.setNick(nick) 1151 self.state = state1152 1153 self.status = 01154 1155 1155 self.roster = {} 1156 1156 … … 1456 1456 We have presence that says we joined a room. 1457 1457 """ 1458 room.state = 'joined' 1458 if STATUS_CODE.ROOM_CREATED in presence.mucStatuses: 1459 room.locked = True 1460 1459 1461 return room 1460 1462 … … 1463 1465 return failure 1464 1466 1465 room = Room(roomJID, nick , state='joining')1467 room = Room(roomJID, nick) 1466 1468 self._addRoom(room) 1467 1469
Note: See TracChangeset
for help on using the changeset viewer.