text 不能邀请自己

This commit is contained in:
aozhiwei 2020-12-24 11:22:12 +08:00
parent e94e898672
commit f12ec0c353

View File

@ -248,7 +248,7 @@ void Player::_CMFriendApply(f8::MsgHdr& hdr, const cs::CMFriendApply& msg)
} }
if (msg.friend_id() == AccountId()) { if (msg.friend_id() == AccountId()) {
respmsg.set_errcode(2); respmsg.set_errcode(2);
respmsg.set_errmsg("不能邀请自己"); respmsg.set_errmsg(TEXT("cant_invite_self", "不能邀请自己"));
SendMsg(respmsg); SendMsg(respmsg);
return; return;
} }