Skip to content

Commit

Permalink
Improve lobby restrictions (#303)
Browse files Browse the repository at this point in the history
* Cleanup code

* Fix warnings

* Fix min rating

* Minor updates

* Fixed issues based on review

* Updated specs

* Fix dialyzer

* Changes based on Perfi review

* Update based on Lexon review

* Cleanup code

* Fix warnings

* Fix min rating

* Minor updates

* Fixed issues based on review

* Updated specs

* Fix dialyzer

* Changes based on Perfi review

* Update based on Lexon review

* Run mix format

* Call Lexon's function to determine game type

* Remove unused alias
  • Loading branch information
jauggy authored Jun 10, 2024
1 parent be169e6 commit e6e2881
Show file tree
Hide file tree
Showing 9 changed files with 648 additions and 273 deletions.
2 changes: 1 addition & 1 deletion lib/teiserver/battle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ defmodule Teiserver.Battle do
@spec update_lobby(T.lobby(), nil | atom, any) :: T.lobby()
defdelegate update_lobby(lobby, data, reason), to: LobbyLib

@spec rename_lobby(T.lobby_id(), String.t(), T.userid()) :: :ok | nil
@spec rename_lobby(T.lobby_id(), String.t(), T.userid() | nil) :: :ok | nil
defdelegate rename_lobby(lobby_id, new_base_name, renamer_id), to: LobbyLib

# Requests
Expand Down
Loading

0 comments on commit e6e2881

Please sign in to comment.