From b1339657ef63fadc0c1e6a9bb74dea563acc59d3 Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 17 May 2010 12:56:23 +0000 Subject: [PATCH] Move the definition of _SKINDIR_ elsewhere It's only used in WebModules.cpp and in contrast to the other #defines from main.h, this one is not set in configure by default. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1996 726aef4b-f618-498e-8847-2d620e286838 --- WebModules.cpp | 3 +++ main.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WebModules.cpp b/WebModules.cpp index db95ffe1..6c320efc 100644 --- a/WebModules.cpp +++ b/WebModules.cpp @@ -11,6 +11,9 @@ #include "znc.h" #include +/// @todo Do we want to make this a configure option? +#define _SKINDIR_ _DATADIR_ "/webskins" + // Sessions are valid for a day, (24h, ...) CWebSessionMap CWebSock::m_mspSessions(24 * 60 * 60 * 1000); diff --git a/main.h b/main.h index 7a4c690e..f15a17f0 100644 --- a/main.h +++ b/main.h @@ -28,10 +28,6 @@ #define _DATADIR_ "/usr/share/znc" #endif -#ifndef _SKINDIR_ -#define _SKINDIR_ _DATADIR_ "/webskins" -#endif - #define MODULECALL(macFUNC, macUSER, macCLIENT, macEXITER) \ if (macUSER) { \ CGlobalModules& GMods = CZNC::Get().GetModules(); \