summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorSusu <bruant.bastien@gmail.com>2013-07-29 15:09:42 +0200
committerSusu <bruant.bastien@gmail.com>2013-07-29 15:09:42 +0200
commit9ac2cf7bc508248450ddd9f3eaca32cb6fe715a4 (patch)
treeaa2ba2e5eec4e8fae70c11c71545b7123504c395 /src/map/clif.c
parent4f441379e35619da60ddd94d44d3a5b5bb8a49b4 (diff)
downloadhercules-9ac2cf7bc508248450ddd9f3eaca32cb6fe715a4.tar.gz
hercules-9ac2cf7bc508248450ddd9f3eaca32cb6fe715a4.tar.bz2
hercules-9ac2cf7bc508248450ddd9f3eaca32cb6fe715a4.tar.xz
hercules-9ac2cf7bc508248450ddd9f3eaca32cb6fe715a4.zip
Added chat interface
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 718b98bc5..8377eed5c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8573,7 +8573,7 @@ void clif_refresh(struct map_session_data *sd)
iMap->foreachinrange(clif->getareachar,&sd->bl,AREA_SIZE,BL_ALL,sd);
clif->weather_check(sd);
if( sd->chatID )
- chat_leavechat(sd,0);
+ chat->leavechat(sd,0);
if( sd->state.vending )
clif->openvending(sd, sd->bl.id, sd->vending);
if( pc_issit(sd) )
@@ -10966,7 +10966,7 @@ void clif_parse_CreateChatRoom(int fd, struct map_session_data* sd)
safestrncpy(s_password, password, CHATROOM_PASS_SIZE);
safestrncpy(s_title, title, min(len+1,CHATROOM_TITLE_SIZE)); //NOTE: assumes that safestrncpy will not access the len+1'th byte
- chat_createpcchat(sd, s_title, s_password, limit, pub);
+ chat->createpcchat(sd, s_title, s_password, limit, pub);
}
@@ -10977,7 +10977,7 @@ void clif_parse_ChatAddMember(int fd, struct map_session_data* sd)
int chatid = RFIFOL(fd,2);
const char* password = (char*)RFIFOP(fd,6); // not zero-terminated
- chat_joinchat(sd,chatid,password);
+ chat->joinchat(sd,chatid,password);
}
@@ -11002,7 +11002,7 @@ void clif_parse_ChatRoomStatusChange(int fd, struct map_session_data* sd)
safestrncpy(s_password, password, CHATROOM_PASS_SIZE);
safestrncpy(s_title, title, min(len+1,CHATROOM_TITLE_SIZE)); //NOTE: assumes that safestrncpy will not access the len+1'th byte
- chat_changechatstatus(sd, s_title, s_password, limit, pub);
+ chat->changechatstatus(sd, s_title, s_password, limit, pub);
}
@@ -11013,7 +11013,7 @@ void clif_parse_ChatRoomStatusChange(int fd, struct map_session_data* sd)
/// 1 = normal
void clif_parse_ChangeChatOwner(int fd, struct map_session_data* sd)
{
- chat_changechatowner(sd,(char*)RFIFOP(fd,6));
+ chat->changechatowner(sd,(char*)RFIFOP(fd,6));
}
@@ -11021,7 +11021,7 @@ void clif_parse_ChangeChatOwner(int fd, struct map_session_data* sd)
/// 00e2 <name>.24B
void clif_parse_KickFromChat(int fd,struct map_session_data *sd)
{
- chat_kickchat(sd,(char*)RFIFOP(fd,2));
+ chat->kickchat(sd,(char*)RFIFOP(fd,2));
}
@@ -11029,7 +11029,7 @@ void clif_parse_KickFromChat(int fd,struct map_session_data *sd)
/// 00e3
void clif_parse_ChatLeave(int fd, struct map_session_data* sd)
{
- chat_leavechat(sd,0);
+ chat->leavechat(sd,0);
}