X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcull_list.cpp;h=abefa8b5750fc8ec059aefd552597936acba40cf;hb=75f147a25e8ecd30ada36c4b0a60c1b8c0e0717f;hp=a7f8d3316c6375d0ab396679fbb47632cbe54150;hpb=7d7250484c352c13830e63ae41ee8faae40a9bd5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cull_list.cpp b/src/cull_list.cpp index a7f8d3316..abefa8b57 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -11,7 +11,7 @@ * --------------------------------------------------- */ -/* $Core: libIRCDcull_list */ +/* $Core */ #include "inspircd.h" #include "cull_list.h" @@ -23,13 +23,6 @@ CullList::CullList(InspIRCd* Instance) : ServerInstance(Instance) void CullList::AddItem(User* user) { - if (user->quitting) - { - ServerInstance->Logs->Log("CULLLIST",DEBUG, "*** Warning *** - You tried to quit a user (%s) twice. Did your module call QuitUser twice?", user->nick.c_str()); - return; - } - - user->quitting = true; list.push_back(user); } @@ -63,7 +56,7 @@ int CullList::Apply() if (IS_LOCAL(u)) { - if ((!u->sendq.empty()) && (!(*u->GetWriteError()))) + if (!u->sendq.empty()) u->FlushWriteBuf(); } @@ -78,11 +71,11 @@ int CullList::Apply() if (IS_LOCAL(u)) { - if (u->io) + if (u->GetIOHook()) { try { - u->io->OnRawSocketClose(u->GetFd()); + u->GetIOHook()->OnRawSocketClose(u->GetFd()); } catch (CoreException& modexcept) {