diff options
| author | Adam <Adam@anope.org> | 2011-08-05 05:35:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-05 05:35:31 -0400 |
| commit | e66063e6304538d34c40460ca0aa2be5ddb6bdec (patch) | |
| tree | f50fe31097160f8f794669809e4f4ef87f477672 /modules/commands/os_forbid.h | |
| parent | 9ec18a3b020932eee6242c878149c484f49b13cb (diff) | |
Rewrote the example configurations and split them
up into seperate files for each pseudo client.
Also reorganized how the modules are stored, and
made most of the old "extra" modules "core"
Diffstat (limited to 'modules/commands/os_forbid.h')
| -rw-r--r-- | modules/commands/os_forbid.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/commands/os_forbid.h b/modules/commands/os_forbid.h new file mode 100644 index 000000000..b91aa3be8 --- /dev/null +++ b/modules/commands/os_forbid.h @@ -0,0 +1,37 @@ +#ifndef OS_FORBID_H +#define OS_FORBID_H + +enum ForbidType +{ + FT_NONE, + FT_NICK, + FT_CHAN, + FT_EMAIL +}; + +struct ForbidData +{ + Anope::string mask; + Anope::string creator; + Anope::string reason; + time_t created; + time_t expires; + ForbidType type; +}; + +class ForbidService : public Service +{ + public: + ForbidService(Module *m) : Service(m, "forbid") { } + + virtual void AddForbid(ForbidData *d) = 0; + + virtual void RemoveForbid(ForbidData *d) = 0; + + virtual ForbidData *FindForbid(const Anope::string &mask, ForbidType type) = 0; + + virtual const std::vector<ForbidData *> &GetForbids() = 0; +}; + +#endif + |
