mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
Changes to cle enums, characters will now auto kick on login instead of making you wait at world unless you specifically turn that feature on in the rules.
This commit is contained in:
+4
-5
@@ -1114,16 +1114,16 @@ void Zone::AddAuth(ServerZoneIncomingClient_Struct* szic) {
|
||||
client_auth_list.Insert(zca);
|
||||
}
|
||||
|
||||
void Zone::RemoveAuth(const char* iCharName)
|
||||
void Zone::RemoveAuth(const char* iCharName, const char* iLSKey)
|
||||
{
|
||||
LinkedListIterator<ZoneClientAuth_Struct*> iterator(client_auth_list);
|
||||
|
||||
iterator.Reset();
|
||||
while (iterator.MoreElements()) {
|
||||
ZoneClientAuth_Struct* zca = iterator.GetData();
|
||||
if (strcasecmp(zca->charname, iCharName) == 0) {
|
||||
iterator.RemoveCurrent();
|
||||
return;
|
||||
if (strcasecmp(zca->charname, iCharName) == 0 && strcasecmp(zca->lskey, iLSKey) == 0) {
|
||||
iterator.RemoveCurrent();
|
||||
return;
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
@@ -1138,7 +1138,6 @@ void Zone::RemoveAuth(uint32 lsid)
|
||||
ZoneClientAuth_Struct* zca = iterator.GetData();
|
||||
if (zca->lsid == lsid) {
|
||||
iterator.RemoveCurrent();
|
||||
return;
|
||||
}
|
||||
iterator.Advance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user