Ignore:
Timestamp:
Jan 8, 2012, 9:26:03 AM (10 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Allow empty MUC configuration forms to be sent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/muc.py

    r160 r161  
    104104            # This is a request for the configuration form.
    105105            form = None
    106         elif not self.options:
     106        elif self.options is False:
    107107            form = data_form.Form(formType='cancel')
    108108        else:
     
    757757        @type options: C{dict}
    758758        """
     759        if options is None:
     760            options = False
    759761        request = RegisterRequest(recipient=roomJID, options=options)
    760762        return self.request(request)
     
    838840        @type roomJID: L{jid.JID}
    839841
    840         @param options: A mapping of field names to values, or C{None} to cancel.
     842        @param options: A mapping of field names to values, or C{None} to
     843            cancel.
    841844        @type options: C{dict}
    842845        """
    843         if not options:
     846        if options is None:
    844847            options = False
    845848        request = ConfigureRequest(recipient=roomJID, options=options)
Note: See TracChangeset for help on using the changeset viewer.