Fix potential crash in ucs/clientlist.cpp
This commit is contained in:
parent
35c1eccbe1
commit
fd1e425abc
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue