mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +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;
|
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.");
|
GeneralChannelMessage("The channel owner and moderators automatically have voice.");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user