diff options
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 3ae0cea..7d9ed13 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -589,6 +589,13 @@ class PresenceProperties: StatusCode.SELF in self.muc_status_codes) @property + def is_nickname_modified(self): + return (self.from_muc and + self.muc_status_codes is not None and + StatusCode.NICKNAME_MODIFIED in self.muc_status_codes and + self.type == PresenceType.AVAILABLE) + + @property def is_nickname_changed(self): return (self.from_muc and self.muc_status_codes is not None and |