From 6e79197210e58d69e7bd512d0b5569c4cb06f3e5 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 21 Apr 2013 17:20:28 +0200 Subject: Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected errors in m_callerid --- src/users.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index dbc3ea444..f48e3642f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -546,6 +546,8 @@ CullResult LocalUser::cull() // is only a precaution currently. if (localuseriter != ServerInstance->Users->local_users.end()) ServerInstance->Users->local_users.erase(localuseriter); + else + ServerInstance->Logs->Log("USERS", DEFAULT, "ERROR: LocalUserIter does not point to a valid entry for " + this->nick); ClearInvites(); eh.cull(); @@ -840,6 +842,12 @@ void User::InvalidateCache() bool User::ChangeNick(const std::string& newnick, bool force) { + if (quitting) + { + ServerInstance->Logs->Log("USERS", DEFAULT, "ERROR: Attempted to change nick of a quitting user: " + this->nick); + return false; + } + ModResult MOD_RESULT; if (force) -- cgit v1.2.3