mirror of
https://github.com/znc/znc.git
synced 2026-05-08 06:14:40 +02:00
Change "znc" to "ZNC".
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ void CClient::ReadLine(const CString& sData) {
|
||||
}
|
||||
return;
|
||||
} else if (sCommand.Equals("PING")) {
|
||||
// All PONGs are generated by znc. We will still forward this to
|
||||
// All PONGs are generated by ZNC. We will still forward this to
|
||||
// the ircd, but all PONGs from irc will be blocked.
|
||||
if (sLine.length() >= 5)
|
||||
PutClient(":irc.znc.in PONG irc.znc.in " + sLine.substr(5));
|
||||
|
||||
+1
-1
@@ -1100,7 +1100,7 @@ ModHandle CModules::OpenModule(const CString& sModule, const CString& sModPath,
|
||||
// that (despite what the man page says) we must include either of
|
||||
// RTLD_NOW and RTLD_LAZY and either of RTLD_GLOBAL and RTLD_LOCAL.
|
||||
//
|
||||
// RTLD_NOW vs. RTLD_LAZY: We use RTLD_NOW to avoid znc dying due to
|
||||
// RTLD_NOW vs. RTLD_LAZY: We use RTLD_NOW to avoid ZNC dying due to
|
||||
// failed symbol lookups later on. Doesn't really seem to have much of a
|
||||
// performance impact.
|
||||
//
|
||||
|
||||
@@ -34,7 +34,7 @@ class CModInfo;
|
||||
#ifndef HAVE_LIBSSL
|
||||
#error -
|
||||
#error -
|
||||
#error This module only works when znc is compiled with OpenSSL support
|
||||
#error This module only works when ZNC is compiled with OpenSSL support
|
||||
#error -
|
||||
#error -
|
||||
#endif
|
||||
@@ -291,7 +291,7 @@ private:
|
||||
|
||||
/** The base class for your own ZNC modules.
|
||||
*
|
||||
* If you want to write a module for znc, you will have to implement a class
|
||||
* If you want to write a module for ZNC, you will have to implement a class
|
||||
* which inherits from this class. You should override some of the "On*"
|
||||
* functions in this class. These function will then be called by ZNC when the
|
||||
* associated event happens.
|
||||
|
||||
@@ -122,13 +122,14 @@ These directories are also in there:
|
||||
|
||||
This file shouldn't be too hard too understand. An explanation of all the
|
||||
items can be found on the [Configuration](http://wiki.znc.in/Configuration)-Page.
|
||||
Warning: better not to edit config, while ZNC is running.
|
||||
|
||||
To rehash the config file, you can send ZNC SIGHUP via
|
||||
pkill -SIGHUP znc
|
||||
or you can login to znc and use
|
||||
or you can login to ZNC and use
|
||||
/msg *status rehash
|
||||
|
||||
If you changed some settings while znc is running, a simple
|
||||
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 this:
|
||||
/msg *status saveconfig
|
||||
|
||||
+4
-2
@@ -82,7 +82,8 @@ CTemplate::~CTemplate() {
|
||||
}
|
||||
|
||||
void CTemplate::Init() {
|
||||
/* We have no CConfig in znc land
|
||||
/* We have no CConfig in ZNC land
|
||||
* Hmm... Actually, we do have it now.
|
||||
CString sPath(CConfig::GetValue("WebFilesPath"));
|
||||
|
||||
if (!sPath.empty()) {
|
||||
@@ -789,7 +790,8 @@ CString CTemplate::GetValue(const CString& sArgs, bool bFromIf) {
|
||||
msArgs[sArg.Token(0, false, "=").AsUpper()] = sArg.Token(1, true, "=");
|
||||
}
|
||||
|
||||
/* We have no CConfig in znc land
|
||||
/* We have no CConfig in ZNC land
|
||||
* Hmm... Actually, we do have it now.
|
||||
if (msArgs.find("CONFIG") != msArgs.end()) {
|
||||
sRet = CConfig::GetValue(sName);
|
||||
} else*/ if (msArgs.find("ROWS") != msArgs.end()) {
|
||||
|
||||
@@ -351,13 +351,13 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
|
||||
sValue = *vit;
|
||||
CString sModName = sValue.Token(0);
|
||||
|
||||
// XXX Legacy crap, added in znc 0.089
|
||||
// XXX Legacy crap, added in ZNC 0.089
|
||||
if (sModName == "discon_kick") {
|
||||
CUtils::PrintMessage("NOTICE: [discon_kick] was renamed, loading [disconkick] instead");
|
||||
sModName = "disconkick";
|
||||
}
|
||||
|
||||
// XXX Legacy crap, added in znc 0.099
|
||||
// XXX Legacy crap, added in ZNC 0.099
|
||||
if (sModName == "fixfreenode") {
|
||||
CUtils::PrintMessage("NOTICE: [fixfreenode] doesn't do anything useful anymore, ignoring it");
|
||||
continue;
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ static const unsigned char base64_table[256] = {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief String class that is used inside znc.
|
||||
* @brief String class that is used inside ZNC.
|
||||
*
|
||||
* All strings that are used in ZNC and its modules should use instances of this
|
||||
* class. It provides helpful functions for parsing input like Token() and
|
||||
|
||||
+3
-3
@@ -132,7 +132,7 @@ AC_ARG_ENABLE( [c-ares],
|
||||
[ARES="$enableval"],
|
||||
[ARES="auto"])
|
||||
AC_ARG_ENABLE( [run-from-source],
|
||||
AS_HELP_STRING([--enable-run-from-source], [znc will be runnable without installation]),
|
||||
AS_HELP_STRING([--enable-run-from-source], [ZNC will be runnable without installation]),
|
||||
[if test "x$enableval" = "xyes" ; then
|
||||
AC_DEFINE([RUN_FROM_SOURCE], [1],
|
||||
[Define if ZNC should be runnable without installation])
|
||||
@@ -281,7 +281,7 @@ if test -z "$ISCYGWIN" ; then
|
||||
# warning: -fPIC ignored for target (all code is position independent)
|
||||
appendMod -fPIC
|
||||
else
|
||||
# But cygwin does want most of znc in a shared lib
|
||||
# But cygwin does want most of ZNC in a shared lib
|
||||
LIBZNC="libznc.dll"
|
||||
LIBZNCDIR="$bindir"
|
||||
fi
|
||||
@@ -526,7 +526,7 @@ AC_CONFIG_FILES([test/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
echo
|
||||
echo znc AC_PACKAGE_VERSION configured
|
||||
echo ZNC AC_PACKAGE_VERSION configured
|
||||
echo
|
||||
echo "prefix: $prefix"
|
||||
echo "debug: $DEBUG"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#define __DEBUG__
|
||||
#endif
|
||||
|
||||
// Redefine some Csocket debugging mechanisms to use znc's
|
||||
// Redefine some Csocket debugging mechanisms to use ZNC's
|
||||
#define CS_DEBUG(f) DEBUG(__FILE__ << ":" << __LINE__ << " " << f)
|
||||
#define PERROR(f) DEBUG(__FILE__ << ":" << __LINE__ << " " << f << ": " << strerror(GetSockError()))
|
||||
|
||||
|
||||
+2
-2
@@ -55,9 +55,9 @@ do
|
||||
MOD="${MOD%.cc}"
|
||||
|
||||
if test ! -f "${FILE}"; then
|
||||
echo "${ERROR} Building \"${MOD}.so\" for znc $VERSION... File not found"
|
||||
echo "${ERROR} Building \"${MOD}.so\" for ZNC $VERSION... File not found"
|
||||
else
|
||||
printf "Building \"${MOD}.so\" for znc $VERSION... "
|
||||
printf "Building \"${MOD}.so\" for ZNC $VERSION... "
|
||||
if ${CXX} ${CXXFLAGS} ${INCLUDES} ${LDFLAGS} ${LIBS} ${MODLINK} -o "${MOD}.so" "${FILE}" ; then
|
||||
echo "${OK}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user