mirror of
https://github.com/anope/anope.git
synced 2026-07-03 02:13:12 +02:00
Reworked live SQL support yet again
This commit is contained in:
@@ -42,9 +42,9 @@ class NSMaxEmail : public Module
|
||||
if (email.empty())
|
||||
return 0;
|
||||
|
||||
for (nickcore_map::const_iterator it = NickCoreList.begin(), it_end = NickCoreList.end(); it != it_end; ++it)
|
||||
for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it)
|
||||
{
|
||||
NickCore *nc = it->second;
|
||||
const NickCore *nc = it->second;
|
||||
|
||||
if (!(u->Account() && u->Account() == nc) && !nc->email.empty() && nc->email.equals_ci(email))
|
||||
++count;
|
||||
|
||||
Reference in New Issue
Block a user