egs_login: Use pattern matching for system_client_version_info.
This commit is contained in:
parent
b6c1bf277d
commit
998263b417
@ -45,14 +45,15 @@ raw(Command, _Data, _Client) ->
|
|||||||
|
|
||||||
%% @doc Reject version < 2.0009.2.
|
%% @doc Reject version < 2.0009.2.
|
||||||
%% @todo Reject wrong platforms too.
|
%% @todo Reject wrong platforms too.
|
||||||
event({system_client_version_info, _Entrance, _Language, _Platform, Version}, Client=#client{socket=Socket}) ->
|
event({system_client_version_info, _Entrance, _Language, _Platform, Version}, Client=#client{socket=Socket})
|
||||||
if Version >= 2009002 -> ignore; true ->
|
when Version < 2009002 ->
|
||||||
psu_proto:send_0231("http://psumods.co.uk/forums/comments.php?DiscussionID=40#Item_1", Client),
|
psu_proto:send_0231("http://psumods.co.uk/forums/comments.php?DiscussionID=40#Item_1", Client),
|
||||||
{ok, ErrorMsg} = file:read_file("priv/login/error_version.txt"),
|
{ok, ErrorMsg} = file:read_file("priv/login/error_version.txt"),
|
||||||
psu_proto:send_0223(ErrorMsg, Client),
|
psu_proto:send_0223(ErrorMsg, Client),
|
||||||
ssl:close(Socket),
|
ssl:close(Socket),
|
||||||
closed
|
closed;
|
||||||
end;
|
event({system_client_version_info, _Entrance, _Language, _Platform, _Version}, _Client) ->
|
||||||
|
ok;
|
||||||
|
|
||||||
%% @doc Game server info request handler.
|
%% @doc Game server info request handler.
|
||||||
event(system_game_server_request, Client=#client{socket=Socket}) ->
|
event(system_game_server_request, Client=#client{socket=Socket}) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user