diff options
author | Haruna <haru@dotalux.com> | 2014-01-16 17:21:39 -0800 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-01-16 17:21:39 -0800 |
commit | e9affc57d6a03e0cc860f8364c8a349e22906b4a (patch) | |
tree | cc85d2c1109ce7385bee4c211af5027ae591ebab /src/map/chat.h | |
parent | 4874a3cf8b107457b703d0ece8d5102b08ef7702 (diff) | |
parent | 0267cad28133b4c245f1cf100a24ab8a14cf2a73 (diff) | |
download | hercules-e9affc57d6a03e0cc860f8364c8a349e22906b4a.tar.gz hercules-e9affc57d6a03e0cc860f8364c8a349e22906b4a.tar.bz2 hercules-e9affc57d6a03e0cc860f8364c8a349e22906b4a.tar.xz hercules-e9affc57d6a03e0cc860f8364c8a349e22906b4a.zip |
Merge pull request #251 from panikon/master
Function types behaviour
Diffstat (limited to 'src/map/chat.h')
-rw-r--r-- | src/map/chat.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/map/chat.h b/src/map/chat.h index 695e59b6e..fcbadf008 100644 --- a/src/map/chat.h +++ b/src/map/chat.h @@ -36,18 +36,18 @@ struct chat_data { struct chat_interface { /* funcs */ - int (*create_pc_chat) (struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); - int (*join) (struct map_session_data* sd, int chatid, const char* pass); + bool (*create_pc_chat) (struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); + bool (*join) (struct map_session_data* sd, int chatid, const char* pass); int (*leave) (struct map_session_data* sd, bool kicked); - int (*change_owner) (struct map_session_data* sd, const char* nextownername); - int (*change_status) (struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); - int (*kick) (struct map_session_data* sd, const char* kickusername); - int (*create_npc_chat) (struct npc_data* nd, const char* title, int limit, bool pub, int trigger, const char* ev, int zeny, int minLvl, int maxLvl); - int (*delete_npc_chat) (struct npc_data* nd); - int (*enable_event) (struct chat_data* cd); - int (*disable_event) (struct chat_data* cd); - int (*npc_kick_all) (struct chat_data* cd); - int (*trigger_event) (struct chat_data *cd); + bool (*change_owner) (struct map_session_data* sd, const char* nextownername); + bool (*change_status) (struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); + bool (*kick) (struct map_session_data* sd, const char* kickusername); + bool (*create_npc_chat) (struct npc_data* nd, const char* title, int limit, bool pub, int trigger, const char* ev, int zeny, int minLvl, int maxLvl); + bool (*delete_npc_chat) (struct npc_data* nd); + bool (*enable_event) (struct chat_data* cd); + bool (*disable_event) (struct chat_data* cd); + bool (*npc_kick_all) (struct chat_data* cd); + bool (*trigger_event) (struct chat_data *cd); struct chat_data* (*create) (struct block_list* bl, const char* title, const char* pass, int limit, bool pub, int trigger, const char* ev, int zeny, int minLvl, int maxLvl); }; |