summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 03:20:25 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 03:20:25 +0000
commitb84421d6712d27e256a70f13019bba4c01b99703 (patch)
tree1196815163b6f3c7612238b7503e290ecf285efe /src
parentf9c3f95cb7bdb84731e482788d4cb35cc0cfefc5 (diff)
Added the beginnings of some function documentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3486 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 1581e3b26..df6b33af6 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -67,7 +67,12 @@ extern std::vector<userrec*> local_users;
static char TIMESTR[26];
static time_t LAST = 0;
-void log(int level,char *text, ...)
+/** Writes information about events to a file.
+ * log()
+ * Write a line of text `text' to the logfile (and stdout, if in nofork) if the level `level'
+ * is greater than the configured loglevel.
+ */
+void log(int level, char *text, ...)
{
va_list argsPtr;
@@ -100,6 +105,12 @@ void log(int level,char *text, ...)
}
}
+/**
+ * readfile()
+ * Read the contents of a file located by `fname' into a file_cache pointed at by `F'.
+ *
+ * XXX - we may want to consider returning a file_cache or pointer to one, less confusing.
+ */
void readfile(file_cache &F, const char* fname)
{
FILE* file;