Merge branch 'headers'

This commit is contained in:
Alexey Sokolov
2011-09-28 20:15:20 +07:00
116 changed files with 471 additions and 470 deletions
+10 -9
View File
@@ -15,7 +15,7 @@ includedir := @includedir@
sbindir := @sbindir@
localstatedir := @localstatedir@
CXX := @CXX@
CXXFLAGS := @CPPFLAGS@ @CXXFLAGS@ -I.
CXXFLAGS := @CPPFLAGS@ @CXXFLAGS@ -I$(srcdir)/include -Iinclude
LDFLAGS := @LDFLAGS@
LIBS := @LIBS@
LIBZNC := @LIBZNC@
@@ -32,10 +32,11 @@ LIB_SRCS := ZNCString.cpp Csocket.cpp znc.cpp IRCNetwork.cpp User.cpp IRCSock.c
Client.cpp Chan.cpp Nick.cpp Server.cpp Modules.cpp MD5.cpp Buffer.cpp Utils.cpp \
FileUtils.cpp HTTPSock.cpp Template.cpp ClientCommand.cpp Socket.cpp SHA256.cpp \
WebModules.cpp Listener.cpp Config.cpp ZNCDebug.cpp
BIN_SRCS := main.cpp
LIB_SRCS := $(addprefix src/,$(LIB_SRCS))
BIN_SRCS := src/main.cpp
LIB_OBJS := $(patsubst %cpp,%o,$(LIB_SRCS))
BIN_OBJS := $(patsubst %cpp,%o,$(BIN_SRCS))
CLEAN := znc *.o core core.*
CLEAN := znc src/*.o core core.*
DISTCLEAN := Makefile config.log config.status znc-config znc-buildmod .depend \
modules/.depend modules/Makefile man/Makefile znc.pc znc-uninstalled.pc
@@ -96,10 +97,10 @@ clean:
distclean: clean
rm -rf $(DISTCLEAN)
%.o: %.cpp Makefile
@mkdir -p .depend
$(E) Building $@...
$(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MMD -MF .depend/$@.dep
src/%.o: src/%.cpp Makefile
@mkdir -p .depend src
$(E) Building core object $*...
$(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MMD -MF .depend/$*.dep
install: znc $(LIBZNC)
mkdir -p $(DESTDIR)$(bindir)
@@ -113,8 +114,8 @@ install: znc $(LIBZNC)
$(INSTALL_PROGRAM) znc $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) znc-config $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) znc-buildmod $(DESTDIR)$(bindir)
$(INSTALL_DATA) $(srcdir)/*.h $(DESTDIR)$(includedir)/znc
$(INSTALL_DATA) zncconfig.h $(DESTDIR)$(includedir)/znc
$(INSTALL_DATA) $(srcdir)/include/znc/*.h $(DESTDIR)$(includedir)/znc
$(INSTALL_DATA) include/znc/zncconfig.h $(DESTDIR)$(includedir)/znc
$(INSTALL_DATA) znc.pc $(DESTDIR)$(PKGCONFIGDIR)
@$(MAKE) -C modules install DESTDIR=$(DESTDIR);
if test -n "$(LIBZNC)"; then \
+2 -2
View File
@@ -9,9 +9,9 @@ AC_PREREQ([2.62])
dnl Keep the version number in sync with main.h!
AC_INIT([znc], [0.203])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([znc.cpp])
AC_CONFIG_SRCDIR([src/znc.cpp])
AC_LANG([C++])
AC_CONFIG_HEADERS([zncconfig.h])
AC_CONFIG_HEADERS([include/znc/zncconfig.h])
AH_TOP([#ifndef ZNCCONFIG_H
#define ZNCCONFIG_H])
AH_BOTTOM([#endif /* ZNCCONFIG_H */])
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _BUFFER_H
#define _BUFFER_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <deque>
using std::deque;
+3 -3
View File
@@ -9,9 +9,9 @@
#ifndef _CHAN_H
#define _CHAN_H
#include "zncconfig.h"
#include "Nick.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/Nick.h>
#include <znc/ZNCString.h>
#include <map>
#include <set>
#include <vector>
+4 -4
View File
@@ -9,10 +9,10 @@
#ifndef _CLIENT_H
#define _CLIENT_H
#include "zncconfig.h"
#include "Socket.h"
#include "Utils.h"
#include "main.h"
#include <znc/zncconfig.h>
#include <znc/Socket.h>
#include <znc/Utils.h>
#include <znc/main.h>
// Forward Declarations
class CZNC;
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef CONFIG_H
#define CONFIG_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
class CFile;
class CConfig;
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef _HAS_CSOCKET_
#define _HAS_CSOCKET_
#include "defines.h" // require this as a general rule, most projects have a defines.h or the like
#include <znc/defines.h> // require this as a general rule, most projects have a defines.h or the like
#include <stdio.h>
#include <unistd.h>
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef EXEC_SOCK_H
#define EXEC_SOCK_H
#include "zncconfig.h"
#include "Socket.h"
#include <znc/zncconfig.h>
#include <znc/Socket.h>
#include <signal.h>
//! @author imaginos@imaginos.net
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _FILEUTILS_H
#define _FILEUTILS_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <dirent.h>
#include <map>
#include <stdlib.h>
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _HTTPSOCK_H
#define _HTTPSOCK_H
#include "zncconfig.h"
#include "Socket.h"
#include <znc/zncconfig.h>
#include <znc/Socket.h>
class CModule;
+5 -5
View File
@@ -9,11 +9,11 @@
#ifndef _IRCNETWORK_H
#define _IRCNETWORK_H
#include "zncconfig.h"
#include "ZNCString.h"
#include "Buffer.h"
#include "Nick.h"
#include "znc.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <znc/Buffer.h>
#include <znc/Nick.h>
#include <znc/znc.h>
class CModules;
class CUser;
+3 -3
View File
@@ -9,9 +9,9 @@
#ifndef _IRCSOCK_H
#define _IRCSOCK_H
#include "zncconfig.h"
#include "Socket.h"
#include "Nick.h"
#include <znc/zncconfig.h>
#include <znc/Socket.h>
#include <znc/Nick.h>
// Forward Declarations
class CChan;
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _LISTENER_H
#define _LISTENER_H
#include "zncconfig.h"
#include "Socket.h"
#include <znc/zncconfig.h>
#include <znc/Socket.h>
// Forward Declarations
class CRealListener;
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef _MD5_H
#define _MD5_H
#include "zncconfig.h"
#include <znc/zncconfig.h>
#include <string>
using std::string;
+3 -3
View File
@@ -9,9 +9,9 @@
#ifndef _MODULES_H
#define _MODULES_H
#include "zncconfig.h"
#include "WebModules.h"
#include "main.h"
#include <znc/zncconfig.h>
#include <znc/WebModules.h>
#include <znc/main.h>
#include <set>
#include <queue>
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _NICK_H
#define _NICK_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <set>
#include <vector>
+1 -1
View File
@@ -37,7 +37,7 @@
#define SHA256_DIGEST_SIZE ( 256 / 8)
#define SHA256_BLOCK_SIZE ( 512 / 8)
#include "zncconfig.h"
#include <znc/zncconfig.h>
// C99 defines stdint.h which defines a uint32_t and uint8_t type.
// But the other kids didn't want to play with poor little Solaris 9 and so he
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _SERVER_H
#define _SERVER_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
class CServer {
public:
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef SOCKET_H
#define SOCKET_H
#include "zncconfig.h"
#include "Csocket.h"
#include <znc/zncconfig.h>
#include <znc/Csocket.h>
class CModule;
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _TEMPLATE_H
#define _TEMPLATE_H
#include "zncconfig.h"
#include "Utils.h"
#include <znc/zncconfig.h>
#include <znc/Utils.h>
#include <iostream>
using std::ostream;
+4 -4
View File
@@ -9,10 +9,10 @@
#ifndef _USER_H
#define _USER_H
#include "zncconfig.h"
#include "Buffer.h"
#include "Modules.h"
#include "Nick.h"
#include <znc/zncconfig.h>
#include <znc/Buffer.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <set>
#include <vector>
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef _UTILS_H
#define _UTILS_H
#include "zncconfig.h"
#include "ZNCString.h"
#include <znc/zncconfig.h>
#include <znc/ZNCString.h>
#include <assert.h>
#include <cstdio>
#include <fcntl.h>
+3 -3
View File
@@ -9,9 +9,9 @@
#ifndef _WEBMODULES_H
#define _WEBMODULES_H
#include "zncconfig.h"
#include "Template.h"
#include "HTTPSock.h"
#include <znc/zncconfig.h>
#include <znc/Template.h>
#include <znc/HTTPSock.h>
class CAuthBase;
class CUser;
+1 -1
View File
@@ -9,7 +9,7 @@
#ifndef ZNCDEBUG_H
#define ZNCDEBUG_H
#include "zncconfig.h"
#include <znc/zncconfig.h>
#include <iostream>
using std::cout;
+1 -1
View File
@@ -9,7 +9,7 @@
#ifndef ZNCSTRING_H
#define ZNCSTRING_H
#include "zncconfig.h"
#include <znc/zncconfig.h>
#include <map>
#include <set>
#include <string>
+3 -3
View File
@@ -9,12 +9,12 @@
#ifndef _DEFINES_H
#define _DEFINES_H
#include "zncconfig.h"
#include <znc/zncconfig.h>
// This header file is just for Csocket
#include "ZNCDebug.h"
#include "ZNCString.h"
#include <znc/ZNCDebug.h>
#include <znc/ZNCString.h>
#define CS_STRING CString
#define _NO_CSOCKET_NS
+1 -1
View File
@@ -9,7 +9,7 @@
#ifndef _MAIN_H
#define _MAIN_H
#include "zncconfig.h"
#include <znc/zncconfig.h>
// The following defines are for #if comparison (preprocessor only likes ints)
#define VERSION_MAJOR 0
+5 -5
View File
@@ -9,11 +9,11 @@
#ifndef _ZNC_H
#define _ZNC_H
#include "zncconfig.h"
#include "Client.h"
#include "Modules.h"
#include "Socket.h"
#include "Listener.h"
#include <znc/zncconfig.h>
#include <znc/Client.h>
#include <znc/Modules.h>
#include <znc/Socket.h>
#include <znc/Listener.h>
#include <map>
using std::map;
+1 -1
View File
@@ -17,7 +17,7 @@ sbindir := @sbindir@
localstatedir := @localstatedir@
CXX := @CXX@
# CXXFLAGS are for the main binary, so don't use them here, use MODFLAGS instead
MODFLAGS := @CPPFLAGS@ @MODFLAGS@ -I$(srcdir)/.. -I..
MODFLAGS := @CPPFLAGS@ @MODFLAGS@ -I$(srcdir)/../include -I../include
MODLINK := @MODLINK@
LDFLAGS := @LDFLAGS@
# LIBS are not and should not be used in here.
+6 -6
View File
@@ -9,12 +9,12 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "User.h"
#include "IRCNetwork.h"
#include "Modules.h"
#include "Chan.h"
#include "IRCSock.h"
#include <znc/znc.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/Chan.h>
#include <znc/IRCSock.h>
template<std::size_t N>
struct array_size_helper {
+5 -5
View File
@@ -6,11 +6,11 @@
* by the Free Software Foundation.
*/
#include "Client.h"
#include "FileUtils.h"
#include "Server.h"
#include "IRCNetwork.h"
#include "User.h"
#include <znc/Client.h>
#include <znc/FileUtils.h>
#include <znc/Server.h>
#include <znc/IRCNetwork.h>
#include <znc/User.h>
#include <syslog.h>
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "Modules.h"
#include <znc/Chan.h>
#include <znc/Modules.h>
class CAttachMatch {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "IRCNetwork.h"
#include "Chan.h"
#include <znc/IRCNetwork.h>
#include <znc/Chan.h>
class CAutoOpMod;
+4 -4
View File
@@ -7,10 +7,10 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include "User.h"
#include <znc/Modules.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
#include <znc/User.h>
class CAutoReplyMod : public CModule {
public:
+3 -3
View File
@@ -7,9 +7,9 @@
*/
// @todo handle raw 433 (nick in use)
#include "IRCSock.h"
#include "User.h"
#include "IRCNetwork.h"
#include <znc/IRCSock.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
class CAwayNickMod;
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include "znc.h"
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
#include <znc/znc.h>
#define MESSAGE "Your account has been disabled. Contact your administrator."
+6 -6
View File
@@ -6,12 +6,12 @@
* by the Free Software Foundation.
*/
#include "zncconfig.h"
#include "znc.h"
#include "User.h"
#include "Modules.h"
#include "Socket.h"
#include "FileUtils.h"
#include <znc/zncconfig.h>
#include <znc/znc.h>
#include <znc/User.h>
#include <znc/Modules.h>
#include <znc/Socket.h>
#include <znc/FileUtils.h>
class CBounceDCCMod;
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "User.h"
#include "Modules.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/Modules.h>
class CBuffExtras : public CModule {
public:
+4 -4
View File
@@ -8,10 +8,10 @@
#define REQUIRESSL
#include "FileUtils.h"
#include "User.h"
#include "Modules.h"
#include "IRCSock.h"
#include <znc/FileUtils.h>
#include <znc/User.h>
#include <znc/Modules.h>
#include <znc/IRCSock.h>
class CCertMod : public CModule {
public:
+4 -4
View File
@@ -8,10 +8,10 @@
#define REQUIRESSL
#include "Modules.h"
#include "User.h"
#include "Listener.h"
#include "znc.h"
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/Listener.h>
#include <znc/znc.h>
class CSSLClientCertMod : public CModule {
public:
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
class CChanSaverMod : public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "User.h"
#include <znc/znc.h>
#include <znc/User.h>
class CClientNotifyMod : public CModule {
protected:
+3 -3
View File
@@ -22,9 +22,9 @@
// It is strongly suggested that you enable SSL between znc and your client otherwise the encryption stops at znc and gets sent to your client in plain text.
//
#include "Chan.h"
#include "User.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#define REQUIRESSL 1
+3 -3
View File
@@ -7,9 +7,9 @@
*/
#include "Modules.h"
#include "IRCNetwork.h"
#include "Chan.h"
#include <znc/Modules.h>
#include <znc/IRCNetwork.h>
#include <znc/Chan.h>
class CKickClientOnIRCDisconnect: public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Nick.h"
#include "IRCNetwork.h"
#include <znc/Nick.h>
#include <znc/IRCNetwork.h>
class CAntiIdle;
+4 -4
View File
@@ -16,10 +16,10 @@
#define REQUIRESSL
#include "Client.h"
#include "User.h"
#include "IRCNetwork.h"
#include "FileUtils.h"
#include <znc/Client.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/FileUtils.h>
#include <sys/stat.h>
#define CRYPT_VERIFICATION_TOKEN "::__:AWAY:__::"
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "User.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
class CAutoCycleMod : public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "User.h"
#include <znc/Chan.h>
#include <znc/User.h>
class CAutoVoiceUser {
public:
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include <znc/Modules.h>
class CBlockMotd : public CModule {
public:
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include <znc/Modules.h>
#include <iconv.h>
#ifndef ICONV_CONST
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "IRCNetwork.h"
#include "Chan.h"
#include "Modules.h"
#include <znc/IRCNetwork.h>
#include <znc/Chan.h>
#include <znc/Modules.h>
class CClearBufferOnMsgMod : public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "Chan.h"
#include <znc/Modules.h>
#include <znc/Chan.h>
class CCtcpFloodMod : public CModule {
public:
+5 -5
View File
@@ -6,11 +6,11 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "Chan.h"
#include "User.h"
#include "Modules.h"
#include "FileUtils.h"
#include <znc/znc.h>
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/Modules.h>
#include <znc/FileUtils.h>
class CDCCMod;
+2 -2
View File
@@ -13,8 +13,8 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "User.h"
#include <znc/znc.h>
#include <znc/User.h>
#include <pwd.h>
#include <grp.h>
+4 -4
View File
@@ -9,10 +9,10 @@
* Author: imaginos <imaginos@imaginos.net>
*/
#include "FileUtils.h"
#include "MD5.h"
#include "User.h"
#include "znc.h"
#include <znc/FileUtils.h>
#include <znc/MD5.h>
#include <znc/User.h>
#include <znc/znc.h>
#include <sstream>
using std::stringstream;
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
class CFOModule : public CModule {
public:
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "Modules.h"
#include "User.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
class CFloodDetachMod : public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "znc.h"
#include <znc/Modules.h>
#include <znc/znc.h>
using std::map;
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "User.h"
#include "znc.h"
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/znc.h>
#include <queue>
class CSocketSorter {
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "Client.h"
#include "FileUtils.h"
#include <znc/Modules.h>
#include <znc/Client.h>
#include <znc/FileUtils.h>
class CMotdFileMod : public CModule {
public:
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "User.h"
#include <znc/znc.h>
#include <znc/User.h>
class CNotifyConnectMod : public CModule {
public:
+2 -2
View File
@@ -11,8 +11,8 @@
* @brief SASL authentication module for znc.
*/
#include "Modules.h"
#include "znc.h"
#include <znc/Modules.h>
#include <znc/znc.h>
#include <sasl/sasl.h>
class CSASLAuthMod : public CModule {
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
class CSendRaw_Mod: public CModule {
void SendClient(const CString& sLine) {
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "FileUtils.h"
#include "User.h"
#include "znc.h"
#include "ExecSock.h"
#include <znc/FileUtils.h>
#include <znc/User.h>
#include <znc/znc.h>
#include <znc/ExecSock.h>
// Forward Declaration
class CShellMod;
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include <znc/znc.h>
class CFailToBanMod : public CModule {
public:
+5 -5
View File
@@ -6,11 +6,11 @@
* by the Free Software Foundation.
*/
#include "FileUtils.h"
#include "IRCSock.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/FileUtils.h>
#include <znc/IRCSock.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
class CIdentFileModule : public CModule {
CString m_sOrigISpoof;
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "User.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
class CKeepNickMod;
+2 -2
View File
@@ -13,8 +13,8 @@
*
*/
#include "Chan.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/IRCNetwork.h>
class CRejoinJob: public CTimer {
public:
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "Chan.h"
#include "znc.h"
#include <znc/User.h>
#include <znc/Chan.h>
#include <znc/znc.h>
using std::map;
using std::pair;
+5 -5
View File
@@ -7,11 +7,11 @@
* by the Free Software Foundation.
*/
#include "FileUtils.h"
#include "User.h"
#include "IRCNetwork.h"
#include "Chan.h"
#include "Server.h"
#include <znc/FileUtils.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Chan.h>
#include <znc/Server.h>
class CLogMod: public CModule {
public:
+7 -7
View File
@@ -6,13 +6,13 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "FileUtils.h"
#include "IRCSock.h"
#include "Modules.h"
#include "Nick.h"
#include "User.h"
#include "znc.h"
#include <znc/Chan.h>
#include <znc/FileUtils.h>
#include <znc/IRCSock.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <znc/User.h>
#include <znc/znc.h>
#include "modperl/module.h"
#include "modperl/swigperlrun.h"
+41 -41
View File
@@ -14,31 +14,31 @@
# undef Pause
#endif
#include <utility>
#include "../Utils.h"
#include "../Config.h"
#include "../Socket.h"
#include "../Modules.h"
#include "../Nick.h"
#include "../Chan.h"
#include "../User.h"
#include "../Client.h"
#include "../IRCSock.h"
#include "../Listener.h"
#include "../HTTPSock.h"
#include "../Template.h"
#include "../WebModules.h"
#include "../znc.h"
#include "../Server.h"
#include "../ZNCString.h"
#include "../FileUtils.h"
#include "../ZNCDebug.h"
#include "../ExecSock.h"
#include "../include/znc/Utils.h"
#include "../include/znc/Config.h"
#include "../include/znc/Socket.h"
#include "../include/znc/Modules.h"
#include "../include/znc/Nick.h"
#include "../include/znc/Chan.h"
#include "../include/znc/User.h"
#include "../include/znc/Client.h"
#include "../include/znc/IRCSock.h"
#include "../include/znc/Listener.h"
#include "../include/znc/HTTPSock.h"
#include "../include/znc/Template.h"
#include "../include/znc/WebModules.h"
#include "../include/znc/znc.h"
#include "../include/znc/Server.h"
#include "../include/znc/ZNCString.h"
#include "../include/znc/FileUtils.h"
#include "../include/znc/ZNCDebug.h"
#include "../include/znc/ExecSock.h"
#include "modperl/module.h"
#define stat struct stat
%}
%begin %{
#include "zncconfig.h"
#include "znc/zncconfig.h"
%}
%include <typemaps.i>
@@ -72,28 +72,28 @@ namespace std {
#define u_short unsigned short
#define u_int unsigned int
#include "../ZNCString.h"
%include "../defines.h"
%include "../Utils.h"
%include "../Config.h"
%include "../Csocket.h"
#include "../include/znc/ZNCString.h"
%include "../include/znc/defines.h"
%include "../include/znc/Utils.h"
%include "../include/znc/Config.h"
%include "../include/znc/Csocket.h"
%template(ZNCSocketManager) TSocketManager<CZNCSock>;
%include "../Socket.h"
%include "../FileUtils.h"
%include "../Modules.h"
%include "../Nick.h"
%include "../Chan.h"
%include "../User.h"
%include "../Client.h"
%include "../IRCSock.h"
%include "../Listener.h"
%include "../HTTPSock.h"
%include "../Template.h"
%include "../WebModules.h"
%include "../znc.h"
%include "../Server.h"
%include "../ZNCDebug.h"
%include "../ExecSock.h"
%include "../include/znc/Socket.h"
%include "../include/znc/FileUtils.h"
%include "../include/znc/Modules.h"
%include "../include/znc/Nick.h"
%include "../include/znc/Chan.h"
%include "../include/znc/User.h"
%include "../include/znc/Client.h"
%include "../include/znc/IRCSock.h"
%include "../include/znc/Listener.h"
%include "../include/znc/HTTPSock.h"
%include "../include/znc/Template.h"
%include "../include/znc/WebModules.h"
%include "../include/znc/znc.h"
%include "../include/znc/Server.h"
%include "../include/znc/ZNCDebug.h"
%include "../include/znc/ExecSock.h"
%include "modperl/module.h"
+1 -1
View File
@@ -8,7 +8,7 @@
#pragma once
#include "Modules.h"
#include <znc/Modules.h>
#if HAVE_VISIBILITY
#pragma GCC visibility push(default)
+7 -7
View File
@@ -8,13 +8,13 @@
#include <Python.h>
#include "Chan.h"
#include "FileUtils.h"
#include "IRCSock.h"
#include "Modules.h"
#include "Nick.h"
#include "User.h"
#include "znc.h"
#include <znc/Chan.h>
#include <znc/FileUtils.h>
#include <znc/IRCSock.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <znc/User.h>
#include <znc/znc.h>
#include "modpython/swigpyrun.h"
#include "modpython/module.h"
+43 -43
View File
@@ -8,26 +8,26 @@
%module znc_core %{
#include <utility>
#include "../Utils.h"
#include "../Config.h"
#include "../Socket.h"
#include "../Modules.h"
#include "../Nick.h"
#include "../Chan.h"
#include "../User.h"
#include "../IRCNetwork.h"
#include "../Client.h"
#include "../IRCSock.h"
#include "../Listener.h"
#include "../HTTPSock.h"
#include "../Template.h"
#include "../WebModules.h"
#include "../znc.h"
#include "../Server.h"
#include "../ZNCString.h"
#include "../FileUtils.h"
#include "../ZNCDebug.h"
#include "../ExecSock.h"
#include "../include/znc/Utils.h"
#include "../include/znc/Config.h"
#include "../include/znc/Socket.h"
#include "../include/znc/Modules.h"
#include "../include/znc/Nick.h"
#include "../include/znc/Chan.h"
#include "../include/znc/User.h"
#include "../include/znc/IRCNetwork.h"
#include "../include/znc/Client.h"
#include "../include/znc/IRCSock.h"
#include "../include/znc/Listener.h"
#include "../include/znc/HTTPSock.h"
#include "../include/znc/Template.h"
#include "../include/znc/WebModules.h"
#include "../include/znc/znc.h"
#include "../include/znc/Server.h"
#include "../include/znc/ZNCString.h"
#include "../include/znc/FileUtils.h"
#include "../include/znc/ZNCDebug.h"
#include "../include/znc/ExecSock.h"
#include "modpython/module.h"
#include "modpython/retstring.h"
@@ -37,7 +37,7 @@ using std::allocator;
%}
%begin %{
#include "zncconfig.h"
#include "znc/zncconfig.h"
%}
%include <pyabc.i>
@@ -86,29 +86,29 @@ namespace std {
#define u_short unsigned short
#define u_int unsigned int
#include "../ZNCString.h"
%include "../defines.h"
%include "../Utils.h"
%include "../Config.h"
%include "../Csocket.h"
#include "../include/znc/ZNCString.h"
%include "../include/znc/defines.h"
%include "../include/znc/Utils.h"
%include "../include/znc/Config.h"
%include "../include/znc/Csocket.h"
%template(ZNCSocketManager) TSocketManager<CZNCSock>;
%include "../Socket.h"
%include "../FileUtils.h"
%include "../Modules.h"
%include "../Nick.h"
%include "../Chan.h"
%include "../User.h"
%include "../IRCNetwork.h"
%include "../Client.h"
%include "../IRCSock.h"
%include "../Listener.h"
%include "../HTTPSock.h"
%include "../Template.h"
%include "../WebModules.h"
%include "../znc.h"
%include "../Server.h"
%include "../ZNCDebug.h"
%include "../ExecSock.h"
%include "../include/znc/Socket.h"
%include "../include/znc/FileUtils.h"
%include "../include/znc/Modules.h"
%include "../include/znc/Nick.h"
%include "../include/znc/Chan.h"
%include "../include/znc/User.h"
%include "../include/znc/IRCNetwork.h"
%include "../include/znc/Client.h"
%include "../include/znc/IRCSock.h"
%include "../include/znc/Listener.h"
%include "../include/znc/HTTPSock.h"
%include "../include/znc/Template.h"
%include "../include/znc/WebModules.h"
%include "../include/znc/znc.h"
%include "../include/znc/Server.h"
%include "../include/znc/ZNCDebug.h"
%include "../include/znc/ExecSock.h"
%include "modpython/module.h"
+7 -7
View File
@@ -6,13 +6,13 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "IRCSock.h"
#include "Modules.h"
#include "Server.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/Chan.h>
#include <znc/IRCSock.h>
#include <znc/Modules.h>
#include <znc/Server.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
#include <tcl.h>
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include <znc/User.h>
class CNickServ : public CModule
{
+7 -7
View File
@@ -6,13 +6,13 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "HTTPSock.h"
#include "Server.h"
#include "Template.h"
#include "User.h"
#include "znc.h"
#include "WebModules.h"
#include <znc/Chan.h>
#include <znc/HTTPSock.h>
#include <znc/Server.h>
#include <znc/Template.h>
#include <znc/User.h>
#include <znc/znc.h>
#include <znc/WebModules.h>
#include <sstream>
using std::stringstream;
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "znc.h"
#include "IRCNetwork.h"
#include <znc/User.h>
#include <znc/znc.h>
#include <znc/IRCNetwork.h>
// If you change these and it breaks, you get to keep the pieces
#define CHAN_PREFIX_1 "~"
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include "IRCNetwork.h"
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <algorithm>
class CPerform : public CModule {
+6 -6
View File
@@ -6,12 +6,12 @@
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "User.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include "Nick.h"
#include "Chan.h"
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
#include <znc/Nick.h>
#include <znc/Chan.h>
#ifndef Q_DEBUG_COMMUNICATION
#define Q_DEBUG_COMMUNICATION 0
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include <znc/User.h>
class CRawMod : public CModule {
public:
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "znc.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include <znc/znc.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
struct reply {
const char *szReply;
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "Client.h"
#include "Chan.h"
#include "User.h"
#include "Modules.h"
#include <znc/Client.h>
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/Modules.h>
class CSampleTimer : public CTimer {
public:
+4 -4
View File
@@ -14,10 +14,10 @@
#define REQUIRESSL
#include "Chan.h"
#include "User.h"
#include "IRCNetwork.h"
#include "FileUtils.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/FileUtils.h>
#include <sys/stat.h>
#define CRYPT_VERIFICATION_TOKEN "::__:SAVEBUFF:__::"
+4 -4
View File
@@ -11,10 +11,10 @@
#define REQUIRESSL
#include "FileUtils.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <znc/FileUtils.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
#include <sstream>
using std::pair;
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "User.h"
#include <znc/User.h>
#define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s"
#define SIMPLE_AWAY_DEFAULT_TIME 60
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/IRCNetwork.h>
class CStickyChan : public CModule
{
+3 -3
View File
@@ -6,9 +6,9 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "User.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <list>
using std::list;
+10 -10
View File
@@ -6,16 +6,16 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "HTTPSock.h"
#include "Server.h"
#include "Template.h"
#include "User.h"
#include "znc.h"
#include "WebModules.h"
#include "ZNCString.h"
#include "Listener.h"
#include "IRCNetwork.h"
#include <znc/Chan.h>
#include <znc/HTTPSock.h>
#include <znc/Server.h>
#include <znc/Template.h>
#include <znc/User.h>
#include <znc/znc.h>
#include <znc/WebModules.h>
#include <znc/ZNCString.h>
#include <znc/Listener.h>
#include <znc/IRCNetwork.h>
#include <sstream>
#include <utility>
+1 -1
View File
@@ -6,7 +6,7 @@
* by the Free Software Foundation.
*/
#include "Buffer.h"
#include <znc/Buffer.h>
CBufLine::CBufLine(const CString& sPre, const CString& sPost, bool bIncNick=true) {
m_sPre = sPre;
+7 -7
View File
@@ -6,13 +6,13 @@
* by the Free Software Foundation.
*/
#include "Chan.h"
#include "FileUtils.h"
#include "IRCSock.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include "Config.h"
#include <znc/Chan.h>
#include <znc/FileUtils.h>
#include <znc/IRCSock.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
#include <znc/Config.h>
CChan::CChan(const CString& sName, CIRCNetwork* pNetwork, bool bInConfig, CConfig *pConfig) {
m_sName = sName.Token(0);
+8 -8
View File
@@ -6,14 +6,14 @@
* by the Free Software Foundation.
*/
#include "Client.h"
#include "Chan.h"
#include "FileUtils.h"
#include "IRCSock.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include "WebModules.h"
#include <znc/Client.h>
#include <znc/Chan.h>
#include <znc/FileUtils.h>
#include <znc/IRCSock.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
#include <znc/WebModules.h>
#define CALLMOD(MOD, CLIENT, USER, NETWORK, FUNC) { \
CModule *pModule = NULL; \
+9 -9
View File
@@ -6,15 +6,15 @@
* by the Free Software Foundation.
*/
#include "Client.h"
#include "Chan.h"
#include "FileUtils.h"
#include "IRCNetwork.h"
#include "IRCSock.h"
#include "Listener.h"
#include "Server.h"
#include "User.h"
#include "znc.h"
#include <znc/Client.h>
#include <znc/Chan.h>
#include <znc/FileUtils.h>
#include <znc/IRCNetwork.h>
#include <znc/IRCSock.h>
#include <znc/Listener.h>
#include <znc/Server.h>
#include <znc/User.h>
#include <znc/znc.h>
void CClient::UserCommand(CString& sLine) {
if (!m_pUser) {
+2 -2
View File
@@ -6,8 +6,8 @@
* by the Free Software Foundation.
*/
#include "Config.h"
#include "FileUtils.h"
#include <znc/Config.h>
#include <znc/FileUtils.h>
#include <stack>
#include <sstream>
+1 -1
View File
@@ -30,7 +30,7 @@
*
*/
#include "Csocket.h"
#include <znc/Csocket.h>
#ifdef __NetBSD__
#include <sys/param.h>
#endif /* __NetBSD__ */
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "FileUtils.h"
#include "ExecSock.h"
#include "Utils.h"
#include "ZNCDebug.h"
#include <znc/FileUtils.h>
#include <znc/ExecSock.h>
#include <znc/Utils.h>
#include <znc/ZNCDebug.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
+4 -4
View File
@@ -6,10 +6,10 @@
* by the Free Software Foundation.
*/
#include "HTTPSock.h"
#include "FileUtils.h"
#include "Modules.h"
#include "znc.h"
#include <znc/HTTPSock.h>
#include <znc/FileUtils.h>
#include <znc/Modules.h>
#include <znc/znc.h>
#include <sstream>
#include <iomanip>
+10 -10
View File
@@ -6,16 +6,16 @@
* by the Free Software Foundation.
*/
#include "IRCNetwork.h"
#include "Modules.h"
#include "User.h"
#include "FileUtils.h"
#include "Config.h"
#include "Client.h"
#include "IRCSock.h"
#include "Server.h"
#include "Chan.h"
#include "znc.h"
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/User.h>
#include <znc/FileUtils.h>
#include <znc/Config.h>
#include <znc/Client.h>
#include <znc/IRCSock.h>
#include <znc/Server.h>
#include <znc/Chan.h>
#include <znc/znc.h>
bool CIRCNetwork::IsValidNetwork(const CString& sNetwork) {
// ^[-\w]+$
+7 -7
View File
@@ -6,13 +6,13 @@
* by the Free Software Foundation.
*/
#include "IRCSock.h"
#include "Chan.h"
#include "Client.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include "Server.h"
#include <znc/IRCSock.h>
#include <znc/Chan.h>
#include <znc/Client.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/znc.h>
#include <znc/Server.h>
// These are used in OnGeneralCTCP()
const time_t CIRCSock::m_uCTCPFloodTime = 5;

Some files were not shown because too many files have changed in this diff Show More