mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix potential crash in ucs/clientlist.cpp
This commit is contained in:
parent
35c1eccbe1
commit
fd1e425abc
@ -1985,7 +1985,7 @@ void Client::ChannelGrantVoice(std::string CommandString) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(RequiredChannel->IsOwner(RequiredClient->GetName()) || RequiredChannel->IsModerator(RequiredClient->GetName())) {
|
||||
if(RequiredClient && (RequiredChannel->IsOwner(RequiredClient->GetName()) || RequiredChannel->IsModerator(RequiredClient->GetName()))) {
|
||||
|
||||
GeneralChannelMessage("The channel owner and moderators automatically have voice.");
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user