diff options
| author | 2021-07-03 13:58:34 +0100 | |
|---|---|---|
| committer | 2021-07-03 13:58:34 +0100 | |
| commit | 4350050a82df2c90db4a2ca4fe3ae75a8a343e08 (patch) | |
| tree | 0c2d4f450b8ab975ef17b04de0dbeb78946ca5bf /src/modules/m_callerid.cpp | |
| parent | Update the IRCCloud example config for the latest host changes. (diff) | |
| download | inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.tar.gz inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.tar.bz2 inspircd++-4350050a82df2c90db4a2ca4fe3ae75a8a343e08.zip | |
Fix some "targ" usages which were missed in the earlier commit.
Diffstat (limited to 'src/modules/m_callerid.cpp')
| -rw-r--r-- | src/modules/m_callerid.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 361e2bdda..459f51739 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -140,15 +140,14 @@ struct CallerIDExtInfo : public ExtensionItem // We need to walk the list of users on our accept list, and remove ourselves from their wholistsme. for (callerid_data::UserSet::iterator it = dat->accepting.begin(); it != dat->accepting.end(); ++it) { - callerid_data *targ = this->get(*it, false); - - if (!targ) + callerid_data* target = this->get(*it, false); + if (!target) { ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (1)"); continue; // shouldn't happen, but oh well. } - if (!stdalgo::vector::swaperase(targ->wholistsme, dat)) + if (!stdalgo::vector::swaperase(target->wholistsme, dat)) ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (2)"); } delete dat; @@ -292,8 +291,8 @@ public: } // Now, look them up, and add me to their list - callerid_data *targ = extInfo.get(whotoadd, true); - targ->wholistsme.push_back(dat); + callerid_data* target = extInfo.get(whotoadd, true); + target->wholistsme.push_back(dat); user->WriteNotice(whotoadd->nick + " is now on your accept list"); return true; |
