Add dummy handlers for standing still, sit on chair and an unknown command.

This commit is contained in:
Loïc Hoguin 2010-05-17 04:56:02 +02:00
parent 317043d66e
commit 03a4dfbe98

View File

@ -379,6 +379,16 @@ handle(16#0503, _, GID, _, Packet) ->
egs_db:users_insert(NewUser), egs_db:users_insert(NewUser),
lists:foreach(fun(X) -> X#users.pid ! {psu_broadcast_0503, Data} end, egs_db:users_select_others(GID)); lists:foreach(fun(X) -> X#users.pid ! {psu_broadcast_0503, Data} end, egs_db:users_select_others(GID));
%% @todo Unknown handler. Do nothing for now.
handle(16#050f, _, _, _, _) ->
ignore;
%% @doc Stand still handler. Do nothing.
handle(16#0514, _, _, _, _) ->
ignore;
%% @doc Lobby change handler. %% @doc Lobby change handler.
handle(16#0807, CSocket, GID, _, Packet) -> handle(16#0807, CSocket, GID, _, Packet) ->
@ -394,6 +404,11 @@ handle(16#0d07, _, GID, _, Packet) ->
User = egs_db:users_select(GID), User = egs_db:users_select(GID),
file:write_file(io_lib:format("save/~s/~b-character.options", [User#users.folder, User#users.charnumber]), Options); file:write_file(io_lib:format("save/~s/~b-character.options", [User#users.folder, User#users.charnumber]), Options);
%% @doc Sit on chair? handler. Do nothing for now.
handle(16#0f0a, _, GID, _, _) ->
log(GID, "sit on chair");
%% @doc Unknown command handler. Do nothing. %% @doc Unknown command handler. Do nothing.
handle(Command, _, GID, _, _) -> handle(Command, _, GID, _, _) ->