diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-09-27 20:33:15 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-09-27 20:33:15 +0000 |
commit | 1078718b3c90e9653ffb1d92054c7740abf11356 (patch) | |
tree | fa6427a8ac27d173fe251e2e0f338cba5c5f19f3 /include | |
parent | b1a82220c1433c0cff2465300bc2b2dfbf4cd8eb (diff) |
Combined The file Modules and Config file existance checkers into one function
Added 'Exists' To the FileReader class of the Module API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@192 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd_io.h | 3 | ||||
-rw-r--r-- | include/modules.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 3460597d3..748aa53ba 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -17,8 +17,7 @@ void Exit (int); void Start (void); int DaemonSeed (void); -int CheckModule (char* module); -int CheckConfig (void); +int FileExists (char* file); int OpenTCPSocket (void); int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr); diff --git a/include/modules.h b/include/modules.h index a32319865..d9d04e762 100644 --- a/include/modules.h +++ b/include/modules.h @@ -354,6 +354,7 @@ class FileReader : public classbase * This method retrieves one line from the text file. If an empty non-NULL string is returned, * the index was out of bounds, or the line had no data on it. */ + bool Exists(); std::string GetLine(int x); /** Returns the size of the file in lines. * This method returns the number of lines in the read file. If it is 0, no lines have been |