Jump to content

What exactly is Channel ID 26 and why can it crash the server?


Recommended Posts

Posted

I'm currently trying to use "GetName()" in the Channel.cpp (Channel::Say). That actually works fine until the client automatically joins ID 26, then the whole server is crashing when it trys to read the name. Reading the ID only works fine. Is that maybe the LFG or Addon channel?

I try currently to add a server side check if a channel has a specific name OR if a channel is not one of the default ones (custom channel) and don't allow them to talk there.

If I see it correct then custom channels have always the ID 0?

Here an example:

else if(plr->getMap() == 530 && GetChannelId() == 0)
   {
       WorldPacket data;
       MakeMuted(&data);
       SendToOne(&data, p);
   }

Could I use this code without problems to disable the possibility to talk on custom channels in the Outland? (Just as an example)

I would also try to prevent the issue that someone sets a password on the world chat.

Thanks in advance for a answer!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use