Jump to content

Recommended Posts

Posted

Change { "password", SEC_PLAYER, false, &ChatHandler::HandleAccountPasswordCommand, "", NULL },

to { "password", SEC_GAMEMASTER, false, &ChatHandler::HandleAccountPasswordCommand, "", NULL },

Posted

he is asking for slash command /pass to set password for channel as example, not gm command .password

its been long i dont work with mangos source and ive never have seen someone deal with with slash commands per acc access, so not sure and dont know if its possible, but my best guess would be channelhandler.cpp or chathandler.cpp, whatever file is named, good luck restricting client expected behavior

Posted

Then change

WorldSession::HandleChannelPasswordOpcode

WorldSession::HandleChannelSetOwnerOpcode

etc...

add this for example to each to prevent handling slash commands... (or send proper message to player that he has no priviledges to do it)

if (GetSecurity < SEC_MODERATOR)

return;

Posted

he is asking for slash command /pass to set password for channel as example, not gm command .password

Oh, sorry. I miss this. As pointed above in this case need change opcode handler code related to result of slahs command execute at client side.

All slash commands processed by client.

×
×
  • 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