Skip to content

Commit

Permalink
Fix RCONServerProtocol.try_authenticate() docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed May 11, 2023
1 parent 8639829 commit a5b26b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/berconpy/protocol/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ def send_message(self, message: str) -> ServerMessagePacket:
return ServerMessagePacket(sequence, message.encode())

def try_authenticate(self, password: bytes) -> ServerLoginPacket:
"""Returns the payload needed to authenticate with the server.
"""Attempts to authenticate the client with the given password.
:returns: The payload indicating if the client is authenticated.
:raises InvalidStateError:
This method can only be called during authentication.
Expand Down

0 comments on commit a5b26b1

Please sign in to comment.