I don't think there is a high change that the file lock becomes available
in the short time we did loop and retry the lock, so that code served no
real purpose.
Also, this includes unistd.h in Utils.h which is needed for OpenBSD.
Thanks to fred for testing on his openbsd/sparc box.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@918 726aef4b-f618-498e-8847-2d620e286838
Some others reported that all their text is read, but they did not know it was
the sample module. Now this should clear
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@916 726aef4b-f618-498e-8847-2d620e286838
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
Instead of having one big file which is generated in a seperated step,
we now have a directory where serveral files are created.
This fixes .depend, which was broken since we don't generate .o files
for our modules.
Everyone will have to delete his .depend file after this.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@914 726aef4b-f618-498e-8847-2d620e286838
Buffer, KeepBuffer and AutoCycle are only written if different from the user
settings; Detached is only written when set.
Thanks to SilverLeo for this patch
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@913 726aef4b-f618-498e-8847-2d620e286838
When we ran CZNC::~CZNC() we called DeleteUsers() which called
RestartConnectUser(). Since we had already deleted that timer, we called
some already deleted class.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@908 726aef4b-f618-498e-8847-2d620e286838
This also simplifies the module flag handling for saslauth and modperl.
(Both don't need a special rule for compilling anymore)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@905 726aef4b-f618-498e-8847-2d620e286838
These are mostly string casts, handling function's return value and some
weird warning about missing spaces on empty while loops.
These were reported by and fixed with Marcus Rueckert <darix@opensu.se>.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@904 726aef4b-f618-498e-8847-2d620e286838
Based on darix' patch I wrote this. Modperl's changes were not tested since I
didn't find someone who could test it. Well...
Ah and btw it regenerates configure
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@902 726aef4b-f618-498e-8847-2d620e286838
This saves me 70% of CPU time on a DCC transfer over localhost.
With this patch ZNC officially sucks less (tm) :)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@899 726aef4b-f618-498e-8847-2d620e286838
Now webadmin uses what you have in your <User> section for DefModes,
BufferCount, AutoCycle and KeepBuffer when you create a new user.
Thanks to SilverLeo for noticing and writing this patch.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@886 726aef4b-f618-498e-8847-2d620e286838
Other stuff included here:
- Always send the quit message when disconnecting from IRC
- Partly rewrite CConnectUserTimer::RunJob() for some de-uglification
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@874 726aef4b-f618-498e-8847-2d620e286838