diff options
author | Adam <Adam@anope.org> | 2010-08-22 00:34:02 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-22 00:34:02 -0400 |
commit | ada65a3bafd3ae6738a80972cf0d2f31ad19a7ae (patch) | |
tree | afde8d7594adc78beec8feb8090f4a990bd6a56b /modules/extra/m_mysql.cpp | |
parent | 8a4c6ae618f767d2a9335da40f507ddccfc77b4b (diff) |
Added a classbase for the major classes, makes dynamic_reference invalidation really work.
This also cleans up a bit of the code in the modestacker.
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r-- | modules/extra/m_mysql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 176899a1b..289273493 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -251,17 +251,17 @@ class ModuleSQL : public Module for (unsigned i = this->QueryRequests.size(); i > 0; --i) { - QueryRequest &r = this->QueryRequests[i]; + QueryRequest &r = this->QueryRequests[i - 1]; if (r.interface && r.interface->owner == m) { - if (i == 0) + if (i == 1) { r.service->Lock.Lock(); r.service->Lock.Unlock(); } - this->QueryRequests.erase(this->QueryRequests.begin() + i); + this->QueryRequests.erase(this->QueryRequests.begin() + i - 1); } } |