#include <time.h>
#include <stdarg.h>
-
-//#include <string>
-//#include <sstream>
#include "inspircd_config.h"
#include "uid.h"
#include "users.h"
#include "channels.h"
+#include "timer.h"
#include "hashcomp.h"
#include "typedefs.h"
+#include "logger.h"
#include "usermanager.h"
#include "socket.h"
+#include "ctables.h"
+#include "command_parse.h"
#include "mode.h"
#include "socketengine.h"
-#include "command_parse.h"
#include "snomasks.h"
#include "cull_list.h"
#include "filelogger.h"
#include "caller.h"
+#include "modules.h"
+#include "configreader.h"
+#include "inspstring.h"
/**
* Used to define the maximum number of parameters a command may have.
/** Used when connecting clients
*/
- insp_sockaddr client, server;
+ irc::sockets::insp_sockaddr client, server;
/** Used when connecting clients
*/
socklen_t length;
- /** Nonblocking file writer
- */
- FileLogger* Logger;
-
/** Time offset in seconds
* This offset is added to all calls to Time(). Use SetTimeDelta() to update
*/
/** Socket engine, handles socket activity events
*/
SocketEngine* SE;
+
+ /** LogManager handles logging.
+ */
+ LogManager *Logs;
/** ModuleManager contains everything related to loading/unloading
* modules.
*/
bool OpenLog(char** argv, int argc);
- /** Close the currently open log file
- */
- void CloseLog();
-
/** Return true if a channel name is valid
* @param chname A channel name to verify
* @return True if the name is valid
* @param LinePrefix text to prefix each complete line with
* @param TextStream the text to send to the user
*/
- void DumpText(User* User, const std::string &LinePrefix, stringstream &TextStream);
+ void DumpText(User* User, const std::string &LinePrefix, std::stringstream &TextStream);
/** Check if the given nickmask matches too many users, send errors to the given user
* @param nick A nickmask to match against