diff options
| author | Adam <Adam@anope.org> | 2010-11-22 10:08:37 -0600 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-12-12 19:36:01 -0500 |
| commit | 697dc8938279f33f2ac2c0b2248793c75de07b19 (patch) | |
| tree | 3b8259dbded67f87f9e17742ebef5b0043e3ebdc /include | |
| parent | 4d342d955dbe604357c652a1ee09d77c9a38ec6d (diff) | |
Added a default expiry time for suspended and forbidden nicks and channels
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 10 | ||||
| -rw-r--r-- | include/modules.h | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/include/config.h b/include/config.h index 0dfd70d9d..aef620b3c 100644 --- a/include/config.h +++ b/include/config.h @@ -593,8 +593,12 @@ class CoreExport ServerConfig time_t NSRegDelay; /* Time before the registering mail will be resent */ time_t NSResendDelay; - /* How long before nicks expir */ + /* How long before nicks expire */ time_t NSExpire; + /* How long before suspended nicks expire */ + time_t NSSuspendExpire; + /* How long before forbidden nicks expire */ + time_t NSForbidExpire; /* Time before NickRequests expire */ time_t NSRExpire; /* Force email when registering */ @@ -630,6 +634,10 @@ class CoreExport ServerConfig unsigned CSMaxReg; /* Time before a channel expires */ time_t CSExpire; + /* How long before suspended channels expire */ + time_t CSSuspendExpire; + /* How long before forbidden channels expire */ + time_t CSForbidExpire; /* Default ban type to use for channels */ int CSDefBantype; /* Max number of entries allowed on channel access lists */ diff --git a/include/modules.h b/include/modules.h index be5c14447..ac74a7372 100644 --- a/include/modules.h +++ b/include/modules.h @@ -498,10 +498,10 @@ class CoreExport Module : public Extensible */ virtual EventReturn OnPreChanExpire(ChannelInfo *ci) { return EVENT_CONTINUE; } - /** Called when a channel expires - * @param chname The channel name + /** Called before a channel expires + * @param ci The channel */ - virtual void OnChanExpire(const Anope::string &chname) { } + virtual void OnChanExpire(ChannelInfo *ci) { } /** Called before Anope connects to its uplink * @param u The uplink we're going to connect to |
