diff options
| author | Adam <Adam@anope.org> | 2011-09-02 15:28:16 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-10 02:05:03 -0400 |
| commit | 17ea4ed8f5c4b08668223897c6de87dd3bdd598c (patch) | |
| tree | a32cf0bde18678d9ad8895f3e032cf69c48d13f2 /modules/pseudoclients/botserv.h | |
| parent | feaef7cc4aa97a0851ad404fc76652560bb14a70 (diff) | |
Fixed service_reference to work correctly with external classes
Diffstat (limited to 'modules/pseudoclients/botserv.h')
| -rw-r--r-- | modules/pseudoclients/botserv.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/modules/pseudoclients/botserv.h b/modules/pseudoclients/botserv.h deleted file mode 100644 index 5fa03f870..000000000 --- a/modules/pseudoclients/botserv.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef BOTSERV_H -#define BOTSERV_H - -struct UserData -{ - UserData() - { - this->Clear(); - } - - void Clear() - { - last_use = last_start = Anope::CurTime; - lines = times = 0; - lastline.clear(); - } - - /* Data validity */ - time_t last_use; - - /* for flood kicker */ - int16 lines; - time_t last_start; - - /* for repeat kicker */ - Anope::string lastline; - Anope::string lasttarget; - int16 times; -}; - -struct BanData -{ - Anope::string mask; - time_t last_use; - int16 ttb[TTB_SIZE]; - - BanData() - { - this->Clear(); - } - - void Clear() - { - last_use = 0; - for (int i = 0; i < TTB_SIZE; ++i) - this->ttb[i] = 0; - } -}; - -class BotServService : public Service -{ - public: - BotServService(Module *m) : Service(m, "BotServ") { } - - virtual UserData *GetUserData(User *u, Channel *c) = 0; - - virtual BanData *GetBanData(User *u, Channel *c) = 0; -}; - -static service_reference<BotServService> botserv("BotServ"); - -#endif // BOTSERV_H - |
