diff options
Diffstat (limited to 'include/modules/os_ignore.h')
-rw-r--r-- | include/modules/os_ignore.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/modules/os_ignore.h b/include/modules/os_ignore.h index ca7ae3079..448fa4354 100644 --- a/include/modules/os_ignore.h +++ b/include/modules/os_ignore.h @@ -9,24 +9,27 @@ * Based on the original code of Services by Andy Church. */ +#pragma once + struct IgnoreData { Anope::string mask; Anope::string creator; Anope::string reason; - time_t time; /* When do we stop ignoring them? */ + time_t time = 0; /* When do we stop ignoring them? */ - virtual ~IgnoreData() { } - protected: - IgnoreData() : time(0) { } + virtual ~IgnoreData() = default; +protected: + IgnoreData() = default; }; -class IgnoreService : public Service +class IgnoreService + : public Service { - protected: +protected: IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { } - public: +public: virtual void AddIgnore(IgnoreData *) = 0; virtual void DelIgnore(IgnoreData *) = 0; |