mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 10:26:37 +00:00
[Cleanup] Cleaning up Raid.cpp (#3125)
* [Cleanup] Cleanup Raid.cpp * cleanup * fix is_bot instances * bracket cleanup * bracket cleanup * rename variables in struct * fix for merge
This commit is contained in:
+4
-2
@@ -393,13 +393,15 @@ bool ChatChannel::RemoveClient(Client *c) {
|
||||
|
||||
void ChatChannel::SendOPList(Client *c)
|
||||
{
|
||||
if (!c)
|
||||
if (!c) {
|
||||
return;
|
||||
}
|
||||
|
||||
c->GeneralChannelMessage("Channel " + m_name + " op-list: (Owner=" + m_owner + ")");
|
||||
|
||||
for (auto &&m : m_moderators)
|
||||
for (auto &&m : m_moderators) {
|
||||
c->GeneralChannelMessage(m);
|
||||
}
|
||||
}
|
||||
|
||||
void ChatChannel::SendChannelMembers(Client *c) {
|
||||
|
||||
+3
-1
@@ -571,7 +571,9 @@ void Clientlist::CheckForStaleConnectionsAll()
|
||||
|
||||
void Clientlist::CheckForStaleConnections(Client *c) {
|
||||
|
||||
if (!c) return;
|
||||
if (!c) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::list<Client*>::iterator Iterator;
|
||||
|
||||
|
||||
+1
-2
@@ -120,8 +120,7 @@ void WorldServer::ProcessMessage(uint16 opcode, EQ::Net::Packet &p)
|
||||
if (Message.length() < 2)
|
||||
break;
|
||||
|
||||
if (!c)
|
||||
{
|
||||
if (!c) {
|
||||
LogInfo("Client not found");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user