1
This commit is contained in:
parent
e5c90e2642
commit
f3c59b8a94
@ -138,6 +138,18 @@ void Guild::_CMGuildAgree(f8::MsgHdr& hdr, const cs::CMGuildAgree& msg)
|
||||
ss::SS_IM_ForwardGuildCMMsg *forward_msg = (ss::SS_IM_ForwardGuildCMMsg*)hdr.user_data;
|
||||
|
||||
cs::SMGuildAgree respmsg;
|
||||
if (GetMember(forward_msg->context().user_info().base_data().account_id())) {
|
||||
GuildMgr::Instance()->ForwardGuildSMMsg(hdr.socket_handle,
|
||||
forward_msg->context(),
|
||||
respmsg);
|
||||
DBHelper::Instance()->SetGuildApplyStatus
|
||||
(
|
||||
msg.apply().base_data().account_id(),
|
||||
guild_id,
|
||||
1
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (IsFull()) {
|
||||
respmsg.set_errcode(1);
|
||||
respmsg.set_errmsg("公会人数已达上限");
|
||||
|
Loading…
x
Reference in New Issue
Block a user