def __init__(self,presence_or_user_or_jid):
if isinstance(presence_or_user_or_jid,MucRoomUser):<EOL><INDENT>self.presence=presence_or_user_or_jid.presence<EOL>self.role=presence_or_user_or_jid.role<EOL>self.affiliation=presence_or_user_or_jid.affiliation<EOL>self.room_jid=presence_or_user_or_jid.room_jid<EOL>self.real_jid=presence_or_user_or_jid.real_jid<EOL>self.nick=presence_or_user_or_jid.nick<EOL>self.new_nick=None<EOL><DEDENT>else:<EOL><INDENT>self.affiliation="<STR_LIT:none>"<EOL>self.presence=None<EOL>self.real_jid=None<EOL>self.new_nick=None<EOL>if isinstance(presence_or_user_or_jid,JID):<EOL><INDENT>self.nick=presence_or_user_or_jid.resource<EOL>self.room_jid=presence_or_user_or_jid<EOL>self.role="<STR_LIT:none>"<EOL><DEDENT>elif isinstance(presence_or_user_or_jid,Presence):<EOL><INDENT>self.nick=None<EOL>self.room_jid=None<EOL>self.role="<STR_LIT>"<EOL>self.update_presence(presence_or_user_or_jid)<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT><DEDENT>
Initialize a `MucRoomUser` object.

:Parameters:
    - `presence_or_user_or_jid`: a MUC presence stanza with user
      information, a user object to copy or a room JID of a user.
:Types:
    - `presence_or_user_or_jid`: `MucPresence` or `MucRoomUser` or
      `JID`

When `presence_or_user_or_jid` is a JID user's
role and affiliation are set to "none".