diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-24 15:50:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-24 15:50:55 +0000 |
commit | 28cc1b6ceb018f6996510ad00523a1578cbdf16b (patch) | |
tree | 6a709ebc98521cbc27102468eeebd03da3a43cbb | |
parent | b5f16515b7d435c90cd2e182e3dcd63a57de488a (diff) |
Added xline.cpp and xline.h, implements k/g/z/q lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@711 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/xline.h | 17 | ||||
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/xline.cpp | 58 |
3 files changed, 76 insertions, 1 deletions
diff --git a/include/xline.h b/include/xline.h new file mode 100644 index 000000000..720364dd6 --- /dev/null +++ b/include/xline.h @@ -0,0 +1,17 @@ +#ifndef __XLINE_H +#define __XLINE_H + +// include the common header files + +#include <typeinfo> +#include <iostream> +#include <string> +#include <deque> +#include <sstream> +#include <vector> +#include "users.h" +#include "channels.h" + + + +#endif diff --git a/src/Makefile b/src/Makefile index 336b4d267..6a336dc9c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,7 +8,7 @@ CC = im a cheezeball SRC_1 = inspircd.cpp inspircd_util.cpp inspircd_io.cpp connection.cpp message.cpp commands.cpp -SRC_2 = dynamic.cpp users.cpp modules.cpp wildcard.cpp servers.cpp channels.cpp mode.cpp +SRC_2 = dynamic.cpp users.cpp modules.cpp wildcard.cpp servers.cpp channels.cpp mode.cpp xline.cpp SRC = $(SRC_1) $(SRC_2) OBJS = $(SRC:.cpp=.o) diff --git a/src/xline.cpp b/src/xline.cpp new file mode 100644 index 000000000..a1febad29 --- /dev/null +++ b/src/xline.cpp @@ -0,0 +1,58 @@ +#include "inspircd.h" +#include "inspircd_io.h" +#include "inspircd_util.h" +#include "inspircd_config.h" +#include <unistd.h> +#include <fcntl.h> +#include <sys/errno.h> +#include <sys/ioctl.h> +#include <sys/utsname.h> +#include <cstdio> +#include <time.h> +#include <string> +#ifdef GCC3 +#include <ext/hash_map> +#else +#include <hash_map> +#endif +#include <map> +#include <sstream> +#include <vector> +#include <errno.h> +#include <deque> +#include <errno.h> +#include <unistd.h> +#include <sched.h> +#include "connection.h" +#include "users.h" +#include "servers.h" +#include "ctables.h" +#include "globals.h" +#include "modules.h" +#include "dynamic.h" +#include "wildcard.h" +#include "message.h" +#include "commands.h" + +using namespace std; + +extern int MODCOUNT; +extern vector<Module*> modules; +extern vector<ircd_module*> factory; + +extern int LogLevel; +extern char ServerName[MAXBUF]; +extern char Network[MAXBUF]; +extern char ServerDesc[MAXBUF]; +extern char AdminName[MAXBUF]; +extern char AdminEmail[MAXBUF]; +extern char AdminNick[MAXBUF]; +extern char diepass[MAXBUF]; +extern char restartpass[MAXBUF]; +extern char motd[MAXBUF]; +extern char rules[MAXBUF]; +extern char list[MAXBUF]; +extern char PrefixQuit[MAXBUF]; +extern char DieValue[MAXBUF]; + + |