Mirror of the official znc repository https://znc.in
 
 
 
 
 
 
Go to file
Alexey Sokolov 82e82f0bf6 Merge branch '1.9.x' 2024-04-09 22:51:50 +01:00
.ci CI: Make crowdin update branch 1.9 instead of of 1.8 2024-02-22 00:52:46 +00:00
.github Merge pull request #1895 from znc/dependabot/github_actions/actions/checkout-4 2024-02-05 22:36:50 +00:00
cmake Welcome to 2024 2023-12-31 21:09:25 +01:00
docker@8638ba43ac Update docker submodule 2024-02-22 01:09:29 +00:00
include Remove unused field and getter 2024-02-10 00:18:11 +00:00
man Remove autoconf, leave only CMake 2020-05-01 23:44:19 +01:00
modules Merge branch '1.9.x' 2024-04-09 22:51:50 +01:00
src Update translations from Crowdin for id_ID 2024-03-03 22:25:45 +00:00
test Skip modperl/modpython tests cleaner 2024-02-25 14:13:32 +00:00
third_party Skip modperl/modpython tests cleaner 2024-02-25 14:13:32 +00:00
translations Add Turkish to translations/ 2024-02-09 01:18:20 +00:00
webskins Fix other skins for #1744 2020-10-04 21:01:15 +01:00
zz_msg Welcome to 2024 2023-12-31 21:09:25 +01:00
.appveyor.yml Force argon support in CI 2024-01-05 00:46:28 +00:00
.clang-format clang-format: switch tabs to spaces 2015-12-07 00:53:30 +00:00
.codecov.yml Fix coverage for C++ on github actions 2021-07-04 18:02:20 +01:00
.dockerignore Build Docker image from git on Travis 2018-05-11 09:04:15 +01:00
.gitignore Add /install_manifest.txt and /install_manifest_*.txt to .gitignore. 2017-02-14 22:58:27 +00:00
.gitmodules Switch to upstream cctz 2023-01-09 22:30:28 +00:00
.travis-coverity-scan.py CI: Try to fix coverity setup 2020-06-23 09:09:11 +01:00
.travis-coverity.yml CI: Try to fix coverity setup 2020-06-23 09:09:11 +01:00
.travis.yml Merge branch '1.8.x' 2020-06-07 07:04:32 +01:00
CMakeLists.txt Merge branch '1.9.x' 2024-02-25 14:28:20 +00:00
CONTRIBUTING.md Switch znc.in URLs to https 2017-05-30 22:32:01 +01:00
ChangeLog.md Increase the version number to 1.9.0 2024-02-22 00:20:59 +00:00
Dockerfile docker: Fix startup-sequence locations 2024-02-28 19:41:51 +01:00
Doxyfile Fix spelling in documentation 2016-11-07 20:53:31 +00:00
Jenkinsfile CI: update comment 2023-01-07 13:51:56 +00:00
LICENSE Change ZNC license to Apache 2.0 2013-06-14 00:43:34 +04:00
NOTICE Use std::string_view instead of backported one 2023-11-18 11:20:22 +00:00
README.md Fix image in readme on github 2024-02-10 08:18:38 +00:00
TRANSLATORS.md Update translations from Crowdin for 2023-10-01 00:33:48 +00:00
ZNCConfig.cmake.in Welcome to 2024 2023-12-31 21:09:25 +01:00
configure Show a better error message if cmake is missing 2024-03-03 21:47:45 +00:00
configure.sh Looks like appveyor cygwin doesn't like such symlinks. Make it explicitly relative 2020-05-17 16:15:08 +01:00
logo.png Fix image in readme on github 2024-02-10 08:18:38 +00:00
make-tarball.sh Copy relevant parts of cctz to the tarball 2023-01-07 21:26:01 +00:00
translation_pot.py Welcome to 2024 2023-12-31 21:09:25 +01:00
znc-buildmod.cmake.in Welcome to 2024 2023-12-31 21:09:25 +01:00
znc.pc.cmake.in Switch znc.in URLs to https 2017-05-30 22:32:01 +01:00
znc.service.in Fix path in systemd service (which shouldn't be here at all) 2020-09-22 10:20:47 +01:00

README.md

ZNC - An advanced IRC bouncer

GitHub Workflow Status Jenkins Build Status AppVeyor Build status Coverage Status

Table of contents

Minimal Requirements

Core:

  • GNU make
  • pkg-config
  • GCC 8 or clang 5
  • CMake 3.13

Optional Requirements

SSL/TLS support:

  • openssl 0.9.7d or later
    • try installing openssl-dev, openssl-devel or libssl-dev
    • macOS: OpenSSL from Homebrew is preferred over system

modperl:

  • perl and its bundled libperl
  • SWIG if building from git

modpython:

  • python 3.4+ and its bundled libpython
  • perl is a build dependency
  • macOS: Python from Homebrew is preferred over system version
  • SWIG if building from git

cyrusauth:

  • This module needs cyrus-sasl2

Character Encodings:

  • To get proper character encoding and charsets install ICU (libicu4-dev)

I18N (UI translation):

  • Boost.Locale
  • gettext is a build dependency

Argon2 password hash:

  • libargon2

Installing ZNC

Installation from source code is performed using the CMake toolchain.

mkdir build
cd build
cmake ..
make
make install

You can use cmake-gui or ccmake for more interactiveness.

There is also configure.sh which should make migration to CMake easier: it accepts the same parameters as old ./configure, but calls CMake with CMake-style parameters.

Note for FreeBSD users: By default base OpenSSL is selected. If you want the one from ports, use -DOPENSSL_ROOT_DIR=/usr/local.

For troubleshooting, cmake --system-information will show you details.

Setting up znc.conf

For setting up a configuration file in ~/.znc you can simply do znc --makeconf or ./znc --makeconf for in-place execution.

If you are using SSL you should do znc --makepem

Special config options

When you create your ZNC configuration file via --makeconf, you are asked two questions which might not be easy to understand.

Number of lines to buffer per channel

How many messages should be buffered for each channel. When you connect to ZNC you get a buffer replay for each channel which shows what was said last. This option selects the number of lines this replay should consist of. Increasing this can greatly increase ZNC's memory usage if you are hosting many users. The default value should be fine for most setups.

Would you like to keep buffers after replay?

If this is disabled, you get the buffer playback only once and then it is deleted. If this is enabled, the buffer is not deleted. This may be useful if you regularly use more than one client to connect to ZNC.

Using ZNC

Once you have started ZNC you can connect with your favorite IRC-client to ZNC. You should use username:password as the server password (e.g. /pass user:pass).

Once you are connected you can do /msg *status help for some commands. Every module you have loaded (/msg *status listmods) should additionally provide /msg *modulename help

File Locations

In its data dir (~/.znc is default) ZNC saves most of its data. The only exception are modules and module data, which are saved in <prefix>/lib/znc and <prefix>/share/znc, and the znc binary itself. More modules (e.g. if you install some later) can be saved in <data dir>/modules (-> ~/.znc/modules).

In the datadir is only one file:

  • znc.pem - This is the server certificate ZNC uses for listening and is created with znc --makepem.

These directories are also in there:

  • configs - Contains znc.conf (ZNC's config file) and backups of older configs.
  • modules - ZNC also looks in here for a module.
  • moddata - Global modules save their settings here. (e.g. webadmin saves the current skin name in here)
  • users - This is per-user data and mainly contains just a moddata directory and a directory for each network configured.

ZNC's config file

This file shouldn't be too hard too understand. An explanation of all the items can be found on the Configuration page. Warning: it is better not to edit config while ZNC is running. Use the webadmin and controlpanel modules instead.

If you changed some settings while ZNC is running, a simple pkill -SIGUSR1 znc will make ZNC rewrite its config file. Alternatively you can use /msg *status saveconfig

Writing own modules

You can write your own modules in either C++, python or perl.

C++ modules are compiled by either saving them in the modules source dir and running make or with the znc-buildmod shell script.

For additional info look in the wiki:

Perl modules are loaded through the global module ModPerl.

Python modules are loaded through the global module ModPython.

Further information

Please visit https://znc.in/ or #znc on Libera.Chat if you still have questions:

You can get the latest development version with git: git clone https://github.com/znc/znc.git --recursive