summaryrefslogtreecommitdiff
path: root/modules/pseudoclients/nickserv/identifyrequest.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-12-14 16:52:24 -0500
committerAdam <Adam@anope.org>2015-12-14 16:52:24 -0500
commit6302f980fe6dad83aab7d2dc1046dadea5ffd939 (patch)
tree4c27d33f55fc32ce34827977932dac4b3e5ceedd /modules/pseudoclients/nickserv/identifyrequest.cpp
parent64dac60071fab652745a6e7a06cf6b7bdbbd3625 (diff)
New source tree structure for modules. From commands/cs_access => chanserv/access etc.
Diffstat (limited to 'modules/pseudoclients/nickserv/identifyrequest.cpp')
-rw-r--r--modules/pseudoclients/nickserv/identifyrequest.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/modules/pseudoclients/nickserv/identifyrequest.cpp b/modules/pseudoclients/nickserv/identifyrequest.cpp
deleted file mode 100644
index 4fc2f9989..000000000
--- a/modules/pseudoclients/nickserv/identifyrequest.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#include "identifyrequest.h"
-
-IdentifyRequestImpl::IdentifyRequestImpl(NickServ::IdentifyRequestListener *li, Module *o, const Anope::string &acc, const Anope::string &pass) : NickServ::IdentifyRequest(li, o, acc, pass)
-{
- std::set<NickServ::IdentifyRequest *> &requests = NickServ::service->GetIdentifyRequests();
- requests.insert(this);
-}
-
-IdentifyRequestImpl::~IdentifyRequestImpl()
-{
- std::set<NickServ::IdentifyRequest *> &requests = NickServ::service->GetIdentifyRequests();
- requests.erase(this);
- delete l;
-}
-
-void IdentifyRequestImpl::Hold(Module *m)
-{
- holds.insert(m);
-}
-
-void IdentifyRequestImpl::Release(Module *m)
-{
- holds.erase(m);
- if (holds.empty() && dispatched)
- {
- if (!success)
- l->OnFail(this);
- delete this;
- }
-}
-
-void IdentifyRequestImpl::Success(Module *m)
-{
- if (!success)
- {
- l->OnSuccess(this);
- success = true;
- }
-}
-
-void IdentifyRequestImpl::Dispatch()
-{
- if (holds.empty())
- {
- if (!success)
- l->OnFail(this);
- delete this;
- }
- else
- dispatched = true;
-}