azerothcore/mod-eluna

PLAYER_EVENT_ON_CHANNEL_CHAT channel argument invalid

Closed this issue · 1 comments

When using PLAYER_EVENT_ON_CHANNEL_CHAT event(ID: 22) it has the following arguments:
(event, player, msg, Type, lang, channel)

The channel argument/variable is always 0 instead of the real channel ID that is stored in the db.
Not sure if this should be channel name, or ID. I think ID makes more sense as there can be multiple channels with the same name.

Good catch! Thanks for the report.

Push(pChannel->GetChannelId());

It seems like a core issue to me, cause the id is requested by mod-Eluna.