1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 11:06:38 +02:00
Files
anope/modules/commands/os_forbid.h
T
Adam e66063e630 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"
2011-08-05 05:35:31 -04:00

38 lines
596 B
C++

#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