psychon
b16e3ebe6c
Replace CDir::MakeDir() with a version that doesn't do chdir()
...
This means that ZNC now doesn't break with relative data dirs (for me)
any more!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1045 726aef4b-f618-498e-8847-2d620e286838
2008-05-08 17:47:55 +00:00
psychon
01bc68b1cb
Move ChangeDir() and MakeDir() from CUtils to CDir
...
Those function were not modified. Only change is the name.
Those *Dir() functions really made no sense in CUtils when there is FileUtils
stuff. They really fit much better into here. I'll bet they'll make new friends
fast. I mean, why shouldn't they?
Uhm... sorry ;)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1044 726aef4b-f618-498e-8847-2d620e286838
2008-05-08 16:58:32 +00:00
psychon
8cf12e8931
Clean up FileUtils.h
...
This removes some commented out functions and it also
removes CFir::Exists() since CFile::IsDir() does exactly
the same job (and it uses fewer syscalls for that).
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1042 726aef4b-f618-498e-8847-2d620e286838
2008-05-08 13:32:34 +00:00
psychon
b0a1714b86
Remove useless spaces inside of braces "( stuff )"
...
This was generated via the following command:
cat <file> | \
tr "\n" "€"| \
sed -r 's/€[\t ]*\{€/ {€/g; s/\( */(/g; s/ *\)/)/g' | \
tr "€" "\n"
Thanks to SilverLeo for producing this mess :P
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1029 726aef4b-f618-498e-8847-2d620e286838
2008-04-20 13:00:19 +00:00
psychon
f495acd110
Make CFile::Delete() return a bool (true for success)
...
The static version of CFile::Delete() already does so.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@946 726aef4b-f618-498e-8847-2d620e286838
2008-02-08 16:20:20 +00:00
psychon
e72c445694
Clean up includes
...
All the headers are now self-contained (g++ Header.h -o /dev/null).
Some system headers where moved to the .cpp they are actually needed in,
some of our own headers are includes less. (Especially MD5.h)
Headers are sorted alphabetically while in e.g. FileUtils.cpp FileUtils.h
is the first file included.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@915 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:31:16 +00:00
psychon
eeec633e30
Update copyright header for 2008
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@910 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:13:07 +00:00
psychon
a09a7e79f6
Switch to the copyright headers the GPLv2 wants us to have
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@843 726aef4b-f618-498e-8847-2d620e286838
2007-09-21 18:55:33 +00:00
psychon
b6cd5b86e1
Add missing #includes for GCC 4.3 (Debian bug #417793 )
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@833 726aef4b-f618-498e-8847-2d620e286838
2007-08-20 07:44:15 +00:00
prozacx
0a62274975
Committing patches from crox/psychon
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@790 726aef4b-f618-498e-8847-2d620e286838
2007-03-12 06:26:54 +00:00
imaginos
c2b8b7c685
added delimiter support and fixed an eof bug
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@781 726aef4b-f618-498e-8847-2d620e286838
2006-09-23 14:05:18 +00:00
prozacx
e06ca0d672
Added contact info
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@753 726aef4b-f618-498e-8847-2d620e286838
2006-09-13 07:48:28 +00:00
prozacx
6dcacaa79e
Added contact info
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@752 726aef4b-f618-498e-8847-2d620e286838
2006-09-13 07:39:48 +00:00
imaginos
d67c711e2a
gave access to killing the process
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@676 726aef4b-f618-498e-8847-2d620e286838
2006-03-04 08:08:23 +00:00
imaginos
d456374e80
made CExecSock into a base class
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@675 726aef4b-f618-498e-8847-2d620e286838
2006-03-04 05:21:07 +00:00
prozacx
81eef38929
Made some helper funcs const
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@619 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 08:41:45 +00:00
prozacx
ecf431f246
Added CTemplate support which included upgrading String.cpp/h and FileUtils.cpp/h and fixing some issues
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@603 726aef4b-f618-498e-8847-2d620e286838
2006-02-05 05:01:53 +00:00
prozacx
6be9f989cb
Added Copy()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@447 726aef4b-f618-498e-8847-2d620e286838
2005-07-18 04:11:09 +00:00
prozacx
9db44ab1fe
Added SetFileName()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@401 726aef4b-f618-498e-8847-2d620e286838
2005-07-01 18:50:53 +00:00
imaginos
b39ed76d47
need sys/stat.h to compile on freebsd
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@391 726aef4b-f618-498e-8847-2d620e286838
2005-06-28 06:43:11 +00:00
prozacx
0823b27f37
Moved CUtils::wildcmp() into CString class
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@251 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 07:51:46 +00:00
prozacx
beb5b49b3f
Changed all references to std::string over to CString
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@240 726aef4b-f618-498e-8847-2d620e286838
2005-05-05 18:11:04 +00:00
prozacx
b58cb3c8b3
Added CDir and split CFile out from Utils.cpp/h
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@232 726aef4b-f618-498e-8847-2d620e286838
2005-05-02 22:34:11 +00:00