#NEWLINE# def __init__( self , rooms , nick , backend ) : #NEWLINE# #INDENT# super ( MucBot , self ) . __init__ ( ) #NEWLINE# self . log = logging . getLogger ( '{0}.{1}' . format ( self . __class__ . __module__ , self . __class__ . __name__ ) ) #NEWLINE# self . backend = backend #NEWLINE# self . raw_rooms = ( rooms or [ ] ) #NEWLINE# self . room_jids = [ ] #NEWLINE# self . nick = nick #NEWLINE# for room in self . raw_rooms : #NEWLINE# #INDENT# password = None #NEWLINE# if ( type ( room ) is tuple ) : #NEWLINE# #INDENT# if ( len ( room ) > 1 ) : #NEWLINE# #INDENT# ( room , password ) = room #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# room = room [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# self . room_jids . append ( ( jid . internJID ( room ) , password ) )