summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 16:06:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 16:06:32 +0000
commitcbc730ec3bd2c080d08fa735af58ffd871b55ca4 (patch)
tree8f633daab8464e77b8a8a8ba24986a2bfde34642 /include/inspircd.h
parent829b139abdef2e07254f7237e4fbb8481a0b62ca (diff)
Added support for OnWhois, OnOper, OnInfo and SendToModeMask in the API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@388 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 4a0762dbd..3d1872d01 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -19,11 +19,13 @@
#include <assert.h>
#include <sys/param.h>
#include <sys/types.h>
+
#ifndef _LINUX_C_LIB_VERSION
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#endif
+
#include <arpa/inet.h>
#include <string>
#include <deque>
@@ -34,23 +36,34 @@
#include "users.h"
#include "channels.h"
+// some misc defines
+
#define ERROR -1
#define TRUE 1
#define FALSE 0
#define IDENTMAX 9
#define MAXSOCKS 64
+// maximum lengths of items
+
#define MAXQUIT 255
#define MAXCOMMAND 32
#define MAXTOPIC 307
#define MAXKICK 255
+// flags for use with log()
+
#define DEBUG 10
#define VERBOSE 20
#define DEFAULT 30
#define SPARSE 40
#define NONE 50
+// flags for use with WriteMode
+
+#define WM_AND 1
+#define WM_OR 2
+
typedef std::deque<std::string> file_cache;
/* prototypes */
@@ -62,6 +75,7 @@ void ReadConfig(void);
void strlower(char *n);
void WriteOpers(char* text, ...);
+void WriteMode(const char* modes, int flags, const char* text, ...);
void log(int level, char *text, ...);
void Write(int sock,char *text, ...);
void WriteServ(int sock, char* text, ...);