diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-16 14:14:11 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-16 14:14:11 +0000 |
commit | 3c73a02748ca50a32005a5b73933a582cd87b80f (patch) | |
tree | 9c35effdea7e3bf0a2a944957b7c2e489ba68f34 /src/map/chat.h | |
parent | ccc18ecfe671803c6d6b9b6dd790c45cdf28c9ac (diff) | |
download | hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.gz hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.bz2 hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.tar.xz hercules-3c73a02748ca50a32005a5b73933a582cd87b80f.zip |
* Fixed npc chatrooms not being deleted on npc unload/reload (crash)
* Modified chat code a bit for more clarity
- replaced double-indirection on 'owner' with a normal pointer
- separated some common functionality to 'chat_createchat()'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11023 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chat.h')
-rw-r--r-- | src/map/chat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/chat.h b/src/map/chat.h index e6a0c819e..aac356584 100644 --- a/src/map/chat.h +++ b/src/map/chat.h @@ -8,14 +8,14 @@ struct map_session_data; struct chat_data; -int chat_createchat(struct map_session_data* sd, int limit, bool pub, char* pass, char* title, int titlelen); -int chat_joinchat(struct map_session_data* sd, int chatid, char* pass); +int chat_createpcchat(struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); +int chat_joinchat(struct map_session_data* sd, int chatid, const char* pass); int chat_leavechat(struct map_session_data* sd); -int chat_changechatowner(struct map_session_data* sd, char* nextownername); -int chat_changechatstatus(struct map_session_data* sd, char* title, char* pass, int limit, bool pub); -int chat_kickchat(struct map_session_data* sd, char* kickusername); +int chat_changechatowner(struct map_session_data* sd, const char* nextownername); +int chat_changechatstatus(struct map_session_data* sd, const char* title, const char* pass, int limit, bool pub); +int chat_kickchat(struct map_session_data* sd, const char* kickusername); -int chat_createnpcchat(struct npc_data* nd, int limit, bool pub, int trigger, const char* title, const char* ev); +int chat_createnpcchat(struct npc_data* nd, const char* title, int limit, bool pub, int trigger, const char* ev); int chat_deletenpcchat(struct npc_data* nd); int chat_enableevent(struct chat_data* cd); int chat_disableevent(struct chat_data* cd); |