diff options
| author | Adam <Adam@anope.org> | 2013-03-30 23:38:40 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-03-30 23:39:43 -0500 |
| commit | 7e7556f06445d4d8e607ef514c9fb5009899db73 (patch) | |
| tree | fde8e4e7c59f40183e215cd69ce0d042670b24b9 /modules/extra | |
| parent | 111d6a917806fd3ce2269436d08d68bd7eb1d5ea (diff) | |
Merge usefulness of Timer and CallBack classes into Timer, and fix it to really work
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/m_httpd.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_proxyscan.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/m_httpd.cpp b/modules/extra/m_httpd.cpp index d9855a226..f1e5392c5 100644 --- a/modules/extra/m_httpd.cpp +++ b/modules/extra/m_httpd.cpp @@ -279,14 +279,14 @@ class MyHTTPClient : public HTTPClient } }; -class MyHTTPProvider : public HTTPProvider, public CallBack +class MyHTTPProvider : public HTTPProvider, public Timer { int timeout; std::map<Anope::string, HTTPPage *> pages; std::list<Reference<MyHTTPClient> > clients; public: - MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t) : Socket(-1, i.find(':') != Anope::string::npos), HTTPProvider(c, n, i, p), CallBack(c, 10, Anope::CurTime, true), timeout(t) { } + MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t) : Socket(-1, i.find(':') != Anope::string::npos), HTTPProvider(c, n, i, p), Timer(c, 10, Anope::CurTime, true), timeout(t) { } void Tick(time_t) anope_override { diff --git a/modules/extra/m_proxyscan.cpp b/modules/extra/m_proxyscan.cpp index feac20969..b77da2d3d 100644 --- a/modules/extra/m_proxyscan.cpp +++ b/modules/extra/m_proxyscan.cpp @@ -201,10 +201,10 @@ class ModuleProxyScan : public Module ProxyCallbackListener *listener; - class ConnectionTimeout : public CallBack + class ConnectionTimeout : public Timer { public: - ConnectionTimeout(Module *creator, long timeout) : CallBack(creator, timeout, Anope::CurTime, true) + ConnectionTimeout(Module *c, long timeout) : Timer(c, timeout, Anope::CurTime, true) { } |
