CTemplate: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
WebModules: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
client auth: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
CSmartPtr: Remove, superseded by std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
modpython: Switch from CSmartPtr to std::shared_ptr

Patch by DarthGandalf, I just committed it to git.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Merge commit 'refs/pull/665/head' of github.com:znc/znc
Fix modpython+shared_ptr
log: add support for logging rules

By default, everything is logged. The first matching rule wins.
Negation (!) and wildcards (*) are supported.

For example, disable logging for all channels, except #znc:

    /msg *log setrules #znc !#*

Queries do not match either of the above rules, so they get logged.