controlpanel.cpp: Increases general verbosity of command results.
controlpanel.cpp: Standardize error wordings

When a network cannot be found for a user, and where a command will output an error under such circumstances, use similar wording in each message.
controlpanel.cpp: Fixed a Fail to Compile error introduced in prior commit.
Fix PartyLine so that forced channels may not be left at all - users will be rejoined at once.
Merge commit 'refs/pull/295/head' of github.com:znc/znc
Catch as references
Merge commit 'refs/pull/303/head' of github.com:znc/znc
Cleaned up more warnings.
Merge commit 'refs/pull/304/head' of github.com:znc/znc
Fix issue introduced in previous commit.
Explain that altering znc.conf by hand is a bad idea. Fixed a typo.
Remove unneeded headers.
Add a generic threads abstraction

This should make it easier to work with threads. It provides classes for mutexes
and condition variables. Additionally, there is a special CMutexGuard that
automatically unlocks the mutex on destruction and a CThreadPool class.

This thread pool is used to replace the thread pool in the sockets code.

Signed-off-by: Uli Schlachter <psychon@znc.in>
CJob: Add a way to do stuff on the main thread

This just moves the pipe from the socket code to the thread pool. However, now
all CJobs can use this and there is a single place for them to get deleted.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Fix #293

In GetAvailableMods() modules paths were returned like "moddir//module.pm",
but when they are loaded, they use path "moddir/module.pm".

Because of that our hack of cleaning %INC when the module is unloaded,
which enables UpdateMod, removed wrong record from %INC, left right
record in it, and erased the module's namespace.

When the module was loaded again, the namespace was not restored,
because "require" didn't load the module, because it was still in %INC.

So, when we call a function of that module, the function does not exist
anymore.
Use " " instead of ":" in awaystore's buffer internal format. Fix #267
I wonder why Heiko was removed from AUTHORS years ago...
updated email addr for Jim Hull
Fix use-after-free which may happen during shutdown

If a module, e.g. keepnick, tries to remove a timer in
OnIRCDisconnected.

Thanks to KindOne for the report.
Improve the way that VERSION_EXTRA is calculated

Instead of doing magic with the result from version.sh so that we can add a
preprocessor macro, the script now just writes src/version.cpp with the expected
content. This should fix all the various issues that we have with quoting the
arguments and things that go wrong when not building znc from a git clone.

Signed-off-by: Uli Schlachter <psychon@znc.in>