Browse Source

renamed EFriendRelationship's No to NONE

for consistency with the original definitions
pull/50/head
Rossen Georgiev 9 years ago
parent
commit
98f4642c34
  1. 2
      steam/client/builtins/friends.py
  2. 2
      steam/client/user.py
  3. 4
      steam/enums/common.py

2
steam/client/builtins/friends.py

@ -104,7 +104,7 @@ class SteamFriendlist(EventEmitter):
else:
oldrel, suser.relationship = suser.relationship, rel
if rel == EFriendRelationship.No:
if rel == EFriendRelationship.NONE:
self.emit(self.EVENT_FRIEND_REMOVED, self._fr.pop(steamid))
elif oldrel in (2,4) and rel == EFriendRelationship.Friend:
self.emit(self.EVENT_FRIEND_NEW, suser)

2
steam/client/user.py

@ -11,7 +11,7 @@ class SteamUser(object):
"""
_pstate = None
steam_id = SteamID()
relationship = EFriendRelationship.No #: friendship status
relationship = EFriendRelationship.NONE #: friendship status
def __init__(self, steam_id, steam):
self._pstate_ready = Event()

4
steam/enums/common.py

@ -256,7 +256,7 @@ class EOSType(SteamIntEnum):
class EFriendRelationship(SteamIntEnum):
No = 0
NONE = 0
Blocked = 1
RequestRecipient = 2
Friend = 3
@ -299,7 +299,7 @@ class EAccountFlags(SteamIntEnum):
GlobalModerator = 134217728
class EFriendFlags(SteamIntEnum):
No = 0
NONE = 0
Blocked = 1
FriendshipRequested = 2
Immediate = 4

Loading…
Cancel
Save