diff options
| author | Adam <Adam@anope.org> | 2011-08-25 00:36:04 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-10 01:58:38 -0400 |
| commit | d4db2b84f250b98ec3422f2be9951f567e6dc97e (patch) | |
| tree | 3c119be0fa5a5f166664858a0cea0c9344e1db7e /include | |
| parent | bb8e04c83588b6d0595eca463170643a3bd84285 (diff) | |
Made the IsValidHost checks configurable
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 7 | ||||
| -rw-r--r-- | include/extern.h | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/include/config.h b/include/config.h index e2b626c9c..47b4c36e1 100644 --- a/include/config.h +++ b/include/config.h @@ -541,6 +541,13 @@ class CoreExport ServerConfig /* Who can use memos reciepts */ unsigned MSMemoReceipt; + /* Valid chars allowed in vhosts */ + Anope::string VhostChars; + /* Allow undotted vhosts? */ + bool VhostUndotted; + /* Chars disallowed at the beginning or end of vhosts */ + Anope::string VhostDisallowBE; + /* Core BotServ modules */ Anope::string BotCoreModules; /* Default BotServ flags */ diff --git a/include/extern.h b/include/extern.h index 1772c965c..b62997aad 100644 --- a/include/extern.h +++ b/include/extern.h @@ -159,10 +159,8 @@ E time_t dotime(const Anope::string &s); E Anope::string duration(const time_t &seconds, NickCore *nc = NULL); E Anope::string expire_left(NickCore *nc, time_t expires); E Anope::string do_strftime(const time_t &t, NickCore *nc = NULL, bool short_output = false); -E bool doValidHost(const Anope::string &host, int type); - -E bool isValidHost(const Anope::string &host, int type); -E bool isvalidchar(char c); +E bool IsValidIdent(const Anope::string &ident); +E bool IsValidHost(const Anope::string &host); E Anope::string myStrGetToken(const Anope::string &str, char dilim, int token_number); E Anope::string myStrGetTokenRemainder(const Anope::string &str, char dilim, int token_number); |
