summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-21 17:20:28 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-21 17:20:28 +0200
commit6e79197210e58d69e7bd512d0b5569c4cb06f3e5 (patch)
tree24c7aaa6e1b5ecb0687803371b3bec5032a4c144 /src/users.cpp
parent4b8b3eca8cd30fe6c992c86a333b2defa79ba765 (diff)
Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected errors in m_callerid
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp8
1 files changed, 8 insertions, 0 deletions
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)