외교 메시지는 삭제 할 수 없도록

This commit is contained in:
2018-12-01 18:36:43 +09:00
parent 900f307847
commit 22bcef1310
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -275,6 +275,10 @@ class Message
return '본인의 메시지만 삭제할 수 있습니다.';
}
if($msgObj->msgType == Message::MSGTYPE_DIPLOMACY){
return '외교 메시지는 삭제할 수 없습니다.';
}
$prev5min = new \DateTime();
$prev5min->sub(new \DateInterval('PT5M'));