diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 15:14:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 15:14:39 +0000 |
commit | 7775a195d9c417e52eaaf912ec51d62bf0fd9a54 (patch) | |
tree | 7ebb40e491e247a94be9c463fb3f656cdc43a136 /include/inspircd.h | |
parent | 12e17fdf4755beca6def415f39d25722b9fe310f (diff) |
Move remaining functions:
operstrcmp* commands.cpp InspIRCd::operstrcmp()
duration* commands.cpp InspIRCd::duration()
host_matches_everyone* commands.cpp InspIRCd::host_matches_everyone()
ip_matches_everyone* commands.cpp InspIRCd::ip_matches_everyone()
nick_matches_everyone* commands.cpp InspIRCd::nick_matches_everyone()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4888 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 2ae54134e..00f6aef9c 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -126,6 +126,12 @@ class InspIRCd : public classbase char ReadBuffer[65535]; + const long duration_m; + const long duration_h; + const long duration_d; + const long duration_w; + const long duration_y; + public: time_t startup_time; ModeParser* ModeGrok; @@ -283,8 +289,6 @@ class InspIRCd : public classbase bool IsValidModuleCommand(const std::string &commandname, int pcnt, userrec* user); - bool IsUlined(const std::string &server); - void AddGLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask); void AddQLine(long duration, const std::string &source, const std::string &reason, const std::string &nickname); @@ -305,8 +309,6 @@ class InspIRCd : public classbase bool DelELine(const std::string &hostmask); - long CalcDuration(const std::string &duration); - bool IsValidMask(const std::string &mask); void AddSocket(InspSocket* sock); @@ -321,6 +323,13 @@ class InspIRCd : public classbase void DumpText(userrec* User, const std::string &LinePrefix, stringstream &TextStream); + bool nick_matches_everyone(const std::string &nick, userrec* user); + bool ip_matches_everyone(const std::string &ip, userrec* user); + bool host_matches_everyone(const std::string &mask, userrec* user); + long duration(const char* str); + int operstrcmp(const char* data,const char* input); + bool is_uline(const char* server); + std::string GetRevision(); std::string GetVersionString(); void WritePID(const std::string &filename); |