Refactor send chat logic

This commit is contained in:
2025-01-01 21:57:24 +01:00
parent 45e756fcd3
commit e61aeed691
2 changed files with 6 additions and 10 deletions

View File

@ -32,7 +32,7 @@ export default class ChatMessageEvent extends BaseEvent {
return callback(false)
}
if (await ChatService.sendZoneMessage(this.io, this.socket, data.message, character.id, zone.id)) {
if (await ChatService.sendZoneMessage(character.id, zone.id, data.message)) {
return callback(true)
}