mirror of
https://github.com/anope/anope.git
synced 2026-07-04 00:43:12 +02:00
Compare commits
244 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dee851207 | |||
| 9c91d386e4 | |||
| 3e4d87051b | |||
| 26975fc011 | |||
| c15dc49994 | |||
| 14ee76a0ad | |||
| 4465c67790 | |||
| 20e0fa33fc | |||
| 7e76daf39f | |||
| 2ee63f0f68 | |||
| c35029fa2f | |||
| bae8987ec1 | |||
| 470d4d1a97 | |||
| 78bac905c2 | |||
| d88d8e940e | |||
| b2c3775b58 | |||
| b311248bed | |||
| f7f45b4e2b | |||
| 3cad3514f1 | |||
| 1020ca47bd | |||
| 48dbb70ecc | |||
| ae16206f0c | |||
| 7045f206af | |||
| 67bd3e44c0 | |||
| 264981fb1b | |||
| 47d471c53d | |||
| e43bc49ba7 | |||
| d9de4ddd82 | |||
| 8f7f4b1593 | |||
| fc64c0c6dd | |||
| 03d065e952 | |||
| 77a52eec7c | |||
| 523a586176 | |||
| af32a14fc1 | |||
| 5c8548040a | |||
| 6a42c1a4f3 | |||
| 0defcda8d0 | |||
| f6ee88c42a | |||
| 34f65e3266 | |||
| 02ac3a403c | |||
| e1e840a87d | |||
| eb66f9eda0 | |||
| a4c37a373a | |||
| bca9b4ce83 | |||
| a2446b8d4b | |||
| e567cfda36 | |||
| 961a9bc506 | |||
| da6e2730c2 | |||
| 2b8072bf80 | |||
| 49cea76841 | |||
| e1c8aa0dbc | |||
| 2546e865e2 | |||
| d6af21e0d9 | |||
| 18522f7fc8 | |||
| 4c167bed69 | |||
| 32a21679fb | |||
| a5eaf6fc49 | |||
| 9d7245bded | |||
| 02fb4b67cf | |||
| cf44418e10 | |||
| 6fbb7cffe9 | |||
| b279863acb | |||
| 9e7dadb967 | |||
| 9069bf4e2f | |||
| e85b0a5f68 | |||
| 195eff9c04 | |||
| 42aa330db3 | |||
| 1e9d959857 | |||
| 38721993f1 | |||
| 1b782235c4 | |||
| 368300d319 | |||
| 94e10d52fb | |||
| d25c8c169e | |||
| 67b7fed9ed | |||
| e32a8dbbe5 | |||
| 281edf8475 | |||
| ce7c266651 | |||
| c1166e3618 | |||
| 8294c94b95 | |||
| 6f09b703dd | |||
| 466e5be741 | |||
| 32076c099c | |||
| 216b96aa57 | |||
| 6d592e2a0f | |||
| feb5a4d935 | |||
| e03ae0cd85 | |||
| 901fc3e40f | |||
| 5683f45925 | |||
| bafc17472e | |||
| 7638c7a884 | |||
| d25722ddd0 | |||
| 750d1009ec | |||
| b8e7960ff6 | |||
| ff878bbda8 | |||
| 1baf774647 | |||
| 772410d974 | |||
| 7ceb4426c7 | |||
| 10c7a9ff94 | |||
| b3c4b28a67 | |||
| 0da4150283 | |||
| 5920f1b59c | |||
| 68fcb1af93 | |||
| 0574de2d22 | |||
| c9c53dbe61 | |||
| a084245822 | |||
| 77e3f062da | |||
| 0e14adcb0f | |||
| 8bb3067e42 | |||
| 0c469abe4a | |||
| d63e32a579 | |||
| f13c450b93 | |||
| e95c07291a | |||
| 2963fc0a1d | |||
| 5d309d46e1 | |||
| 2e7fcd3098 | |||
| 884759aed4 | |||
| 2ec65023a6 | |||
| 0093f3fa44 | |||
| 2ad76278dd | |||
| 23e59d9f2c | |||
| 3cb9e0b97c | |||
| 0b7b6d9d6d | |||
| 56e6efbe8f | |||
| feed624cdc | |||
| 1a6f42b994 | |||
| 04f49225c9 | |||
| b18d1a69b6 | |||
| 0ace685597 | |||
| bfcfd0b727 | |||
| 087f1cb359 | |||
| 010d20198e | |||
| 953e804231 | |||
| c656fe0694 | |||
| fb3ec7a897 | |||
| 274658f955 | |||
| 7621306f4b | |||
| b804867105 | |||
| f8f1550c31 | |||
| 0fcc66711b | |||
| 8d9574e306 | |||
| 6cb17c734c | |||
| 3545e8e383 | |||
| 3c18e02b0b | |||
| b831cd8a36 | |||
| 516ab164f6 | |||
| b2d028533d | |||
| a88d9cb1f0 | |||
| b57ef5d2c7 | |||
| 1a96390826 | |||
| 60339edf40 | |||
| 6990c692d6 | |||
| 98e62b4032 | |||
| a1d7d42d6a | |||
| 3f7c0829ef | |||
| 46d8af781d | |||
| 67b7c8bd7d | |||
| 21486e2c81 | |||
| 29ac40b584 | |||
| dde444ed0e | |||
| 9b6c209c80 | |||
| 3c7d67c8cd | |||
| c730291762 | |||
| c593661f40 | |||
| a9bf251886 | |||
| beac29b1d0 | |||
| 35d6437d45 | |||
| 76ce8ece1a | |||
| 464093d36e | |||
| 71bb3fefcc | |||
| 1f6f9f5dbb | |||
| 34bf21f7d1 | |||
| 847dfd9523 | |||
| a96e40e249 | |||
| 8656b65e39 | |||
| 39422beaef | |||
| 6d29538346 | |||
| bdf4650ff8 | |||
| 074bde5ccc | |||
| a4f7d847ab | |||
| 5beb338247 | |||
| 7b1154de69 | |||
| 46aeb8b70b | |||
| fe6271dffb | |||
| 7cede5bb60 | |||
| 2b7f0084b7 | |||
| ec7ce09ef4 | |||
| 574c8dfbc7 | |||
| 4381031994 | |||
| b3010c3c6b | |||
| d092f5e7c8 | |||
| 358f46b8ae | |||
| e5125c2c84 | |||
| 65db59b3ec | |||
| 95cd7a6aee | |||
| 12515fd2c1 | |||
| 437a6dbb29 | |||
| d96ca9b824 | |||
| aefde6e44d | |||
| 23a0628fba | |||
| ef9c69f99d | |||
| 8be331618c | |||
| a5fdf7c546 | |||
| dba19d839a | |||
| 7453c71c00 | |||
| f09ea316dd | |||
| ac0f3c5ccf | |||
| 76ea111980 | |||
| 9f9183afc4 | |||
| ef32505633 | |||
| 304494322f | |||
| 9e510cd0d9 | |||
| 0f49d1051a | |||
| 4b97a9b13f | |||
| 07f72a3122 | |||
| f4543edfe2 | |||
| 095751363d | |||
| 1b67b97e93 | |||
| d4bf0957d1 | |||
| 99acdcf168 | |||
| e95950ee26 | |||
| fc0171fb40 | |||
| 1c82697ccb | |||
| f3bb46a9f5 | |||
| 3b62c8f3e2 | |||
| 4d054aa2b2 | |||
| 3a8ff5d456 | |||
| 0b783b66a4 | |||
| 0c7050c506 | |||
| d02b3c1c45 | |||
| d8a945b1a6 | |||
| b50fbec705 | |||
| d488efdcfe | |||
| 13c5eec00a | |||
| 39eb9f8cfc | |||
| 83c2f8e970 | |||
| e23cf0c221 | |||
| de174149f7 | |||
| 663e79e4d3 | |||
| 2a5e7827bd | |||
| 9c0b843665 | |||
| 8fdfa6e094 | |||
| dad4be050b | |||
| 937b0e7185 | |||
| db4f38bcf5 |
@@ -1,5 +1,5 @@
|
|||||||
___
|
___
|
||||||
/ _ \ http://www.anope.org
|
/ _ \ https://www.anope.org/
|
||||||
| /_\ | _ __ _ _ _ _ ___
|
| /_\ | _ __ _ _ _ _ ___
|
||||||
| _ || '_ \/ _ \/ _ \ / _ \
|
| _ || '_ \/ _ \/ _ \ / _ \
|
||||||
| | | || | | |_| |_| | __/
|
| | | || | | |_| |_| | __/
|
||||||
@@ -15,4 +15,5 @@ Anope is a set of Services for IRC networks that allows users to
|
|||||||
manage their nicks and channels in a secure and efficient way,
|
manage their nicks and channels in a secure and efficient way,
|
||||||
and administrators to manage their network with powerful tools.
|
and administrators to manage their network with powerful tools.
|
||||||
|
|
||||||
For all your Anope needs please visit our portal at www.anope.org
|
For all your Anope needs please visit our portal at
|
||||||
|
https://www.anope.org/
|
||||||
|
|||||||
+5
-5
@@ -45,20 +45,20 @@ if(MINOR_VERSION GREATER 5)
|
|||||||
set(CMAKE242_OR_BETTER TRUE)
|
set(CMAKE242_OR_BETTER TRUE)
|
||||||
else(MINOR_VERSION GREATER 5)
|
else(MINOR_VERSION GREATER 5)
|
||||||
set(CMAKE26_OR_BETTER FALSE)
|
set(CMAKE26_OR_BETTER FALSE)
|
||||||
# Also detect if we are using CMake 2.4.8 or better, the FIND sub-command of list() is non-existent in earlier versions
|
# Also detect if we are using CMake 2.4.8 or better, the FIND sub-command of list() is nonexistent in earlier versions
|
||||||
if(PATCH_VERSION GREATER 7)
|
if(PATCH_VERSION GREATER 7)
|
||||||
set(CMAKE248_OR_BETTER TRUE)
|
set(CMAKE248_OR_BETTER TRUE)
|
||||||
set(CMAKE244_OR_BETTER TRUE)
|
set(CMAKE244_OR_BETTER TRUE)
|
||||||
set(CMAKE242_OR_BETTER TRUE)
|
set(CMAKE242_OR_BETTER TRUE)
|
||||||
else(PATCH_VERSION GREATER 7)
|
else(PATCH_VERSION GREATER 7)
|
||||||
set(CMAKE248_OR_BETTER FALSE)
|
set(CMAKE248_OR_BETTER FALSE)
|
||||||
# Also detect if we are using CMake 2.4.4 or better, the CheckCXXCompilerFlag module and SORT sub-command of list() are non-existent in earlier versions
|
# Also detect if we are using CMake 2.4.4 or better, the CheckCXXCompilerFlag module and SORT sub-command of list() are nonexistent in earlier versions
|
||||||
if(PATCH_VERSION GREATER 3)
|
if(PATCH_VERSION GREATER 3)
|
||||||
set(CMAKE244_OR_BETTER TRUE)
|
set(CMAKE244_OR_BETTER TRUE)
|
||||||
set(CMAKE242_OR_BETTER TRUE)
|
set(CMAKE242_OR_BETTER TRUE)
|
||||||
else(PATCH_VERSION GREATER 3)
|
else(PATCH_VERSION GREATER 3)
|
||||||
set(CMAKE244_OR_BETTER FALSE)
|
set(CMAKE244_OR_BETTER FALSE)
|
||||||
# ALSO detect if we are using CMake 2.4.2 or better, the APPEND sub-command of list() is non-existent in earlier versions
|
# ALSO detect if we are using CMake 2.4.2 or better, the APPEND sub-command of list() is nonexistent in earlier versions
|
||||||
if(PATCH_VERSION GREATER 1)
|
if(PATCH_VERSION GREATER 1)
|
||||||
set(CMAKE242_OR_BETTER TRUE)
|
set(CMAKE242_OR_BETTER TRUE)
|
||||||
else(PATCH_VERSION GREATER 1)
|
else(PATCH_VERSION GREATER 1)
|
||||||
@@ -541,14 +541,14 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
|||||||
"bin\\\\anope.bat\\\" \\\"-debug -nofork" "Anope IRC Services (Debug and Window Logging)"
|
"bin\\\\anope.bat\\\" \\\"-debug -nofork" "Anope IRC Services (Debug and Window Logging)"
|
||||||
"bin\\\\anope.bat\\\" \\\"-nofork" "Anope IRC Services (Window Logging)"
|
"bin\\\\anope.bat\\\" \\\"-nofork" "Anope IRC Services (Window Logging)"
|
||||||
"bin\\\\anope.bat\\\" \\\"-nothird" "Anope IRC Services (No Third Party Modules)"
|
"bin\\\\anope.bat\\\" \\\"-nothird" "Anope IRC Services (No Third Party Modules)"
|
||||||
"http://www.anope.org/" "Anope Web Site"
|
"https://www.anope.org/" "Anope Web Site"
|
||||||
)
|
)
|
||||||
# The following doesn't work, but a bug report has been filed about it
|
# The following doesn't work, but a bug report has been filed about it
|
||||||
#set(CPACK_CREATE_DESKTOP_LINK_${SERVICES_BINARY} TRUE)
|
#set(CPACK_CREATE_DESKTOP_LINK_${SERVICES_BINARY} TRUE)
|
||||||
set(CPACK_NSIS_MUI_ICON "${Anope_SOURCE_DIR}/src\\\\win32\\\\anope-icon.ico")
|
set(CPACK_NSIS_MUI_ICON "${Anope_SOURCE_DIR}/src\\\\win32\\\\anope-icon.ico")
|
||||||
set(CPACK_NSIS_MUI_UNIICON "${Anope_SOURCE_DIR}/src\\\\win32\\\\anope-icon.ico")
|
set(CPACK_NSIS_MUI_UNIICON "${Anope_SOURCE_DIR}/src\\\\win32\\\\anope-icon.ico")
|
||||||
set(CPACK_NSIS_INSTALLED_ICON_NAME "${SERVICES_BINARY}")
|
set(CPACK_NSIS_INSTALLED_ICON_NAME "${SERVICES_BINARY}")
|
||||||
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.anope.org/")
|
set(CPACK_NSIS_URL_INFO_ABOUT "https://www.anope.org/")
|
||||||
set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
|
set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "anope-${VERSION_FULL_NOBUILD}-source")
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "anope-${VERSION_FULL_NOBUILD}-source")
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Configuration script for Services.
|
# Configuration script for Services.
|
||||||
#
|
#
|
||||||
# Anope (c) 2003-2016 Anope Team
|
# Anope (c) 2003-2019 Anope Team
|
||||||
# Contact us at team@anope.org
|
# Contact us at team@anope.org
|
||||||
#
|
#
|
||||||
# This program is free but copyrighted software; see the file COPYING for
|
# This program is free but copyrighted software; see the file COPYING for
|
||||||
@@ -94,6 +94,10 @@ Run_Build_System () {
|
|||||||
echo "cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR"
|
echo "cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR"
|
||||||
|
|
||||||
cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR
|
cmake $GEN_TYPE $WITH_INST $WITH_RUN $WITH_PERM $BUILD_TYPE $PCH $EXTRA_INCLUDE $EXTRA_LIBS $EXTRA_CONFIG_ARGS $REAL_SOURCE_DIR
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "You should fix these issues and then run ./Config -quick to rerun CMake."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
if [ "$SOURCE_DIR" = "." ] ; then
|
if [ "$SOURCE_DIR" = "." ] ; then
|
||||||
@@ -169,7 +173,7 @@ done
|
|||||||
cmake --version 2>&1 > /dev/null
|
cmake --version 2>&1 > /dev/null
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
clear
|
clear
|
||||||
echo "Anope requires CMake 2.4 or newer, which can be downloaded at http://cmake.org or through your system's package manager."
|
echo "Anope requires CMake 2.4 or newer, which can be downloaded at https://cmake.org/ or through your system's package manager."
|
||||||
echo "If you have installed CMake already, ensure it is in your PATH environment variable."
|
echo "If you have installed CMake already, ensure it is in your PATH environment variable."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
## About
|
||||||
|
|
||||||
|
Anope is an open source set of IRC Services. It is highly modular, with a vast number of configurable parameters, and is the most used IRC services package. There are also many modules on the [modsite](https://modules.anope.org) to add additional features. It runs on Linux, BSD, and Windows, and supports many modern IRCds, including InspIRCd, UnrealIRCd, and ircd-hybrid. For more details, credits, command line options, and contact information see [docs/README](https://github.com/anope/anope/blob/2.0/docs/README).
|
||||||
|
|
||||||
|
* [Website](https://anope.org)
|
||||||
|
* [GitHub](https://github.com/anope)
|
||||||
|
* IRC \#anope on irc.anope.org
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Linux/BSD
|
||||||
|
Download the latest release off of the [releases page](https://github.com/anope/anope/releases).
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./Config
|
||||||
|
$ cd build
|
||||||
|
$ make
|
||||||
|
$ make install
|
||||||
|
```
|
||||||
|
|
||||||
|
Now change to the directory where you installed Anope to, e.g. `$ cd ~/services/`
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
Download the latest release off of the [releases page](https://github.com/anope/anope/releases) and run the installer.
|
||||||
|
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Copy conf/example.conf to conf/services.conf
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cp conf/example.conf conf/services.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Edit services.conf, configuring the uplink, serverinfo, and protocol module configurations. Example link blocks for popular IRCds are included in the the example.conf documentation. The [Anope wiki](https://wiki.anope.org) is also a good source of information. Our support channel is located at #anope on [irc.anope.org](irc://irc.anope.org/#anope).
|
||||||
|
|
||||||
|
Note that the example configuration file includes other example configuration files. If you want to modify the other example configuration files, copy them (e.g. `modules.example.conf` to `modules.conf`) and modify the `include` directive in `services.conf` to include the new file.
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
Run `$ ./bin/services` to start Anope. If asked to provide logs for support, use the `--support` flag, e.g.: `$ ./bin/services --support`
|
||||||
|
|
||||||
|
## Installing extra modules
|
||||||
|
|
||||||
|
Extra modules, which are usually modules which require extra libraries to use, such as m\_mysql, can be enabled with the `./extras` command from the source directory. Then re-run `Config`, `make` and `make install` again. Third party modules can be installed by placing them into the `modules/third` directory.
|
||||||
@@ -242,7 +242,7 @@ command { service = "BotServ"; name = "INFO"; command = "botserv/info"; }
|
|||||||
* botserv/kick - Dummy help wrapper for the KICK command.
|
* botserv/kick - Dummy help wrapper for the KICK command.
|
||||||
* botserv/kick/amsg - Configures BotServ's AMSG kicker.
|
* botserv/kick/amsg - Configures BotServ's AMSG kicker.
|
||||||
* botserv/kick/badwords - Configures BotServ's badwords kicker.
|
* botserv/kick/badwords - Configures BotServ's badwords kicker.
|
||||||
* botserv/kick/bolds - Configures BotServ's bold text kiceker.
|
* botserv/kick/bolds - Configures BotServ's bold text kicker.
|
||||||
* botserv/kick/caps - Configures BotServ's capital letters kicker.
|
* botserv/kick/caps - Configures BotServ's capital letters kicker.
|
||||||
* botserv/kick/colors - Configures BotServ's color kicker.
|
* botserv/kick/colors - Configures BotServ's color kicker.
|
||||||
* botserv/kick/flood - Configures BotServ's flood kicker.
|
* botserv/kick/flood - Configures BotServ's flood kicker.
|
||||||
@@ -333,7 +333,7 @@ privilege
|
|||||||
/*
|
/*
|
||||||
* fantasy
|
* fantasy
|
||||||
*
|
*
|
||||||
* Allows 'fantaisist' commands to be used in channels.
|
* Allows 'fantasist' commands to be used in channels.
|
||||||
*
|
*
|
||||||
* Provides the commands:
|
* Provides the commands:
|
||||||
* botserv/set/fantasy - Used for enabling or disabling BotServ's fantasist commands.
|
* botserv/set/fantasy - Used for enabling or disabling BotServ's fantasist commands.
|
||||||
|
|||||||
+12
-15
@@ -79,7 +79,7 @@ module
|
|||||||
* - cs_secure: Enable channel security, requiring the user to be identified with NickServ in
|
* - cs_secure: Enable channel security, requiring the user to be identified with NickServ in
|
||||||
* order to be considered for being on the access list of the channel
|
* order to be considered for being on the access list of the channel
|
||||||
* - secureops: Only allow operator status to be given if the user is on the access list
|
* - secureops: Only allow operator status to be given if the user is on the access list
|
||||||
* - securefounder: Only allow the real founder of the channel to drop the channel, change it's
|
* - securefounder: Only allow the real founder of the channel to drop the channel, change its
|
||||||
* password, or change the founder or successor
|
* password, or change the founder or successor
|
||||||
* - signkick: Use of ChanServ's KICK command will cause the user's nick to be signed to the kick.
|
* - signkick: Use of ChanServ's KICK command will cause the user's nick to be signed to the kick.
|
||||||
* - signkick_level: Same as above, but the kick will not be signed if the user is at the same access
|
* - signkick_level: Same as above, but the kick will not be signed if the user is at the same access
|
||||||
@@ -193,12 +193,12 @@ module
|
|||||||
*
|
*
|
||||||
* If you load cs_xop, you may define a XOP command to associate the privilege with.
|
* If you load cs_xop, you may define a XOP command to associate the privilege with.
|
||||||
*
|
*
|
||||||
* The name of privileges are uesd to associate them with channel modes. If you are using an IRCd that allows you to define additional
|
* The name of privileges are used to associate them with channel modes. If you are using an IRCd that allows you to define additional
|
||||||
* channel status modes, such as InspIRCd, you can associate privileges (and thus access levels, flags, xop) with the mode by naming
|
* channel status modes, such as InspIRCd, you can associate privileges (and thus access levels, flags, xop) with the mode by naming
|
||||||
* the privileges appropriately. For example, if you had a channel mode called admin, you could create AUTOADMIN, ADMIN, and ADMINME
|
* the privileges appropriately. For example, if you had a channel mode called admin, you could create AUTOADMIN, ADMIN, and ADMINME
|
||||||
* privileges which would automatically be associated with that channel mode.
|
* privileges which would automatically be associated with that channel mode.
|
||||||
*
|
*
|
||||||
* Defining new privileges here is not useful unless you have a module (eg, a third party one) made to check for
|
* Defining new privileges here is not useful unless you have a module (e.g. a third party one) made to check for
|
||||||
* the specific level you are defining.
|
* the specific level you are defining.
|
||||||
*
|
*
|
||||||
* Sane defaults are provided below that do not need to be edited unless you wish to change the default behavior.
|
* Sane defaults are provided below that do not need to be edited unless you wish to change the default behavior.
|
||||||
@@ -420,7 +420,7 @@ privilege
|
|||||||
*
|
*
|
||||||
* Used by chanserv/getkey and nickserv/ajoin.
|
* Used by chanserv/getkey and nickserv/ajoin.
|
||||||
*
|
*
|
||||||
* Users with this permission can get they channel key with GETKEY and
|
* Users with this permission can get their channel key with GETKEY and
|
||||||
* can use nickserv/ajoin to join channels with keys.
|
* can use nickserv/ajoin to join channels with keys.
|
||||||
*/
|
*/
|
||||||
privilege
|
privilege
|
||||||
@@ -692,7 +692,7 @@ privilege
|
|||||||
* chanserv/saset/noexpire and chanserv/set.
|
* chanserv/saset/noexpire and chanserv/set.
|
||||||
*
|
*
|
||||||
* Users with this permission can set what BotServ will kick for, change
|
* Users with this permission can set what BotServ will kick for, change
|
||||||
* BotServ and ChanServ settings, clone ChanServ channel setings, and
|
* BotServ and ChanServ settings, clone ChanServ channel settings, and
|
||||||
* set ChanServ logging options.
|
* set ChanServ logging options.
|
||||||
*/
|
*/
|
||||||
privilege
|
privilege
|
||||||
@@ -836,8 +836,8 @@ command { service = "ChanServ"; name = "HELP"; command = "generic/help"; }
|
|||||||
* Provides commands chanserv/access and chanserv/levels.
|
* Provides commands chanserv/access and chanserv/levels.
|
||||||
* Provides the access system "levels".
|
* Provides the access system "levels".
|
||||||
*
|
*
|
||||||
* Used for giving users access in channels using a levels system. Allows allows redefining which privileges
|
* Used for giving users access in channels using a levels system. Allows redefining which privileges
|
||||||
* are representated by given level on a per channel basis.
|
* are represented by given level on a per channel basis.
|
||||||
*
|
*
|
||||||
* The "LIST" subcommand of chanserv/access will show every access entry on the channel, including access
|
* The "LIST" subcommand of chanserv/access will show every access entry on the channel, including access
|
||||||
* entries not added by cs_access. The "level" of these entries will be the representation of the access
|
* entries not added by cs_access. The "level" of these entries will be the representation of the access
|
||||||
@@ -941,7 +941,7 @@ command { service = "ChanServ"; name = "ENTRYMSG"; command = "chanserv/entrymsg"
|
|||||||
* Used for giving users access in channels.
|
* Used for giving users access in channels.
|
||||||
*
|
*
|
||||||
* The "LIST" subcommand of chanserv/flags will show every access entry on the channel, including access
|
* The "LIST" subcommand of chanserv/flags will show every access entry on the channel, including access
|
||||||
* entries not added by cs_flags. The "Flags" of these entries will be the flags representation of the
|
* entries not added by cs_flags. The "flags" of these entries will be the flags representation of the
|
||||||
* privilege set granted by the access entry.
|
* privilege set granted by the access entry.
|
||||||
*/
|
*/
|
||||||
module { name = "cs_flags" }
|
module { name = "cs_flags" }
|
||||||
@@ -1055,7 +1055,7 @@ command { service = "ChanServ"; name = "LOG"; command = "chanserv/log"; group =
|
|||||||
* Provides the command chanserv/mode and chanserv/modes.
|
* Provides the command chanserv/mode and chanserv/modes.
|
||||||
*
|
*
|
||||||
* Used for changing mode locks and changing modes. Multiple commands may be mapped to chanserv/modes, the
|
* Used for changing mode locks and changing modes. Multiple commands may be mapped to chanserv/modes, the
|
||||||
* configuration directive 'set' and 'unset' are used to tell chanserv/modes which modes should be set or
|
* configuration directives 'set' and 'unset' are used to tell chanserv/modes which modes should be set or
|
||||||
* unset when the command is executed.
|
* unset when the command is executed.
|
||||||
*/
|
*/
|
||||||
module
|
module
|
||||||
@@ -1121,9 +1121,6 @@ module
|
|||||||
|
|
||||||
/* Sets the time to keep seen entries in the seen database. */
|
/* Sets the time to keep seen entries in the seen database. */
|
||||||
purgetime = "30d"
|
purgetime = "30d"
|
||||||
|
|
||||||
/* Sets the delay between checks for expired seen entries. */
|
|
||||||
expiretimeout = "1d"
|
|
||||||
}
|
}
|
||||||
command { service = "OperServ"; name = "SEEN"; command = "operserv/seen"; permission = "operserv/seen"; }
|
command { service = "OperServ"; name = "SEEN"; command = "operserv/seen"; permission = "operserv/seen"; }
|
||||||
|
|
||||||
@@ -1166,7 +1163,7 @@ module
|
|||||||
defbantype = 2
|
defbantype = 2
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set, persisent channels have their creation times lowered to their
|
* If set, persistent channels have their creation times lowered to their
|
||||||
* original registration dates.
|
* original registration dates.
|
||||||
*/
|
*/
|
||||||
persist_lower_ts = true
|
persist_lower_ts = true
|
||||||
@@ -1290,7 +1287,7 @@ command { service = "ChanServ"; name = "UP"; command = "chanserv/up"; group = "c
|
|||||||
* Provides the access system "XOP".
|
* Provides the access system "XOP".
|
||||||
*
|
*
|
||||||
* Used for giving users access in channels. Many commands may be linked to chanserv/xop, but the
|
* Used for giving users access in channels. Many commands may be linked to chanserv/xop, but the
|
||||||
* privileges given by each is determined by the privilege:xop settings above. These commands should
|
* privileges given by each are determined by the privilege:xop settings above. These commands should
|
||||||
* be ordered from highest to lowest, as each command inherits the privileges of the commands below
|
* be ordered from highest to lowest, as each command inherits the privileges of the commands below
|
||||||
* it.
|
* it.
|
||||||
*
|
*
|
||||||
@@ -1312,7 +1309,7 @@ command { service = "ChanServ"; name = "VOP"; command = "chanserv/xop"; group =
|
|||||||
/*
|
/*
|
||||||
* cs_statusupdate
|
* cs_statusupdate
|
||||||
*
|
*
|
||||||
* This module automatically updates users status on channels when the
|
* This module automatically updates users' status on channels when the
|
||||||
* channel's access list is modified.
|
* channel's access list is modified.
|
||||||
*/
|
*/
|
||||||
module { name = "cs_statusupdate" }
|
module { name = "cs_statusupdate" }
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ module
|
|||||||
}
|
}
|
||||||
command { service = "ChanServ"; name = "SET CHANSTATS"; command = "chanserv/set/chanstats"; }
|
command { service = "ChanServ"; name = "SET CHANSTATS"; command = "chanserv/set/chanstats"; }
|
||||||
command { service = "NickServ"; name = "SET CHANSTATS"; command = "nickserv/set/chanstats"; }
|
command { service = "NickServ"; name = "SET CHANSTATS"; command = "nickserv/set/chanstats"; }
|
||||||
command { service = "NickServ"; name = "SASET CHANSTATS"; command = "nickserv/saset/chanstats"; }
|
command { service = "NickServ"; name = "SASET CHANSTATS"; command = "nickserv/saset/chanstats"; permission = "nickserv/saset/chanstats"; }
|
||||||
|
|
||||||
module { name = "cs_fantasy_stats" }
|
module { name = "cs_fantasy_stats" }
|
||||||
command { service = "ChanServ"; name = "STATS"; command = "chanserv/stats"; }
|
command { service = "ChanServ"; name = "STATS"; command = "chanserv/stats"; }
|
||||||
|
|||||||
+72
-48
@@ -80,7 +80,7 @@
|
|||||||
* [OPTIONAL] Defines
|
* [OPTIONAL] Defines
|
||||||
*
|
*
|
||||||
* You can define values to other values, which can be used to easily change
|
* You can define values to other values, which can be used to easily change
|
||||||
* many values in the configuration. at once.
|
* many values in the configuration at once.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -110,7 +110,7 @@ define
|
|||||||
#include
|
#include
|
||||||
{
|
{
|
||||||
type = "executable"
|
type = "executable"
|
||||||
name = "/usr/bin/wget -q -O - http://some.misconfigured.network.com/services.conf"
|
name = "/usr/bin/wget -q -O - https://some.misconfigured.network.com/services.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -126,6 +126,7 @@ define
|
|||||||
* An example configuration for InspIRCd that is compatible with the below uplink
|
* An example configuration for InspIRCd that is compatible with the below uplink
|
||||||
* and serverinfo configuration would look like:
|
* and serverinfo configuration would look like:
|
||||||
*
|
*
|
||||||
|
* # This goes in inspircd.conf, *NOT* your Anope config!
|
||||||
* <link name="services.localhost.net"
|
* <link name="services.localhost.net"
|
||||||
* ipaddr="127.0.0.1"
|
* ipaddr="127.0.0.1"
|
||||||
* port="7000"
|
* port="7000"
|
||||||
@@ -137,19 +138,22 @@ define
|
|||||||
* An example configuration for UnrealIRCd that is compatible with the below uplink
|
* An example configuration for UnrealIRCd that is compatible with the below uplink
|
||||||
* and serverinfo configuration would look like:
|
* and serverinfo configuration would look like:
|
||||||
*
|
*
|
||||||
* link services.localhost.net
|
* // This goes in unrealircd.conf, *NOT* your Anope config!
|
||||||
* {
|
* listen {
|
||||||
* username *;
|
* ip 127.0.0.1;
|
||||||
* hostname *;
|
* port 7000;
|
||||||
* bind-ip "127.0.0.1";
|
* options {
|
||||||
* port 7000;
|
* serversonly;
|
||||||
* hub *;
|
* };
|
||||||
* password-connect "mypassword";
|
* };
|
||||||
* password-receive "mypassword";
|
* link services.localhost.net {
|
||||||
* class servers;
|
* incoming {
|
||||||
|
* mask *@127.0.0.1;
|
||||||
|
* };
|
||||||
|
* password "mypassword";
|
||||||
|
* class servers;
|
||||||
* };
|
* };
|
||||||
* ulines { services.localhost.net; };
|
* ulines { services.localhost.net; };
|
||||||
* listen 127.0.0.1:7000;
|
|
||||||
*/
|
*/
|
||||||
uplink
|
uplink
|
||||||
{
|
{
|
||||||
@@ -205,7 +209,7 @@ serverinfo
|
|||||||
name = "services.localhost.net"
|
name = "services.localhost.net"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The text which should appear as the server's information in /whois and similar
|
* The text which should appear as the server's information in /WHOIS and similar
|
||||||
* queries.
|
* queries.
|
||||||
*/
|
*/
|
||||||
description = "Services for IRC Networks"
|
description = "Services for IRC Networks"
|
||||||
@@ -252,6 +256,7 @@ serverinfo
|
|||||||
* - hybrid
|
* - hybrid
|
||||||
* - inspircd12
|
* - inspircd12
|
||||||
* - inspircd20
|
* - inspircd20
|
||||||
|
* - inspircd3
|
||||||
* - ngircd
|
* - ngircd
|
||||||
* - plexus
|
* - plexus
|
||||||
* - ratbox
|
* - ratbox
|
||||||
@@ -500,7 +505,7 @@ options
|
|||||||
#hidestatso = yes
|
#hidestatso = yes
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A space-separated list of ulined servers on your network, it is assumed that
|
* A space-separated list of U-lined servers on your network, it is assumed that
|
||||||
* the servers in this list are allowed to set channel modes and Services will
|
* the servers in this list are allowed to set channel modes and Services will
|
||||||
* not attempt to reverse their mode changes.
|
* not attempt to reverse their mode changes.
|
||||||
*
|
*
|
||||||
@@ -532,14 +537,14 @@ options
|
|||||||
*
|
*
|
||||||
* Note for this to work the regex module providing the regex engine must be loaded.
|
* Note for this to work the regex module providing the regex engine must be loaded.
|
||||||
*/
|
*/
|
||||||
regexengine = "regex/pcre"
|
#regexengine = "regex/pcre"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A list of languages to load on startup that will be available in /nickserv set language.
|
* A list of languages to load on startup that will be available in /NICKSERV SET LANGUAGE.
|
||||||
* Useful if you translate Anope to your language. (Explained further in docs/LANGUAGE).
|
* Useful if you translate Anope to your language. (Explained further in docs/LANGUAGE).
|
||||||
* Note that english should not be listed here because it is the base language.
|
* Note that English should not be listed here because it is the base language.
|
||||||
*
|
*
|
||||||
* Removing .UTF-8 will instead use the default encoding for the language, eg. iso-8859-1 for western European languages.
|
* Removing .UTF-8 will instead use the default encoding for the language, e.g. iso-8859-1 for western European languages.
|
||||||
*/
|
*/
|
||||||
languages = "ca_ES.UTF-8 de_DE.UTF-8 el_GR.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 hu_HU.UTF-8 it_IT.UTF-8 nl_NL.UTF-8 pl_PL.UTF-8 pt_PT.UTF-8 ru_RU.UTF-8 tr_TR.UTF-8"
|
languages = "ca_ES.UTF-8 de_DE.UTF-8 el_GR.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 hu_HU.UTF-8 it_IT.UTF-8 nl_NL.UTF-8 pl_PL.UTF-8 pt_PT.UTF-8 ru_RU.UTF-8 tr_TR.UTF-8"
|
||||||
|
|
||||||
@@ -668,19 +673,19 @@ log
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The source(s) to only accept log messages from. Leave commented to allow all sources.
|
* The source(s) to only accept log messages from. Leave commented to allow all sources.
|
||||||
* This can be a users name, a channel name, one of our clients (eg, OperServ), or a server name.
|
* This can be a users name, a channel name, one of our clients (e.g. OperServ), or a server name.
|
||||||
*/
|
*/
|
||||||
#source = ""
|
#source = ""
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The bot used to log generic messages which have no predefined sender if there
|
* The bot used to log generic messages which have no predefined sender if the
|
||||||
* is a channel in the target directive.
|
* target directive is set to a channel or globops.
|
||||||
*/
|
*/
|
||||||
bot = "Global"
|
bot = "Global"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The number of days to keep logfiles, only useful if you are logging to a file.
|
* The number of days to keep log files, only useful if you are logging to a file.
|
||||||
* Set to 0 to never delete old logfiles.
|
* Set to 0 to never delete old log files.
|
||||||
*
|
*
|
||||||
* Note that Anope must run 24 hours a day for this feature to work correctly.
|
* Note that Anope must run 24 hours a day for this feature to work correctly.
|
||||||
*/
|
*/
|
||||||
@@ -705,7 +710,7 @@ log
|
|||||||
* means "* ~operserv/*" would log everything because * matches everything.
|
* means "* ~operserv/*" would log everything because * matches everything.
|
||||||
*
|
*
|
||||||
* Valid admin, override, and command options are:
|
* Valid admin, override, and command options are:
|
||||||
* pesudo-serv/commandname (eg, operserv/akill, chanserv/set)
|
* pesudo-serv/commandname (e.g. operserv/akill, chanserv/set)
|
||||||
*
|
*
|
||||||
* Valid server options are:
|
* Valid server options are:
|
||||||
* connect, quit, sync, squit
|
* connect, quit, sync, squit
|
||||||
@@ -736,6 +741,7 @@ log
|
|||||||
*/
|
*/
|
||||||
log
|
log
|
||||||
{
|
{
|
||||||
|
bot = "Global"
|
||||||
target = "globops"
|
target = "globops"
|
||||||
admin = "global/* operserv/chankill operserv/mode operserv/kick operserv/akill operserv/s*line operserv/noop operserv/jupe operserv/oline operserv/set operserv/svsnick operserv/svsjoin operserv/svspart nickserv/getpass */drop"
|
admin = "global/* operserv/chankill operserv/mode operserv/kick operserv/akill operserv/s*line operserv/noop operserv/jupe operserv/oline operserv/set operserv/svsnick operserv/svsjoin operserv/svspart nickserv/getpass */drop"
|
||||||
servers = "squit"
|
servers = "squit"
|
||||||
@@ -762,17 +768,18 @@ log
|
|||||||
* chanserv/administration - Can modify the settings of any channel (including changing of the owner!)
|
* chanserv/administration - Can modify the settings of any channel (including changing of the owner!)
|
||||||
* chanserv/access/list - Can view channel access and akick lists, but not modify them
|
* chanserv/access/list - Can view channel access and akick lists, but not modify them
|
||||||
* chanserv/access/modify - Can modify channel access and akick lists, and use /chanserv enforce
|
* chanserv/access/modify - Can modify channel access and akick lists, and use /chanserv enforce
|
||||||
* chanserv/auspex - Can see any information with /chanserv info
|
* chanserv/auspex - Can see any information with /CHANSERV INFO
|
||||||
* chanserv/no-register-limit - May register an unlimited number of channels and nicknames
|
* chanserv/no-register-limit - May register an unlimited number of channels and nicknames
|
||||||
* chanserv/kick - Can kick and ban users from channels through ChanServ
|
* chanserv/kick - Can kick and ban users from channels through ChanServ
|
||||||
* memoserv/info - Can see any information with /memoserv info
|
* memoserv/info - Can see any information with /MEMOSERV INFO
|
||||||
* memoserv/set-limit - Can set the limit of max stored memos on any user and channel
|
* memoserv/set-limit - Can set the limit of max stored memos on any user and channel
|
||||||
* memoserv/no-limit - Can send memos through limits and throttles
|
* memoserv/no-limit - Can send memos through limits and throttles
|
||||||
* nickserv/access - Can modify other users access and certificate lists
|
* nickserv/access - Can modify other users access and certificate lists
|
||||||
* nickserv/alist - Can see the channel access list of other users
|
* nickserv/alist - Can see the channel access list of other users
|
||||||
* nickserv/auspex - Can see any information with /nickserv info
|
* nickserv/auspex - Can see any information with /NICKSERV INFO
|
||||||
* nickserv/confirm - Can confirm other users nicknames
|
* nickserv/confirm - Can confirm other users nicknames
|
||||||
* nickserv/drop - Can drop other users nicks
|
* nickserv/drop - Can drop other users nicks
|
||||||
|
* nickserv/recover - Can recover other users nicks
|
||||||
* operserv/config - Can modify services's configuration
|
* operserv/config - Can modify services's configuration
|
||||||
* operserv/oper/modify - Can add and remove operators with at most the same privileges
|
* operserv/oper/modify - Can add and remove operators with at most the same privileges
|
||||||
* protected - Can not be kicked from channels by Services
|
* protected - Can not be kicked from channels by Services
|
||||||
@@ -784,12 +791,7 @@ log
|
|||||||
* chanserv/drop chanserv/getkey chanserv/invite
|
* chanserv/drop chanserv/getkey chanserv/invite
|
||||||
* chanserv/list chanserv/suspend chanserv/topic
|
* chanserv/list chanserv/suspend chanserv/topic
|
||||||
*
|
*
|
||||||
* chanserv/saset/bantype chanserv/saset/description chanserv/saset/email chanserv/saset/keepmodes
|
* chanserv/saset/noexpire
|
||||||
* chanserv/saset/founder chanserv/saset/keeptopic chanserv/saset/restricted
|
|
||||||
* chanserv/saset/peace chanserv/saset/persist chanserv/saset/private
|
|
||||||
* chanserv/saset/secure chanserv/saset/securefounder chanserv/saset/secureops
|
|
||||||
* chanserv/saset/signkick chanserv/saset/successor chanserv/saset/topiclock
|
|
||||||
* chanserv/saset/url chanserv/saset/noexpire chanserv/saset/autoop
|
|
||||||
*
|
*
|
||||||
* memoserv/sendall memoserv/staff
|
* memoserv/sendall memoserv/staff
|
||||||
*
|
*
|
||||||
@@ -817,6 +819,9 @@ log
|
|||||||
* These can contain commands for oper-only strings (see above) which grants access to that specific command,
|
* These can contain commands for oper-only strings (see above) which grants access to that specific command,
|
||||||
* and privileges (which grant access to more general permissions for the named area).
|
* and privileges (which grant access to more general permissions for the named area).
|
||||||
* Wildcard entries are permitted for both, e.g. 'commands = "operserv/*"' for all OperServ commands.
|
* Wildcard entries are permitted for both, e.g. 'commands = "operserv/*"' for all OperServ commands.
|
||||||
|
* You can also negate values with a ~. For example, "~operserv/akill operserv/*" would allow all OperServ
|
||||||
|
* commands except for operserv/akill. Note that processing stops at the first matching option, which
|
||||||
|
* means "* ~operserv/*" would allow everything because * matches everything.
|
||||||
*
|
*
|
||||||
* Below are some default example types, but this is by no means exhaustive,
|
* Below are some default example types, but this is by no means exhaustive,
|
||||||
* and it is recommended that you configure them to your needs.
|
* and it is recommended that you configure them to your needs.
|
||||||
@@ -899,7 +904,7 @@ opertype
|
|||||||
*/
|
*/
|
||||||
require_oper = yes
|
require_oper = yes
|
||||||
|
|
||||||
/* An optional password. If defined the user must login using "/msg OperServ LOGIN" first */
|
/* An optional password. If defined, the user must login using "/OPERSERV LOGIN" first */
|
||||||
#password = "secret"
|
#password = "secret"
|
||||||
|
|
||||||
/* An optional SSL fingerprint. If defined, it's required to be able to use this opertype. */
|
/* An optional SSL fingerprint. If defined, it's required to be able to use this opertype. */
|
||||||
@@ -989,6 +994,11 @@ mail
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The subject and message of emails sent to users when they register accounts.
|
* The subject and message of emails sent to users when they register accounts.
|
||||||
|
*
|
||||||
|
* Available tokens for this template are:
|
||||||
|
* %n - Gets replaced with the nickname
|
||||||
|
* %N - Gets replaced with the network name
|
||||||
|
* %c - Gets replaced with the confirmation code
|
||||||
*/
|
*/
|
||||||
registration_subject = "Nickname registration for %n"
|
registration_subject = "Nickname registration for %n"
|
||||||
registration_message = "Hi,
|
registration_message = "Hi,
|
||||||
@@ -1002,6 +1012,11 @@ mail
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The subject and message of emails sent to users when they request a new password.
|
* The subject and message of emails sent to users when they request a new password.
|
||||||
|
*
|
||||||
|
* Available tokens for this template are:
|
||||||
|
* %n - Gets replaced with the nickname
|
||||||
|
* %N - Gets replaced with the network name
|
||||||
|
* %c - Gets replaced with the confirmation code
|
||||||
*/
|
*/
|
||||||
reset_subject = "Reset password request for %n"
|
reset_subject = "Reset password request for %n"
|
||||||
reset_message = "Hi,
|
reset_message = "Hi,
|
||||||
@@ -1015,6 +1030,13 @@ mail
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The subject and message of emails sent to users when they request a new email address.
|
* The subject and message of emails sent to users when they request a new email address.
|
||||||
|
*
|
||||||
|
* Available tokens for this template are:
|
||||||
|
* %e - Gets replaced with the old email address
|
||||||
|
* %E - Gets replaced with the new email address
|
||||||
|
* %n - Gets replaced with the nickname
|
||||||
|
* %N - Gets replaced with the network name
|
||||||
|
* %c - Gets replaced with the confirmation code
|
||||||
*/
|
*/
|
||||||
emailchange_subject = "Email confirmation"
|
emailchange_subject = "Email confirmation"
|
||||||
emailchange_message = "Hi,
|
emailchange_message = "Hi,
|
||||||
@@ -1028,6 +1050,13 @@ mail
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The subject and message of emails sent to users when they receive a new memo.
|
* The subject and message of emails sent to users when they receive a new memo.
|
||||||
|
*
|
||||||
|
* Available tokens for this template are:
|
||||||
|
* %n - Gets replaced with the nickname
|
||||||
|
* %s - Gets replaced with the sender's nickname
|
||||||
|
* %d - Gets replaced with the memo number
|
||||||
|
* %t - Gets replaced with the memo text
|
||||||
|
* %N - Gets replaced with the network name
|
||||||
*/
|
*/
|
||||||
memo_subject = "New memo"
|
memo_subject = "New memo"
|
||||||
memo_message = "Hi %n,
|
memo_message = "Hi %n,
|
||||||
@@ -1167,7 +1196,7 @@ module
|
|||||||
/*
|
/*
|
||||||
* db_redis.
|
* db_redis.
|
||||||
*
|
*
|
||||||
* This module allows using Redis (http://redis.io) as a database backend.
|
* This module allows using Redis (https://redis.io/) as a database backend.
|
||||||
* This module requires that m_redis is loaded and configured properly.
|
* This module requires that m_redis is loaded and configured properly.
|
||||||
*
|
*
|
||||||
* Redis 2.8 supports keyspace notifications which allows Redis to push notifications
|
* Redis 2.8 supports keyspace notifications which allows Redis to push notifications
|
||||||
@@ -1206,23 +1235,14 @@ module
|
|||||||
* encrypted by this module. Old passwords stored in another encryption method are
|
* encrypted by this module. Old passwords stored in another encryption method are
|
||||||
* automatically re-encrypted by the primary encryption module on next identify.
|
* automatically re-encrypted by the primary encryption module on next identify.
|
||||||
*
|
*
|
||||||
* NOTE: enc_old is Anope's previous (broken) MD5 implementation which is present in
|
* enc_md5, enc_sha1, and enc_old are deprecated, and are provided for users
|
||||||
* versions prior to Anope 1.7.17. If your databases were made using that module,
|
* to upgrade to a newer encryption module. Do not use them as the primary
|
||||||
* use this and not enc_md5.
|
* encryption module. They will be removed in a future release.
|
||||||
*
|
|
||||||
* NOTE: enc_sha1 relies on how the OS stores 2+ byte data internally, and is
|
|
||||||
* potentially broken when moving between 2 different OSes, such as moving from
|
|
||||||
* Linux to Windows. It is recommended that you use enc_sha256 instead if you want
|
|
||||||
* to use an SHA-based encryption. If you choose to do so, it is also recommended
|
|
||||||
* that you first try to get everyone's passwords converted to enc_sha256 before
|
|
||||||
* switching OSes by placing enc_sha256 at the beginning of the list.
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#module { name = "enc_bcrypt" }
|
#module { name = "enc_bcrypt" }
|
||||||
module { name = "enc_sha256" }
|
module { name = "enc_sha256" }
|
||||||
#module { name = "enc_md5" }
|
|
||||||
#module { name = "enc_sha1" }
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When using enc_none, passwords will be stored without encryption. This isn't secure
|
* When using enc_none, passwords will be stored without encryption. This isn't secure
|
||||||
@@ -1230,6 +1250,10 @@ module { name = "enc_sha256" }
|
|||||||
*/
|
*/
|
||||||
#module { name = "enc_none" }
|
#module { name = "enc_none" }
|
||||||
|
|
||||||
|
/* Deprecated encryption modules */
|
||||||
|
#module { name = "enc_md5" }
|
||||||
|
#module { name = "enc_sha1" }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* enc_old is Anope's previous (broken) MD5 implementation used from 1.4.x to 1.7.16.
|
* enc_old is Anope's previous (broken) MD5 implementation used from 1.4.x to 1.7.16.
|
||||||
* If your databases were made using that module, load it here to allow conversion to the primary
|
* If your databases were made using that module, load it here to allow conversion to the primary
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ service
|
|||||||
/*
|
/*
|
||||||
* The hostname of the StatServ client.
|
* The hostname of the StatServ client.
|
||||||
*/
|
*/
|
||||||
host = "services.host"
|
host = "stats.host"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The realname of the StatServ client.
|
* The realname of the StatServ client.
|
||||||
@@ -45,7 +45,7 @@ service
|
|||||||
*
|
*
|
||||||
* Prefixes may be given to the channels in the form of mode characters or prefix symbols.
|
* Prefixes may be given to the channels in the form of mode characters or prefix symbols.
|
||||||
*/
|
*/
|
||||||
#channels = "@#services,#mychan"
|
#channels = "@#stats,#mychan"
|
||||||
}
|
}
|
||||||
|
|
||||||
module
|
module
|
||||||
@@ -58,7 +58,7 @@ module
|
|||||||
*/
|
*/
|
||||||
client = "StatServ"
|
client = "StatServ"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The name of the SQL engine to use.
|
* The name of the SQL engine to use.
|
||||||
* This must be MySQL and must match the name in the mysql{} block
|
* This must be MySQL and must match the name in the mysql{} block
|
||||||
*/
|
*/
|
||||||
@@ -84,7 +84,7 @@ module
|
|||||||
/*
|
/*
|
||||||
* Get the CTCP version from users
|
* Get the CTCP version from users
|
||||||
* The users connecting to the network will receive a CTCP VERSION
|
* The users connecting to the network will receive a CTCP VERSION
|
||||||
* request from the above configured services client
|
* request from the above configured stats client
|
||||||
*/
|
*/
|
||||||
ctcpuser = "yes"
|
ctcpuser = "yes"
|
||||||
|
|
||||||
@@ -95,4 +95,3 @@ module
|
|||||||
*/
|
*/
|
||||||
ctcpeob = "yes"
|
ctcpeob = "yes"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+17
-15
@@ -30,7 +30,7 @@ module { name = "help" }
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The nameserver to use for resolving hostnames, must be an IP or a resolver configuration file.
|
* The nameserver to use for resolving hostnames, must be an IP or a resolver configuration file.
|
||||||
* The below should work fine on all unix like systems. Windows users will have to find their nameservers
|
* The below should work fine on all UNIX-like systems. Windows users will have to find their nameservers
|
||||||
* from ipconfig /all and put the IP here.
|
* from ipconfig /all and put the IP here.
|
||||||
*/
|
*/
|
||||||
nameserver = "/etc/resolv.conf"
|
nameserver = "/etc/resolv.conf"
|
||||||
@@ -127,9 +127,9 @@ module { name = "help" }
|
|||||||
* %r is the reply reason (configured below). Will be nothing if not configured.
|
* %r is the reply reason (configured below). Will be nothing if not configured.
|
||||||
* %N is the network name set in networkinfo:networkname
|
* %N is the network name set in networkinfo:networkname
|
||||||
*/
|
*/
|
||||||
reason = "You are listed in the efnet RBL, visit http://rbl.efnetrbl.org/?i=%i for info"
|
reason = "You are listed in the EFnet RBL, visit https://rbl.efnetrbl.org/?i=%i for info"
|
||||||
|
|
||||||
/* Replies to ban and their reason. If no relies are configured, all replies get banned. */
|
/* Replies to ban and their reason. If no replies are configured, all replies get banned. */
|
||||||
reply
|
reply
|
||||||
{
|
{
|
||||||
code = 1
|
code = 1
|
||||||
@@ -171,11 +171,11 @@ module { name = "help" }
|
|||||||
{
|
{
|
||||||
name = "dnsbl.dronebl.org"
|
name = "dnsbl.dronebl.org"
|
||||||
time = 4h
|
time = 4h
|
||||||
reason = "You have a host listed in the DroneBL. For more information, visit http://dronebl.org/lookup_branded?ip=%i&network=%N"
|
reason = "You have a host listed in the DroneBL. For more information, visit https://dronebl.org/lookup_branded?ip=%i&network=%N"
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Exempt localhost from DNSBL checks */
|
/* Exempt localhost from DNSBL checks */
|
||||||
exempt { ip = "127.0.0.1" }
|
exempt { ip = "127.0.0.0/8" }
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -223,8 +223,9 @@ module { name = "help" }
|
|||||||
* extforward_headers set below, set this to its IP.
|
* extforward_headers set below, set this to its IP.
|
||||||
* This allows services to obtain the real IP of users by
|
* This allows services to obtain the real IP of users by
|
||||||
* reading the forwarded-for HTTP header.
|
* reading the forwarded-for HTTP header.
|
||||||
|
* Multiple IP addresses can be specified separated by a space character.
|
||||||
*/
|
*/
|
||||||
#extforward_ip = "192.168.0.255"
|
#extforward_ip = "192.168.0.255 192.168.1.255"
|
||||||
|
|
||||||
/* The header to look for. These probably work as is. */
|
/* The header to look for. These probably work as is. */
|
||||||
extforward_header = "X-Forwarded-For Forwarded-For"
|
extforward_header = "X-Forwarded-For Forwarded-For"
|
||||||
@@ -298,18 +299,18 @@ module { name = "help" }
|
|||||||
password_attribute = "userPassword"
|
password_attribute = "userPassword"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set, the reason to give the users who try to register with nickserv,
|
* If set, the reason to give the users who try to register with NickServ,
|
||||||
* including nick registration from grouping.
|
* including nick registration from grouping.
|
||||||
*
|
*
|
||||||
* If not set, then registration is not blocked.
|
* If not set, then registration is not blocked.
|
||||||
*/
|
*/
|
||||||
#disable_register_reason = "To register on this network visit http://some.misconfigured.site/register"
|
#disable_register_reason = "To register on this network visit https://some.misconfigured.site/register"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set, the reason to give the users who try to "/msg NickServ SET EMAIL".
|
* If set, the reason to give the users who try to "/msg NickServ SET EMAIL".
|
||||||
* If not set, then email changing is not blocked.
|
* If not set, then email changing is not blocked.
|
||||||
*/
|
*/
|
||||||
#disable_email_reason = "To change your email address visit http://some.misconfigured.site"
|
#disable_email_reason = "To change your email address visit https://some.misconfigured.site"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -373,6 +374,7 @@ module { name = "help" }
|
|||||||
port = 3306
|
port = 3306
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_redis
|
* m_redis
|
||||||
*
|
*
|
||||||
@@ -437,7 +439,7 @@ module { name = "help" }
|
|||||||
rewrite_source = "CLEAR $ USERS"
|
rewrite_source = "CLEAR $ USERS"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Message to rewrite the source message to. A $ followed by a number, eg $0, gets
|
* Message to rewrite the source message to. A $ followed by a number, e.g. $0, gets
|
||||||
* replaced by the number-th word from the source_message, starting from 0.
|
* replaced by the number-th word from the source_message, starting from 0.
|
||||||
*/
|
*/
|
||||||
rewrite_target = "KICK $1 *"
|
rewrite_target = "KICK $1 *"
|
||||||
@@ -540,7 +542,7 @@ module { name = "help" }
|
|||||||
* authenticating users through this mechanism. Supported mechanisms are:
|
* authenticating users through this mechanism. Supported mechanisms are:
|
||||||
* PLAIN, EXTERNAL.
|
* PLAIN, EXTERNAL.
|
||||||
*/
|
*/
|
||||||
#module { name = "m_sasl" }
|
module { name = "m_sasl" }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* m_ssl_gnutls [EXTRA]
|
* m_ssl_gnutls [EXTRA]
|
||||||
@@ -548,7 +550,7 @@ module { name = "help" }
|
|||||||
* This module provides SSL services to Anope using GnuTLS, for example to
|
* This module provides SSL services to Anope using GnuTLS, for example to
|
||||||
* connect to the uplink server(s) via SSL.
|
* connect to the uplink server(s) via SSL.
|
||||||
*
|
*
|
||||||
* You may only load either m_ssl_gnutls or m_ssl_openssl, bot not both.
|
* You may only load either m_ssl_gnutls or m_ssl_openssl, but not both.
|
||||||
*/
|
*/
|
||||||
#module
|
#module
|
||||||
{
|
{
|
||||||
@@ -586,7 +588,7 @@ module { name = "help" }
|
|||||||
* This module provides SSL services to Anope using OpenSSL, for example to
|
* This module provides SSL services to Anope using OpenSSL, for example to
|
||||||
* connect to the uplink server(s) via SSL.
|
* connect to the uplink server(s) via SSL.
|
||||||
*
|
*
|
||||||
* You may only load either m_ssl_openssl or m_ssl_gnutls, bot not both.
|
* You may only load either m_ssl_openssl or m_ssl_gnutls, but not both.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#module
|
#module
|
||||||
@@ -655,13 +657,13 @@ module { name = "help" }
|
|||||||
* If set, the reason to give the users who try to "/msg NickServ REGISTER".
|
* If set, the reason to give the users who try to "/msg NickServ REGISTER".
|
||||||
* If not set, then registration is not blocked.
|
* If not set, then registration is not blocked.
|
||||||
*/
|
*/
|
||||||
#disable_reason = "To register on this network visit http://some.misconfigured.site/register"
|
#disable_reason = "To register on this network visit https://some.misconfigured.site/register"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set, the reason to give the users who try to "/msg NickServ SET EMAIL".
|
* If set, the reason to give the users who try to "/msg NickServ SET EMAIL".
|
||||||
* If not set, then email changing is not blocked.
|
* If not set, then email changing is not blocked.
|
||||||
*/
|
*/
|
||||||
#disable_email_reason = "To change your email address visit http://some.misconfigured.site"
|
#disable_email_reason = "To change your email address visit https://some.misconfigured.site"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -97,16 +97,17 @@ module
|
|||||||
* - ns_secure: Enable nickname security, requiring the nick's password before any operations
|
* - ns_secure: Enable nickname security, requiring the nick's password before any operations
|
||||||
* can be done on it
|
* can be done on it
|
||||||
* - ns_private: Hide the nick from NickServ's LIST command
|
* - ns_private: Hide the nick from NickServ's LIST command
|
||||||
* - hide_email: Hide's the nick's e-mail address from NickServ's INFO command
|
* - hide_email: Hide the nick's e-mail address from NickServ's INFO command
|
||||||
* - hide_mask: Hide's the nick's last or current user@host from NickServ's INFO command
|
* - hide_mask: Hide the nick's last or current user@host from NickServ's INFO command
|
||||||
* - hide_quit: Hide's the nick's last quit message
|
* - hide_status: Hide the nick's services operator access status from NickServ's INFO command
|
||||||
|
* - hide_quit: Hide the nick's last quit message from NickServ's INFO command
|
||||||
* - memo_signon: Notify user if they have a new memo when they sign into the nick
|
* - memo_signon: Notify user if they have a new memo when they sign into the nick
|
||||||
* - memo_receive: Notify user if they have a new memo as soon as it's received
|
* - memo_receive: Notify user if they have a new memo as soon as it's received
|
||||||
* - memo_mail: Notify user if they have a new memo by mail
|
* - memo_mail: Notify user if they have a new memo by mail
|
||||||
* - autoop: User will be automatically opped in channels they enter and have access to
|
* - autoop: User will be automatically opped in channels they enter and have access to
|
||||||
* - msg: Services messages will be sent as PRIVMSGs instead of NOTICEs, requires
|
* - msg: Services messages will be sent as PRIVMSGs instead of NOTICEs, requires
|
||||||
* options:useprivmsg to be enabled as well
|
* options:useprivmsg to be enabled as well
|
||||||
* - ns_keepmodes: Enables keepmodes, which retains user modes across sessions
|
* - ns_keep_modes: Enables keepmodes, which retains user modes across sessions
|
||||||
* - ns_no_expire: Enables no expire. Unconfirmed expire overrules this.
|
* - ns_no_expire: Enables no expire. Unconfirmed expire overrules this.
|
||||||
*
|
*
|
||||||
* This directive is optional, if left blank, the options will default to ns_secure, memo_signon, and
|
* This directive is optional, if left blank, the options will default to ns_secure, memo_signon, and
|
||||||
@@ -457,7 +458,7 @@ module
|
|||||||
* If set, Services will svsnick and svsjoin users who use the recover
|
* If set, Services will svsnick and svsjoin users who use the recover
|
||||||
* command on an identified user to the nick and channels of the recovered user.
|
* command on an identified user to the nick and channels of the recovered user.
|
||||||
*
|
*
|
||||||
* This directive is opional.
|
* This directive is optional.
|
||||||
*/
|
*/
|
||||||
restoreonrecover = yes
|
restoreonrecover = yes
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ command { service = "OperServ"; name = "CHANKILL"; command = "operserv/chankill"
|
|||||||
*
|
*
|
||||||
* Provides the command operserv/defcon.
|
* Provides the command operserv/defcon.
|
||||||
*
|
*
|
||||||
* Allows you to set services in defcon mode, which can be used to restrict services access
|
* Allows you to set services in DefCon mode, which can be used to restrict services access
|
||||||
* during bot attacks.
|
* during bot attacks.
|
||||||
*/
|
*/
|
||||||
#module
|
#module
|
||||||
@@ -511,11 +511,11 @@ command { service = "OperServ"; name = "NOOP"; command = "operserv/noop"; permis
|
|||||||
*
|
*
|
||||||
* Provides the command operserv/oline.
|
* Provides the command operserv/oline.
|
||||||
*
|
*
|
||||||
* Used to set oper flags on users, and is specific to UnrealIRCd.
|
* Used to set oper flags on users, and is specific to UnrealIRCd 3.2.
|
||||||
* See /helpop ?svso on your IRCd for more information.
|
* See /helpop ?svso on your IRCd for more information.
|
||||||
*/
|
*/
|
||||||
module { name = "os_oline" }
|
#module { name = "os_oline" }
|
||||||
command { service = "OperServ"; name = "OLINE"; command = "operserv/oline"; permission = "operserv/oline"; }
|
#command { service = "OperServ"; name = "OLINE"; command = "operserv/oline"; permission = "operserv/oline"; }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* os_oper
|
* os_oper
|
||||||
@@ -592,7 +592,7 @@ module
|
|||||||
*
|
*
|
||||||
* This directive is optional, if not set, nothing will be sent.
|
* This directive is optional, if not set, nothing will be sent.
|
||||||
*/
|
*/
|
||||||
#sessionlimitdetailsloc = "Please visit http://your.website.url/ for more information about session limits."
|
#sessionlimitdetailsloc = "Please visit https://your.website.url/ for more information about session limits."
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set and is not 0, this directive tells Services to add an AKILL if the number of subsequent kills
|
* If set and is not 0, this directive tells Services to add an AKILL if the number of subsequent kills
|
||||||
|
|||||||
@@ -80,17 +80,17 @@
|
|||||||
* [OPTIONAL] Defines
|
* [OPTIONAL] Defines
|
||||||
*
|
*
|
||||||
* You can define values to other values, which can be used to easily change
|
* You can define values to other values, which can be used to easily change
|
||||||
* many values in the configuration. at once.
|
* many values in the configuration at once.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The services.host define is used in multiple different locations throughout the
|
* The stats.host define is used in multiple different locations throughout the
|
||||||
* configuration for services clients hostnames.
|
* configuration for the stats client hostname.
|
||||||
*/
|
*/
|
||||||
define
|
define
|
||||||
{
|
{
|
||||||
name = "services.host"
|
name = "stats.host"
|
||||||
value = "services.localhost.net"
|
value = "stats.localhost.net"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -110,7 +110,7 @@ define
|
|||||||
#include
|
#include
|
||||||
{
|
{
|
||||||
type = "executable"
|
type = "executable"
|
||||||
name = "/usr/bin/wget -q -O - http://some.misconfigured.network.com/services.conf"
|
name = "/usr/bin/wget -q -O - https://some.misconfigured.network.com/stats.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -126,30 +126,34 @@ define
|
|||||||
* An example configuration for InspIRCd that is compatible with the below uplink
|
* An example configuration for InspIRCd that is compatible with the below uplink
|
||||||
* and serverinfo configuration would look like:
|
* and serverinfo configuration would look like:
|
||||||
*
|
*
|
||||||
* <link name="services.localhost.net"
|
* # This goes in inspircd.conf, *NOT* your Anope config!
|
||||||
|
* <link name="stats.localhost.net"
|
||||||
* ipaddr="127.0.0.1"
|
* ipaddr="127.0.0.1"
|
||||||
* port="7000"
|
* port="7000"
|
||||||
* sendpass="mypassword"
|
* sendpass="mypassword"
|
||||||
* recvpass="mypassword">
|
* recvpass="mypassword">
|
||||||
* <uline server="services.localhost.net" silent="yes">
|
* <uline server="stats.localhost.net" silent="yes">
|
||||||
* <bind address="127.0.0.1" port="7000" type="servers">
|
* <bind address="127.0.0.1" port="7000" type="servers">
|
||||||
*
|
*
|
||||||
* An example configuration for UnrealIRCd that is compatible with the below uplink
|
* An example configuration for UnrealIRCd that is compatible with the below uplink
|
||||||
* and serverinfo configuration would look like:
|
* and serverinfo configuration would look like:
|
||||||
*
|
*
|
||||||
* link services.localhost.net
|
* // This goes in unrealircd.conf, *NOT* your Anope config!
|
||||||
* {
|
* listen {
|
||||||
* username *;
|
* ip 127.0.0.1;
|
||||||
* hostname *;
|
* port 7000;
|
||||||
* bind-ip "127.0.0.1";
|
* options {
|
||||||
* port 7000;
|
* serversonly;
|
||||||
* hub *;
|
* };
|
||||||
* password-connect "mypassword";
|
|
||||||
* password-receive "mypassword";
|
|
||||||
* class servers;
|
|
||||||
* };
|
* };
|
||||||
* ulines { services.localhost.net; };
|
* link stats.localhost.net {
|
||||||
* listen 127.0.0.1:7000;
|
* incoming {
|
||||||
|
* mask *@127.0.0.1;
|
||||||
|
* };
|
||||||
|
* password "mypassword";
|
||||||
|
* class servers;
|
||||||
|
* };
|
||||||
|
* ulines { stats.localhost.net; };
|
||||||
*/
|
*/
|
||||||
uplink
|
uplink
|
||||||
{
|
{
|
||||||
@@ -205,7 +209,7 @@ serverinfo
|
|||||||
name = "stats.localhost.net"
|
name = "stats.localhost.net"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The text which should appear as the server's information in /whois and similar
|
* The text which should appear as the server's information in /WHOIS and similar
|
||||||
* queries.
|
* queries.
|
||||||
*/
|
*/
|
||||||
description = "Stats for IRC Networks"
|
description = "Stats for IRC Networks"
|
||||||
@@ -231,13 +235,13 @@ serverinfo
|
|||||||
* The filename containing the Services process ID. The path is relative to the
|
* The filename containing the Services process ID. The path is relative to the
|
||||||
* services root directory.
|
* services root directory.
|
||||||
*/
|
*/
|
||||||
pid = "data/services.pid"
|
pid = "data/stats.pid"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The filename containing the Message of the Day. The path is relative to the
|
* The filename containing the Message of the Day. The path is relative to the
|
||||||
* services root directory.
|
* services root directory.
|
||||||
*/
|
*/
|
||||||
motd = "conf/services.motd"
|
motd = "conf/stats.motd"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -252,10 +256,12 @@ serverinfo
|
|||||||
* - hybrid
|
* - hybrid
|
||||||
* - inspircd12
|
* - inspircd12
|
||||||
* - inspircd20
|
* - inspircd20
|
||||||
|
* - inspircd3
|
||||||
* - ngircd
|
* - ngircd
|
||||||
* - plexus
|
* - plexus
|
||||||
* - ratbox
|
* - ratbox
|
||||||
* - unreal
|
* - unreal (for 3.2.x)
|
||||||
|
* - unreal4
|
||||||
*/
|
*/
|
||||||
module
|
module
|
||||||
{
|
{
|
||||||
@@ -378,7 +384,7 @@ options
|
|||||||
#hidestatso = yes
|
#hidestatso = yes
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A space-separated list of ulined servers on your network, it is assumed that
|
* A space-separated list of U-lined servers on your network, it is assumed that
|
||||||
* the servers in this list are allowed to set channel modes and Services will
|
* the servers in this list are allowed to set channel modes and Services will
|
||||||
* not attempt to reverse their mode changes.
|
* not attempt to reverse their mode changes.
|
||||||
*
|
*
|
||||||
@@ -411,17 +417,17 @@ log
|
|||||||
*/
|
*/
|
||||||
target = "stats.log"
|
target = "stats.log"
|
||||||
|
|
||||||
/* Log to both services.log and the channel #services
|
/* Log to both stats.log and the channel #stats
|
||||||
*
|
*
|
||||||
* Note that some older IRCds, such as Ratbox, require services to be in the
|
* Note that some older IRCds, such as Ratbox, require services to be in the
|
||||||
* log channel to be able to message it. To do this, configure service:channels to
|
* log channel to be able to message it. To do this, configure service:channels to
|
||||||
* join your logging channel.
|
* join your logging channel.
|
||||||
*/
|
*/
|
||||||
#target = "stats.log #services"
|
#target = "stats.log #stats"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The source(s) to only accept log messages from. Leave commented to allow all sources.
|
* The source(s) to only accept log messages from. Leave commented to allow all sources.
|
||||||
* This can be a users name, a channel name, one of our clients (eg, OperServ), or a server name.
|
* This can be a users name, a channel name, one of our clients (e.g. OperServ), or a server name.
|
||||||
*/
|
*/
|
||||||
#source = ""
|
#source = ""
|
||||||
|
|
||||||
@@ -432,8 +438,8 @@ log
|
|||||||
bot = "Global"
|
bot = "Global"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The number of days to keep logfiles, only useful if you are logging to a file.
|
* The number of days to keep log files, only useful if you are logging to a file.
|
||||||
* Set to 0 to never delete old logfiles.
|
* Set to 0 to never delete old log files.
|
||||||
*
|
*
|
||||||
* Note that Anope must run 24 hours a day for this feature to work correctly.
|
* Note that Anope must run 24 hours a day for this feature to work correctly.
|
||||||
*/
|
*/
|
||||||
@@ -461,7 +467,7 @@ log
|
|||||||
* create, destroy, join, part, kick, leave, mode
|
* create, destroy, join, part, kick, leave, mode
|
||||||
*
|
*
|
||||||
* Valid user options are:
|
* Valid user options are:
|
||||||
* connect, disconnect, quit, nick, ident, host, mode, maxusers, oper
|
* connect, disconnect, quit, nick, ident, host, mode, maxusers, oper, away
|
||||||
*
|
*
|
||||||
* Rawio and debug are simple yes/no answers, there are no types for them.
|
* Rawio and debug are simple yes/no answers, there are no types for them.
|
||||||
*
|
*
|
||||||
@@ -510,4 +516,3 @@ include
|
|||||||
type = "file"
|
type = "file"
|
||||||
name = "irc2sql.example.conf"
|
name = "irc2sql.example.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
For all bug reports / updates please see http://bugs.anope.org
|
For all bug reports / updates please see https://bugs.anope.org/
|
||||||
|
|||||||
+5
-5
@@ -100,12 +100,12 @@ Links
|
|||||||
The following links are web sites I've used to get this information, and might
|
The following links are web sites I've used to get this information, and might
|
||||||
describe some of the above a bit better than I have. :P
|
describe some of the above a bit better than I have. :P
|
||||||
|
|
||||||
http://www.acm.org/crossroads/xrds3-1/ovp3-1.html
|
https://www.acm.org/crossroads/xrds3-1/ovp3-1.html
|
||||||
http://www.cplusplus.com/doc/tutorial/typecasting.html
|
http://www.cplusplus.com/doc/tutorial/typecasting.html
|
||||||
http://www.codeguru.com/forum/showthread.php?t=312456
|
http://www.codeguru.com/forum/showthread.php?t=312456
|
||||||
http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/cast.html
|
https://web.archive.org/web/20170810222238/http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/cast.html
|
||||||
http://msdn.microsoft.com/en-us/library/5f6c9f8h(VS.80).aspx
|
https://www.microsoft.com/en-us/download/details.aspx?id=55984
|
||||||
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Type_Casting
|
https://en.wikibooks.org/wiki/C%2B%2B_Programming/Type_Casting
|
||||||
http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=134
|
https://web.archive.org/web/20160510114447/http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=134
|
||||||
|
|
||||||
-- CyberBotX, Nov 23, 2008
|
-- CyberBotX, Nov 23, 2008
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
Originally pulled from: http://www.inspircd.org/wiki/Coding_Guidelines
|
Originally pulled from: https://wiki.inspircd.org/Coding_Guidelines
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+58
-10
@@ -1,3 +1,51 @@
|
|||||||
|
Anope Version 2.0.7
|
||||||
|
-------------------
|
||||||
|
Fix not sending login data on successful NickServ GROUP
|
||||||
|
Fix m_httpd to not consider headers to be case sensitive
|
||||||
|
Add InspIRCd 3 protocol support
|
||||||
|
Add 'n' email token for use in the email change template
|
||||||
|
Add logging for NickServ UNGROUP
|
||||||
|
Fix setting swhois on UnrealIRCd
|
||||||
|
Add nickserv/recover permission to allow opers to recover other users
|
||||||
|
Fix superadmin not being removed when deopering
|
||||||
|
Fix setting nickserv access list in webcpanel
|
||||||
|
Add support for post-handshake SASL in Unreal 4.2.2+
|
||||||
|
Add logging for channel memo deletionso
|
||||||
|
|
||||||
|
Anope Version 2.0.6
|
||||||
|
-------------------
|
||||||
|
Log client IP for web clients running commands via webcpanel
|
||||||
|
Fix log file path for the config file could not be opened log message
|
||||||
|
Allow nickserv/group to be used via XMLRPC
|
||||||
|
Fix logsearch without wildcards
|
||||||
|
Support cidr exempts in m_dnsbl
|
||||||
|
Add support for IPv6 dnsbls
|
||||||
|
Add +u and +L channel modes for ircd-hybrid
|
||||||
|
Set +x after hostserv/off on InspIRCd and UnrealIRCd
|
||||||
|
Fix chanserv/mode not being able to set extbans
|
||||||
|
Send CHGIDENT/CHGHOST on SVSLOGIN on InspIRCd
|
||||||
|
Fix escaping replies from commands in webcpanel
|
||||||
|
Enable require_oper for all opers added via operserv/oper
|
||||||
|
Advertise SASL mechanisms to UnrealIRCd servers
|
||||||
|
|
||||||
|
Anope Version 2.0.5
|
||||||
|
-------------------
|
||||||
|
Fix negative levels to not match users with negative access
|
||||||
|
Fix memo sender to always be the account name of the sender
|
||||||
|
Allow unregistered users to use the ChanServ seen command
|
||||||
|
Fix secureops to not be enforced on operators with the chanserv/administration privilege
|
||||||
|
Fix command name in HELP syntax messages to always be upper case
|
||||||
|
Show unconfirmed nickname messages on registration in webcpanel
|
||||||
|
Fix NickServ SET EMAIL to be executable via XMLRPC
|
||||||
|
Fix OperServ USERLIST/CHANLIST to accept regexes
|
||||||
|
Allow OperServ USERLIST to also match realname syntax (n!u@h#r)
|
||||||
|
Fix db_old importing languages to use the UTF-8 version
|
||||||
|
Fix m_dns to return REFUSED if no answers could be found
|
||||||
|
Fix ns_maxemail to be case insensitive
|
||||||
|
Add MemoServ READ ALL command
|
||||||
|
Add support for NickServ GROUP to be executed via XMLRPC
|
||||||
|
Add support for logging hostname/ip of SASL authentication attempts, if supported by IRCd
|
||||||
|
|
||||||
Anope Version 2.0.4
|
Anope Version 2.0.4
|
||||||
-------------------
|
-------------------
|
||||||
Add notice rpc method to XMLRPC
|
Add notice rpc method to XMLRPC
|
||||||
@@ -88,7 +136,7 @@ Anope Version 2.0.0
|
|||||||
Added irc2sql stats module
|
Added irc2sql stats module
|
||||||
|
|
||||||
Anope Version 1.9.9
|
Anope Version 1.9.9
|
||||||
--------------------
|
-------------------
|
||||||
A Added a better webpanel template, removed the old one
|
A Added a better webpanel template, removed the old one
|
||||||
A Added SQL logging support
|
A Added SQL logging support
|
||||||
A Added Redis database support
|
A Added Redis database support
|
||||||
@@ -100,7 +148,7 @@ F Fixed setting BotServ's default settings in the config
|
|||||||
F Fixed some names of config items, including NickServ's kill protect
|
F Fixed some names of config items, including NickServ's kill protect
|
||||||
|
|
||||||
Anope Version 1.9.8
|
Anope Version 1.9.8
|
||||||
--------------------
|
-------------------
|
||||||
A Ability to configure fantasy commands in the config
|
A Ability to configure fantasy commands in the config
|
||||||
A Add SVSJOIN and SVSPART commands
|
A Add SVSJOIN and SVSPART commands
|
||||||
F Fix "leave" channel log level from not logging
|
F Fix "leave" channel log level from not logging
|
||||||
@@ -112,7 +160,7 @@ F Fix crash in os_forbid with expiring entries
|
|||||||
F Fix several issues with db_sql_live
|
F Fix several issues with db_sql_live
|
||||||
|
|
||||||
Anope Version 1.9.7
|
Anope Version 1.9.7
|
||||||
--------------------
|
-------------------
|
||||||
A Added ability for using regex as patterns for various commands
|
A Added ability for using regex as patterns for various commands
|
||||||
A Extended ability of operserv/akill to also match against nick and realname
|
A Extended ability of operserv/akill to also match against nick and realname
|
||||||
A Added chanserv:require configuration option
|
A Added chanserv:require configuration option
|
||||||
@@ -122,7 +170,7 @@ A Added a web panel
|
|||||||
A db_sql_live now allows all tables to be "live", not just a select few
|
A db_sql_live now allows all tables to be "live", not just a select few
|
||||||
|
|
||||||
Anope Version 1.9.6
|
Anope Version 1.9.6
|
||||||
--------------------
|
-------------------
|
||||||
A Added ability to configure emails sent by services
|
A Added ability to configure emails sent by services
|
||||||
A Added chanserv/up and chanserv/down
|
A Added chanserv/up and chanserv/down
|
||||||
A Added m_proxyscan
|
A Added m_proxyscan
|
||||||
@@ -141,7 +189,7 @@ F Fixed crash in /os oper info
|
|||||||
F Fixed eventfd Config check to work properly on OpenVZ
|
F Fixed eventfd Config check to work properly on OpenVZ
|
||||||
|
|
||||||
Anope Version 1.9.5
|
Anope Version 1.9.5
|
||||||
--------------------
|
-------------------
|
||||||
A Extended LDAP support
|
A Extended LDAP support
|
||||||
A Added os_oper, os_kill, os_forbid, m_statusupdate, cs_sync, and bs_autoassign
|
A Added os_oper, os_kill, os_forbid, m_statusupdate, cs_sync, and bs_autoassign
|
||||||
A Added a new configuration file format
|
A Added a new configuration file format
|
||||||
@@ -159,7 +207,7 @@ F Fixed setting -P on channels with only a botserv bot in it
|
|||||||
F Fixed modemanager complaining about prefixless modes on InspIRCd
|
F Fixed modemanager complaining about prefixless modes on InspIRCd
|
||||||
|
|
||||||
Anope Version 1.9.4
|
Anope Version 1.9.4
|
||||||
--------------------
|
-------------------
|
||||||
A Automatically set channel founder to the user with the highest access if there is no successor
|
A Automatically set channel founder to the user with the highest access if there is no successor
|
||||||
A /chanserv clone command to copy settings from one channel to another.
|
A /chanserv clone command to copy settings from one channel to another.
|
||||||
A /chanserv mode command
|
A /chanserv mode command
|
||||||
@@ -180,7 +228,7 @@ F Some failed logic in /operserv exception that prevents proper exceptions from
|
|||||||
F Fixed the anope_os_sxlines MySQL table and code to work after restarting
|
F Fixed the anope_os_sxlines MySQL table and code to work after restarting
|
||||||
|
|
||||||
Anope Version 1.9.3
|
Anope Version 1.9.3
|
||||||
--------------------
|
-------------------
|
||||||
A Added italics BotServ kicks support
|
A Added italics BotServ kicks support
|
||||||
A Tell users when their nicks expire in /ns glist and /ns info
|
A Tell users when their nicks expire in /ns glist and /ns info
|
||||||
A Added SSL support
|
A Added SSL support
|
||||||
@@ -207,7 +255,7 @@ F Anoperc start/stop to send the globaloncycle global, and fixed anoperc rehash
|
|||||||
F Fixed a potential crash if HostServ or BotServ was disbled
|
F Fixed a potential crash if HostServ or BotServ was disbled
|
||||||
|
|
||||||
Anope Version 1.9.2
|
Anope Version 1.9.2
|
||||||
--------------------
|
-------------------
|
||||||
A K alias to chanserv kick command
|
A K alias to chanserv kick command
|
||||||
A KB alias to chanserv ban command
|
A KB alias to chanserv ban command
|
||||||
A The ability to register empty nonregistered channels
|
A The ability to register empty nonregistered channels
|
||||||
@@ -238,7 +286,7 @@ F ms_rsend to really work
|
|||||||
F SQUITing juped servers on InspIRCd1.2+
|
F SQUITing juped servers on InspIRCd1.2+
|
||||||
|
|
||||||
Anope Version 1.9.1
|
Anope Version 1.9.1
|
||||||
--------------------
|
-------------------
|
||||||
F Don't enforce akick/forbidden/etc.-restrictions on clients on ulined servers.
|
F Don't enforce akick/forbidden/etc.-restrictions on clients on ulined servers.
|
||||||
F Remove modules_unload_all fini + hack that goes with it.
|
F Remove modules_unload_all fini + hack that goes with it.
|
||||||
F Signal handling cleanup.
|
F Signal handling cleanup.
|
||||||
@@ -279,7 +327,7 @@ Provided by Liber <Liber@jasonirc.net> - 2009
|
|||||||
F Support operoverride and such things (stop reversing changes from nonopped people where unnecessary)
|
F Support operoverride and such things (stop reversing changes from nonopped people where unnecessary)
|
||||||
|
|
||||||
Anope Version 1.9.0
|
Anope Version 1.9.0
|
||||||
--------------------
|
-------------------
|
||||||
F Modified compile to use g++
|
F Modified compile to use g++
|
||||||
F Improve protocol modules support (classes, virtual methods, etc)
|
F Improve protocol modules support (classes, virtual methods, etc)
|
||||||
F Move core services to use BotInfo
|
F Move core services to use BotInfo
|
||||||
|
|||||||
+19
-2
@@ -1,3 +1,20 @@
|
|||||||
|
Anope Version 2.0.7
|
||||||
|
-------------------
|
||||||
|
Add nickserv/recover permission
|
||||||
|
Add inspircd3 protocol module
|
||||||
|
Add default permission for chanstats saset chanstats command
|
||||||
|
|
||||||
|
Anope Version 2.0.6
|
||||||
|
-------------------
|
||||||
|
Mark enc_md5 and enc_sha1 as deprecated. Their use has been discouraged for years, and they will be removed in a future release.
|
||||||
|
Exempt all of 127.0.0.0/8 from m_dnsbl by default
|
||||||
|
Load m_sasl by default
|
||||||
|
Fix documentation for nickserv default option ns_keep_modes
|
||||||
|
|
||||||
|
Anope Version 2.0.5
|
||||||
|
-------------------
|
||||||
|
No significant changes.
|
||||||
|
|
||||||
Anope Version 2.0.4
|
Anope Version 2.0.4
|
||||||
-------------------
|
-------------------
|
||||||
Removed m_sasl_dh-aes and m_sasl_dh-blowfish
|
Removed m_sasl_dh-aes and m_sasl_dh-blowfish
|
||||||
@@ -96,7 +113,7 @@ opertype:commands removed operserv/umode
|
|||||||
operserv:modules removed os_umode
|
operserv:modules removed os_umode
|
||||||
|
|
||||||
Anope Version 1.9.3
|
Anope Version 1.9.3
|
||||||
------------------
|
-------------------
|
||||||
** ADDED CONFIGURATION DIRECTIVES **
|
** ADDED CONFIGURATION DIRECTIVES **
|
||||||
nickserv/auspex privilege added
|
nickserv/auspex privilege added
|
||||||
SSL module added for SSL support
|
SSL module added for SSL support
|
||||||
@@ -130,7 +147,7 @@ networkinfo:logchannel, logbot, logusers, logmaxusers, logchannel, and options:k
|
|||||||
dumpcore because it really didn't do anything
|
dumpcore because it really didn't do anything
|
||||||
|
|
||||||
Anope Version 1.9.2
|
Anope Version 1.9.2
|
||||||
--------------------
|
-------------------
|
||||||
** ADDED CONFIGURATION DIRECTIVES **
|
** ADDED CONFIGURATION DIRECTIVES **
|
||||||
options:enablelogchannel added to auto turn on the logchannel on startup
|
options:enablelogchannel added to auto turn on the logchannel on startup
|
||||||
options:mlock added to configure the default mlock modes on new channels
|
options:mlock added to configure the default mlock modes on new channels
|
||||||
|
|||||||
+18
-19
@@ -1,4 +1,4 @@
|
|||||||
Anope DefCon
|
Anope DefCon
|
||||||
------------
|
------------
|
||||||
|
|
||||||
1) Introduction
|
1) Introduction
|
||||||
@@ -11,7 +11,7 @@ Anope DefCon
|
|||||||
1) Introduction
|
1) Introduction
|
||||||
|
|
||||||
Anope 1.6 onwards supports a unique protection mechanism based on the
|
Anope 1.6 onwards supports a unique protection mechanism based on the
|
||||||
military "Defense Readiness Condition" (DefCon) system. It is based on
|
military "Defense Readiness Condition" (DefCon) system. It is based on
|
||||||
5 levels of defense readiness defined as:
|
5 levels of defense readiness defined as:
|
||||||
|
|
||||||
DEFCON5 Normal peacetime readiness
|
DEFCON5 Normal peacetime readiness
|
||||||
@@ -23,9 +23,9 @@ Anope DefCon
|
|||||||
These are configurable levels that mandates what actions Anope should
|
These are configurable levels that mandates what actions Anope should
|
||||||
take in case of emergency and change in readiness status.
|
take in case of emergency and change in readiness status.
|
||||||
|
|
||||||
It is used to prevent abuse to both Services, and the ircd on which they
|
It is used to prevent abuse to both Services, and the ircd on which they
|
||||||
are running. Also to protect the users, primarily in the event of Clones
|
are running. Also to protect the users, primarily in the event of Clones
|
||||||
and/or FloodBOT attacks.
|
and/or FloodBOT attacks.
|
||||||
|
|
||||||
2) Installation
|
2) Installation
|
||||||
|
|
||||||
@@ -44,26 +44,26 @@ Anope DefCon
|
|||||||
|
|
||||||
Pre-defined DefCon actions:
|
Pre-defined DefCon actions:
|
||||||
|
|
||||||
No new channel registrations
|
No new channel registrations
|
||||||
No New Nick Registrations
|
No New Nick Registrations
|
||||||
No Mode Lock changes
|
No Mode Lock changes
|
||||||
Force Chan Mode
|
Force Chan Mode
|
||||||
Use Reduced Session Limit
|
Use Reduced Session Limit
|
||||||
KILL any new clients trying to connect
|
KILL any new clients trying to connect
|
||||||
Services will ignore everyone but opers
|
Services will ignore everyone but opers
|
||||||
Services will silently ignore everyone but opers
|
Services will silently ignore everyone but opers
|
||||||
AKILL all new clients trying to connect
|
AKILL all new clients trying to connect
|
||||||
No new memos sent to block MemoServ attacks
|
No new memos sent to block MemoServ attacks
|
||||||
|
|
||||||
Information regarding how to enable this for specific defcon levels can
|
Information regarding how to enable this for specific defcon levels can
|
||||||
be found in operserv.conf
|
be found in operserv.conf
|
||||||
|
|
||||||
4) Usage
|
4) Usage
|
||||||
|
|
||||||
Anope starts up in DEFCON5 (normal readiness). To change the Defcon level
|
Anope starts up in DEFCON5 (normal readiness). To change the Defcon level
|
||||||
in action use:
|
in action use:
|
||||||
|
|
||||||
/msg OperServ DEFCON 1|2|3|4|5
|
/msg OperServ DEFCON 1|2|3|4|5
|
||||||
|
|
||||||
5) Usage Example
|
5) Usage Example
|
||||||
|
|
||||||
@@ -89,6 +89,5 @@ Anope DefCon
|
|||||||
|
|
||||||
6) Support
|
6) Support
|
||||||
|
|
||||||
You might get DefCon support by posting on our online forum, or maybe on
|
You might get DefCon support by posting on our online forum, or maybe on
|
||||||
our #anope channel at /server irc.anope.org.
|
our #anope channel at /server irc.anope.org.
|
||||||
|
|
||||||
|
|||||||
@@ -32,4 +32,3 @@ Anope Internal Events
|
|||||||
|
|
||||||
The "anope_override" identifier is for compatibility with C++11.
|
The "anope_override" identifier is for compatibility with C++11.
|
||||||
Its usage is highly recommended.
|
Its usage is highly recommended.
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
Frequently Asked Questions (FAQ) concerning Anope
|
Frequently Asked Questions (FAQ) concerning Anope
|
||||||
------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
The information in the 1.9 FAQ is subject to change at any
|
The information in the 2.0 FAQ is subject to change at any
|
||||||
moment due to new developments. Please visit our website
|
moment due to new developments. Please visit our website
|
||||||
for the most up to date information.
|
for the most up to date information.
|
||||||
|
|
||||||
An updated version of the FAQ can be found here:
|
An updated version of the FAQ can be found here:
|
||||||
|
|
||||||
http://wiki.anope.org/index.php/FAQ
|
https://wiki.anope.org/index.php/2.0/FAQ
|
||||||
|
|||||||
+7
-7
@@ -19,7 +19,7 @@ Note: You should also read the README and FAQ files!
|
|||||||
The very first thing you need to do is to get the Anope package (if not
|
The very first thing you need to do is to get the Anope package (if not
|
||||||
already done). You can find it at:
|
already done). You can find it at:
|
||||||
|
|
||||||
http://www.anope.org/
|
https://www.anope.org/
|
||||||
|
|
||||||
Anope requires cmake to build. You can check if CMake is already
|
Anope requires cmake to build. You can check if CMake is already
|
||||||
installed on your system using the command:
|
installed on your system using the command:
|
||||||
@@ -32,7 +32,7 @@ Note: You should also read the README and FAQ files!
|
|||||||
CMake unless you install it yourself into your home directory. CMake
|
CMake unless you install it yourself into your home directory. CMake
|
||||||
can be downloaded from:
|
can be downloaded from:
|
||||||
|
|
||||||
http://www.cmake.org/cmake/resources/software.html
|
https://cmake.org/download/
|
||||||
|
|
||||||
Next, unpack the package in your home directory, and go into the created
|
Next, unpack the package in your home directory, and go into the created
|
||||||
directory.
|
directory.
|
||||||
@@ -59,8 +59,8 @@ Note: You should also read the README and FAQ files!
|
|||||||
the file carefully. Using the default values is NOT a good idea, and will
|
the file carefully. Using the default values is NOT a good idea, and will
|
||||||
most likely not work!
|
most likely not work!
|
||||||
|
|
||||||
If you need help, you should visit http://forum.anope.org/ or #anope on
|
If you need help, you should visit https://forum.anope.org/ or #anope on
|
||||||
irc.anope.org. Provide *complete* error output, along with other relevant
|
irc.anope.org. Provide *complete* error output, along with other relevant
|
||||||
information eg. OS, compiler and C++ library versions.
|
information eg. OS, compiler and C++ library versions.
|
||||||
See the README file for more information.
|
See the README file for more information.
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ Note: You should also read the README and FAQ files!
|
|||||||
|
|
||||||
You may also try our interactive link maker, which is located at:
|
You may also try our interactive link maker, which is located at:
|
||||||
|
|
||||||
http://anope.org/ilm.php
|
https://www.anope.org/ilm.php
|
||||||
|
|
||||||
4) Starting Anope
|
4) Starting Anope
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ Note: You should also read the README and FAQ files!
|
|||||||
still running, and restart it if not.
|
still running, and restart it if not.
|
||||||
|
|
||||||
First rename the example.chk script that is in Anope path (by default,
|
First rename the example.chk script that is in Anope path (by default,
|
||||||
this is ~/services/conf) to services.chk and edit it. You'll need to
|
this is ~/services/conf) to services.chk and edit it. You'll need to
|
||||||
modify the CONFIGURATION part of the file. Then ensure that the file is
|
modify the CONFIGURATION part of the file. Then ensure that the file is
|
||||||
marked as executable by typing chmod +x services.chk, and try to launch the
|
marked as executable by typing chmod +x services.chk, and try to launch the
|
||||||
script to see if it works (Anope must not be running when you do this ;))
|
script to see if it works (Anope must not be running when you do this ;))
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -12,14 +12,14 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
1) Installation d'Anope
|
1) Installation d'Anope
|
||||||
|
|
||||||
NOTE IMPORTANTE : il est déconseillé d'utiliser (et même d'installer)
|
NOTE IMPORTANTE : il est déconseillé d'utiliser (et même d'installer)
|
||||||
Anope en tant que root. Utilisez un utilisateur non
|
Anope en tant que root. Utilisez un utilisateur non
|
||||||
privilégié. Celui que vous utilisez pour l'IRCd ou
|
privilégié. Celui que vous utilisez pour l'IRCd ou
|
||||||
un utilisateur dédié suffira.
|
un utilisateur dédié suffira.
|
||||||
|
|
||||||
La première chose que vous devez faire est d'obtenir le package Anope
|
La première chose que vous devez faire est d'obtenir le package Anope
|
||||||
(si ce n'est déjà fait). Vous pouvez le trouver ici :
|
(si ce n'est déjà fait). Vous pouvez le trouver ici :
|
||||||
|
|
||||||
http://www.anope.org/
|
https://www.anope.org/
|
||||||
|
|
||||||
Anope nécessite cmake pour être compilé. Vous pouvez vérifier si CMake
|
Anope nécessite cmake pour être compilé. Vous pouvez vérifier si CMake
|
||||||
est déjà installé sur votre système avec la commande :
|
est déjà installé sur votre système avec la commande :
|
||||||
@@ -27,12 +27,12 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
cmake --version
|
cmake --version
|
||||||
|
|
||||||
Si CMake est installé, vous aurez une ligne qui dit quelque chose comme
|
Si CMake est installé, vous aurez une ligne qui dit quelque chose comme
|
||||||
"cmake version 2.8.12.2". Si la version est inférieure à 2.4 ou si vous
|
"cmake version 2.8.12.2". Si la version est inférieure à 2.4 ou si vous
|
||||||
obtenez une erreur disant que la commande n'a pas été trouvée, vous ne
|
obtenez une erreur disant que la commande n'a pas été trouvée, vous ne
|
||||||
pourrez pas utiliser CMake Ă moins de l'installer vous-mĂŞme dans votre
|
pourrez pas utiliser CMake Ă moins de l'installer vous-mĂŞme dans votre
|
||||||
répertoire home. CMake peut être téléchargé ici :
|
répertoire home. CMake peut être téléchargé ici :
|
||||||
|
|
||||||
http://www.cmake.org/cmake/resources/software.html
|
https://cmake.org/download/
|
||||||
|
|
||||||
Ensuite, décompressez le package dans votre répertoire home, et allez
|
Ensuite, décompressez le package dans votre répertoire home, et allez
|
||||||
dans le répértoire qui vient d'être créé.
|
dans le répértoire qui vient d'être créé.
|
||||||
@@ -50,7 +50,7 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
Ceci va installer tous les fichiers nécessaires dans les dossiers que
|
Ceci va installer tous les fichiers nécessaires dans les dossiers que
|
||||||
vous avez indiqués avec le script Config et régler les permissions des
|
vous avez indiqués avec le script Config et régler les permissions des
|
||||||
fichiers. Vous devez vous assurer que le répertoire data n'est pas
|
fichiers. Vous devez vous assurer que le répertoire data n'est pas
|
||||||
accessible par les autres utilisateurs, car des utilisateurs
|
accessible par les autres utilisateurs, car des utilisateurs
|
||||||
malveillants pourraient causer des problèmes sur votre réseau, si les
|
malveillants pourraient causer des problèmes sur votre réseau, si les
|
||||||
mots de passe ne sont pas chiffrés, ou lire les mémos de tous les
|
mots de passe ne sont pas chiffrés, ou lire les mémos de tous les
|
||||||
utilisateurs.
|
utilisateurs.
|
||||||
@@ -64,7 +64,7 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
recommandée, et Anope ne fonctionnera probablement pas !
|
recommandée, et Anope ne fonctionnera probablement pas !
|
||||||
|
|
||||||
Si vous avez besoin d'aide, vous pouvez aller sur le site
|
Si vous avez besoin d'aide, vous pouvez aller sur le site
|
||||||
http://forum.anope.org/ ou le canal #anope sur irc.anope.org.
|
https://forum.anope.org/ ou le canal #anope sur irc.anope.org.
|
||||||
Fournissez *l'essemble* des erreurs qui apparaîssent, en plus de
|
Fournissez *l'essemble* des erreurs qui apparaîssent, en plus de
|
||||||
toutes informations utiles, comme les versions de votre OS, du
|
toutes informations utiles, comme les versions de votre OS, du
|
||||||
compilateur utilisé et de la librairie C++. Lisez le fichier README
|
compilateur utilisé et de la librairie C++. Lisez le fichier README
|
||||||
@@ -82,7 +82,7 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
|
|
||||||
3) Configuration de l'IRCd
|
3) Configuration de l'IRCd
|
||||||
|
|
||||||
Les Services agissent comme un serveur IRC avec des pseudo-clients.
|
Les Services agissent comme un serveur IRC avec des pseudo-clients.
|
||||||
Pour les relier à votre réseau, vous aurez besoin de configurer votre
|
Pour les relier à votre réseau, vous aurez besoin de configurer votre
|
||||||
IRCd pour permettre aux services de se connecter.
|
IRCd pour permettre aux services de se connecter.
|
||||||
|
|
||||||
@@ -99,14 +99,14 @@ Note : Vous devrez également lire les fichiers README et FAQ !
|
|||||||
Vous pouvez également essayer notre créateur de bloc link interactif
|
Vous pouvez également essayer notre créateur de bloc link interactif
|
||||||
situé ici :
|
situé ici :
|
||||||
|
|
||||||
http://anope.org/ilm.php
|
https://www.anope.org/ilm.php
|
||||||
|
|
||||||
4) Mettre en route Anope
|
4) Mettre en route Anope
|
||||||
|
|
||||||
Allez dans le répertoire où les fichiers binaires ont été installés
|
Allez dans le répertoire où les fichiers binaires ont été installés
|
||||||
(par défaut, ~/services/bin). Tapez ./services pour lancer Anope.
|
(par défaut, ~/services/bin). Tapez ./services pour lancer Anope.
|
||||||
|
|
||||||
S'il y a des erreurs de syntaxe dans le fichier de configuration, elles
|
S'il y a des erreurs de syntaxe dans le fichier de configuration, elles
|
||||||
seront affichées à l'écran. Corrigez-les jusqu'à ce qu'il n'y en ait
|
seront affichées à l'écran. Corrigez-les jusqu'à ce qu'il n'y en ait
|
||||||
plus. Un démarrage réussi ne générera pas de message.
|
plus. Un démarrage réussi ne générera pas de message.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -22,13 +22,13 @@ Anope Mutli Language Support
|
|||||||
|
|
||||||
2) Adding a new language
|
2) Adding a new language
|
||||||
|
|
||||||
Anope uses gettext (http://www.gnu.org/software/gettext/) to translate messages for users. To add a new language
|
Anope uses gettext (https://www.gnu.org/software/gettext/) to translate messages for users. To add a new language
|
||||||
install gettext and run `msginit -l language -o anope.language.po -i anope.pot`. For example if I was translating to
|
install gettext and run `msginit -l language -o anope.language.po -i anope.pot`. For example if I was translating to
|
||||||
Spanish I could run `msginit -l es_ES -o anope.es_ES.po -i anope.pot`. Open the newly generating .po file and start
|
Spanish I could run `msginit -l es_ES -o anope.es_ES.po -i anope.pot`. Open the newly generating .po file and start
|
||||||
translating. Once you are done simply rerun ./Config; make && make install and add the language to your services.conf.
|
translating. Once you are done simply rerun ./Config; make && make install and add the language to your services.conf.
|
||||||
Note that on Windows it is not quite this simple, windows.cpp must be edited and Anope recompiled and restarted.
|
Note that on Windows it is not quite this simple, windows.cpp must be edited and Anope recompiled and restarted.
|
||||||
|
|
||||||
Poedit (http://www.poedit.net/) is a popular po file editor, and we recommend using it or another editor designed to edit
|
Poedit (https://poedit.net/) is a popular po file editor, and we recommend using it or another editor designed to edit
|
||||||
po files (especially on Windows).
|
po files (especially on Windows).
|
||||||
|
|
||||||
If you have finished a language file translation and you want others to use it, please send it to team@anope.org
|
If you have finished a language file translation and you want others to use it, please send it to team@anope.org
|
||||||
|
|||||||
+4
-4
@@ -87,7 +87,7 @@ Anope Modules
|
|||||||
|
|
||||||
5) More Modules
|
5) More Modules
|
||||||
|
|
||||||
You can download more useful modules from http://modules.anope.org/. Just
|
You can download more useful modules from https://modules.anope.org/. Just
|
||||||
grab the module file (usually with a .cpp extension). Place the module
|
grab the module file (usually with a .cpp extension). Place the module
|
||||||
file in your modules (anope-1.9.x/modules/third) folder; although any of
|
file in your modules (anope-1.9.x/modules/third) folder; although any of
|
||||||
the other folders within the modules directory will work.
|
the other folders within the modules directory will work.
|
||||||
@@ -117,12 +117,12 @@ Anope Modules
|
|||||||
|
|
||||||
There are a number of useful documents on the Anope Wiki. The Anope Wiki
|
There are a number of useful documents on the Anope Wiki. The Anope Wiki
|
||||||
can be reached at:
|
can be reached at:
|
||||||
|
|
||||||
* http://wiki.anope.org/
|
* https://wiki.anope.org/
|
||||||
|
|
||||||
8) Modules Repository
|
8) Modules Repository
|
||||||
|
|
||||||
You can find modules at http://modules.anope.org
|
You can find modules at https://modules.anope.org/
|
||||||
|
|
||||||
These modules are 3rd party and as such are not supported by the Anope Team.
|
These modules are 3rd party and as such are not supported by the Anope Team.
|
||||||
Contact the Module Author directly with problems, not the Anope Team.
|
Contact the Module Author directly with problems, not the Anope Team.
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ Highlighted News in Anope 1.9
|
|||||||
* Added in live updating SQL and the ability to execute commands through SQL
|
* Added in live updating SQL and the ability to execute commands through SQL
|
||||||
* Re-designed configuration file
|
* Re-designed configuration file
|
||||||
* Code refresh / rewrite into C++
|
* Code refresh / rewrite into C++
|
||||||
|
|
||||||
|
|||||||
+10
-12
@@ -1,16 +1,14 @@
|
|||||||
Anope -- a set of IRC services for IRC networks
|
Anope -- a set of IRC services for IRC networks
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
||||||
Anope is 2003-2016 Anope Team <team@anope.org>.
|
Anope is 2003-2019 Anope Team <team@anope.org>.
|
||||||
Based on Epona 2000-2002 PegSoft <epona@pegsoft.net>.
|
Based on Epona 2000-2002 PegSoft <epona@pegsoft.net>.
|
||||||
Based on Services 1996-1999 Andrew Church <achurch@achurch.org>.
|
Based on Services 1996-1999 Andrew Church <achurch@achurch.org>.
|
||||||
|
|
||||||
This program is free but copyrighted software; see the file COPYING for
|
This program is free but copyrighted software; see the file COPYING for
|
||||||
details.
|
details.
|
||||||
|
|
||||||
Information about Anope may be found at http://www.anope.org/
|
Information about Anope may be found at https://www.anope.org/
|
||||||
Information about Epona may be found at http://www.epona.org/
|
|
||||||
Information about Services may be found at http://www.ircservices.esper.net/
|
|
||||||
|
|
||||||
Table of Contents
|
Table of Contents
|
||||||
-----------------
|
-----------------
|
||||||
@@ -19,7 +17,7 @@ Table of Contents
|
|||||||
3) Installation
|
3) Installation
|
||||||
4) Command Line Options
|
4) Command Line Options
|
||||||
5) Messages Translation
|
5) Messages Translation
|
||||||
6) Contact and Mailing List
|
6) Contact
|
||||||
|
|
||||||
1) Credits
|
1) Credits
|
||||||
|
|
||||||
@@ -111,7 +109,7 @@ Table of Contents
|
|||||||
* Kein <kein-of@yandex.ru> (ru_RU)
|
* Kein <kein-of@yandex.ru> (ru_RU)
|
||||||
* Maik Funke <Han@mefalcon.org> (de_DE)
|
* Maik Funke <Han@mefalcon.org> (de_DE)
|
||||||
* Isaac Fontal <i_fontal@hotmail.com> (es_ES)
|
* Isaac Fontal <i_fontal@hotmail.com> (es_ES)
|
||||||
* Janos Kapitany <sarkanyka@cjbchat.hu> (hu_HU)
|
* Janos Kapitany <sarkanyka@cjbchat.hu> (hu_HU)
|
||||||
* Szymon S'wierkosz <szymek@adres.pl> (pl_PL)
|
* Szymon S'wierkosz <szymek@adres.pl> (pl_PL)
|
||||||
* Christopher N. <saka@epiknet.org> (fr_FR)
|
* Christopher N. <saka@epiknet.org> (fr_FR)
|
||||||
* Yusuf Kurekci <ysfm.20@gmail.com> (tr_TR)
|
* Yusuf Kurekci <ysfm.20@gmail.com> (tr_TR)
|
||||||
@@ -170,8 +168,8 @@ Table of Contents
|
|||||||
|
|
||||||
* Bahamut 1.4.27 or later (including 1.8)
|
* Bahamut 1.4.27 or later (including 1.8)
|
||||||
* Charybdis 3.4 or later
|
* Charybdis 3.4 or later
|
||||||
* Hybrid 8.1 or later
|
* Hybrid 8.2 or later
|
||||||
* InspIRCd 1.2 or 2.0
|
* InspIRCd 1.2 or later
|
||||||
* ngIRCd 19.2 or later
|
* ngIRCd 19.2 or later
|
||||||
* Plexus 3 or later
|
* Plexus 3 or later
|
||||||
* Ratbox 2.0.6 or later
|
* Ratbox 2.0.6 or later
|
||||||
@@ -242,19 +240,19 @@ Table of Contents
|
|||||||
6) Contact
|
6) Contact
|
||||||
|
|
||||||
For announcements and discussions about Anope, please visit our
|
For announcements and discussions about Anope, please visit our
|
||||||
Portal and Forums at http://www.anope.org/ -- make sure you register
|
Portal and Forums at https://www.anope.org/ -- make sure you register
|
||||||
yourself to get full benefits.
|
yourself to get full benefits.
|
||||||
|
|
||||||
If you read the documentation carefully, and didn't find the answer to
|
If you read the documentation carefully, and didn't find the answer to
|
||||||
your question, feel free to post on the website forums or join our irc
|
your question, feel free to post on the website forums or join our irc
|
||||||
channel (irc.anope.org #anope). Once you join our Support channel be as
|
channel (irc.anope.org #anope). Once you join our Support channel be as
|
||||||
precise as possible when asking a question, because we have no extraordinary
|
precise as possible when asking a question, because we have no extraordinary
|
||||||
powers and can't guess things if they aren't provided.
|
powers and can't guess things if they aren't provided.
|
||||||
|
|
||||||
The more precise you are the sooner you'll be likely to get an answer.
|
The more precise you are the sooner you'll be likely to get an answer.
|
||||||
|
|
||||||
If you think you found a bug, add it to the bug tracking system
|
If you think you found a bug, add it to the bug tracking system
|
||||||
(http://bugs.anope.org) and - again - be as precise as possible. Also say
|
(https://bugs.anope.org/) and - again - be as precise as possible. Also say
|
||||||
whether the bug happens always or under what circumstances, and anything
|
whether the bug happens always or under what circumstances, and anything
|
||||||
that could be useful to track your bug down. If you wrote a patch, send
|
that could be useful to track your bug down. If you wrote a patch, send
|
||||||
it over. :)
|
it over. :)
|
||||||
|
|||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
Starting in Anope 1.9.9, Anope has Redis database support (http://redis.io/).
|
Starting in Anope 1.9.9, Anope has Redis database support (https://redis.io/).
|
||||||
This document explains the data structure used by Anope, and explains how
|
This document explains the data structure used by Anope, and explains how
|
||||||
keyspace notification works.
|
keyspace notification works.
|
||||||
|
|
||||||
This is not a tutorial on how to use Redis, see http://redis.io/documentation
|
This is not a tutorial on how to use Redis, see https://redis.io/documentation
|
||||||
for that.
|
for that.
|
||||||
|
|
||||||
Table of Contents
|
Table of Contents
|
||||||
@@ -14,7 +14,7 @@ Table of Contents
|
|||||||
1) Data structure
|
1) Data structure
|
||||||
|
|
||||||
There are 4 key namespaces in Anope, they are:
|
There are 4 key namespaces in Anope, they are:
|
||||||
|
|
||||||
id - The keys in id are used to atomically create object ids for new
|
id - The keys in id are used to atomically create object ids for new
|
||||||
objects. For example, if I were to create a new BotInfo I would first:
|
objects. For example, if I were to create a new BotInfo I would first:
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ Table of Contents
|
|||||||
2) Keyspace notifications
|
2) Keyspace notifications
|
||||||
|
|
||||||
Redis 2.7 (unstable) and 2.8 (stable) and newer support keyspace notifications
|
Redis 2.7 (unstable) and 2.8 (stable) and newer support keyspace notifications
|
||||||
(http://redis.io/topics/notifications). This allows Redis to notify Anope of
|
(https://redis.io/topics/notifications). This allows Redis to notify Anope of
|
||||||
any external changes to objects in the database. Once notified, Anope will
|
any external changes to objects in the database. Once notified, Anope will
|
||||||
immediately update the object. Otherwise, Anope keeps all objects in memory
|
immediately update the object. Otherwise, Anope keeps all objects in memory
|
||||||
and will not regularly read from the databaes once started.
|
and will not regularly read from the databaes once started.
|
||||||
|
|||||||
+3
-4
@@ -20,7 +20,6 @@ Anope Bundled Tools
|
|||||||
address. This should generate a log file of what happened when it tried
|
address. This should generate a log file of what happened when it tried
|
||||||
to connect to the SMTP server.
|
to connect to the SMTP server.
|
||||||
|
|
||||||
Credits:
|
Credits:
|
||||||
Originally written by Dominick Meglio <codemastr@unrealircd.com>
|
Originally written by Dominick Meglio <codemastr@unrealircd.com>
|
||||||
Ported to *nix by Trystan Scott Lee <trystan@nomadirc.net>
|
Ported to *nix by Trystan Scott Lee <trystan@nomadirc.net>
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -18,10 +18,10 @@ Anope for Windows
|
|||||||
1) Download the required files:
|
1) Download the required files:
|
||||||
|
|
||||||
* Current Anope source:
|
* Current Anope source:
|
||||||
http://sourceforge.net/project/showfiles.php?group_id=94081
|
https://github.com/anope/anope/releases
|
||||||
|
|
||||||
* CMake:
|
* CMake:
|
||||||
http://www.cmake.org/cmake/resources/software.html
|
https://cmake.org/download/
|
||||||
|
|
||||||
(NOTE: When installing, tell CMake to add itself to the PATH.)
|
(NOTE: When installing, tell CMake to add itself to the PATH.)
|
||||||
|
|
||||||
@@ -159,4 +159,3 @@ Anope for Windows
|
|||||||
Anope's Windows Installer was made using:
|
Anope's Windows Installer was made using:
|
||||||
|
|
||||||
* NSIS 2.20 <http://nsis.sourceforge.net>
|
* NSIS 2.20 <http://nsis.sourceforge.net>
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
/**
|
/**
|
||||||
* XMLRPC Functions
|
* XMLRPC Functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class AnopeXMLRPC
|
class AnopeXMLRPC
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -113,7 +114,7 @@ class AnopeXMLRPC
|
|||||||
{
|
{
|
||||||
return $this->run("channel", [$channel]);
|
return $this->run("channel", [$channel]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sent a notice to a user.
|
* Sent a notice to a user.
|
||||||
* Returns an array containing channel information, or an array of size one
|
* Returns an array containing channel information, or an array of size one
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
#
|
#
|
||||||
# Script taken from InspIRCd, www.inspircd.org
|
# Script taken from InspIRCd, https://www.inspircd.org/
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
# details.
|
# details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
# Set version.cpp to use C++ as well as set its compile flags
|
# Set version.cpp to use C++ as well as set its compile flags
|
||||||
set_source_files_properties(version.cpp PROPERTIES LANGUAGE CXX COMPILE_FLAGS "${CXXFLAGS}")
|
set_source_files_properties(version.cpp PROPERTIES LANGUAGE CXX COMPILE_FLAGS "${CXXFLAGS}")
|
||||||
# Generate version executable to modify version.h, setting it's linker flags as well
|
# Generate version-bin executable to modify version.h, setting it's linker flags as well
|
||||||
add_executable(version version.cpp)
|
add_executable(version-bin version.cpp)
|
||||||
set_target_properties(version PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}")
|
set_target_properties(version-bin PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}")
|
||||||
get_target_property(version_BINARY version LOCATION)
|
get_target_property(version_BINARY version-bin LOCATION)
|
||||||
# Modify version.h from the above executable, with dependencies to version.cpp
|
# Modify version.h from the above executable, with dependencies to version.cpp
|
||||||
# and all of the source files in the main build
|
# and all of the source files in the main build
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version_build
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version_build
|
||||||
COMMAND ${version_BINARY} ${Anope_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h
|
COMMAND ${version_BINARY} ${Anope_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/build.h
|
||||||
DEPENDS version ${SRC_SRCS}
|
DEPENDS version-bin ${SRC_SRCS}
|
||||||
)
|
)
|
||||||
# Add version to list of files for CPack to ignore
|
# Add version-bin to list of files for CPack to ignore
|
||||||
get_filename_component(version_BINARY ${version_BINARY} NAME)
|
get_filename_component(version_BINARY ${version_BINARY} NAME)
|
||||||
add_to_cpack_ignored_files("${version_BINARY}$" TRUE)
|
add_to_cpack_ignored_files("${version_BINARY}$" TRUE)
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
@@ -61,4 +61,4 @@ if(USE_PCH AND CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
endif(USE_PCH AND CMAKE_COMPILER_IS_GNUCXX)
|
endif(USE_PCH AND CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
||||||
# Add a custom target to the above file
|
# Add a custom target to the above file
|
||||||
add_custom_target(headers DEPENDS version ${CMAKE_CURRENT_BINARY_DIR}/version_build ${PCH_SOURCES_GCH})
|
add_custom_target(headers DEPENDS version-bin ${CMAKE_CURRENT_BINARY_DIR}/version_build ${PCH_SOURCES_GCH})
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+5
-4
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -25,7 +25,7 @@ extern CoreExport Serialize::Checker<nickalias_map> NickAliasList;
|
|||||||
extern CoreExport Serialize::Checker<nickcore_map> NickCoreList;
|
extern CoreExport Serialize::Checker<nickcore_map> NickCoreList;
|
||||||
|
|
||||||
/* A registered nickname.
|
/* A registered nickname.
|
||||||
* It matters that Base is here before Extensible (it is inherited by Serializable)
|
* It matters that Base is here before Extensible (it is inherited by Serializable)
|
||||||
*/
|
*/
|
||||||
class CoreExport NickAlias : public Serializable, public Extensible
|
class CoreExport NickAlias : public Serializable, public Extensible
|
||||||
{
|
{
|
||||||
@@ -214,7 +214,7 @@ class CoreExport NickCore : public Serializable, public Extensible
|
|||||||
* @return The account, if it exists
|
* @return The account, if it exists
|
||||||
*/
|
*/
|
||||||
static NickCore* Find(const Anope::string &nick);
|
static NickCore* Find(const Anope::string &nick);
|
||||||
|
|
||||||
void AddChannelReference(ChannelInfo *ci);
|
void AddChannelReference(ChannelInfo *ci);
|
||||||
void RemoveChannelReference(ChannelInfo *ci);
|
void RemoveChannelReference(ChannelInfo *ci);
|
||||||
void GetChannelReferences(std::deque<ChannelInfo *> &queue);
|
void GetChannelReferences(std::deque<ChannelInfo *> &queue);
|
||||||
@@ -234,7 +234,7 @@ class CoreExport IdentifyRequest
|
|||||||
std::set<Module *> holds;
|
std::set<Module *> holds;
|
||||||
bool dispatched;
|
bool dispatched;
|
||||||
bool success;
|
bool success;
|
||||||
|
|
||||||
static std::set<IdentifyRequest *> Requests;
|
static std::set<IdentifyRequest *> Requests;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -246,6 +246,7 @@ class CoreExport IdentifyRequest
|
|||||||
virtual void OnSuccess() = 0;
|
virtual void OnSuccess() = 0;
|
||||||
virtual void OnFail() = 0;
|
virtual void OnFail() = 0;
|
||||||
|
|
||||||
|
Module *GetOwner() const { return owner; }
|
||||||
const Anope::string &GetAccount() const { return account; }
|
const Anope::string &GetAccount() const { return account; }
|
||||||
const Anope::string &GetPassword() const { return password; }
|
const Anope::string &GetPassword() const { return password; }
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -443,13 +443,13 @@ namespace Anope
|
|||||||
*/
|
*/
|
||||||
extern CoreExport void Unhex(const string &src, string &dest);
|
extern CoreExport void Unhex(const string &src, string &dest);
|
||||||
extern CoreExport void Unhex(const string &src, char *dest, size_t sz);
|
extern CoreExport void Unhex(const string &src, char *dest, size_t sz);
|
||||||
|
|
||||||
/** Base 64 encode a string
|
/** Base 64 encode a string
|
||||||
* @param src The string to encode
|
* @param src The string to encode
|
||||||
* @param target Where the encoded string is placed
|
* @param target Where the encoded string is placed
|
||||||
*/
|
*/
|
||||||
extern CoreExport void B64Encode(const string &src, string &target);
|
extern CoreExport void B64Encode(const string &src, string &target);
|
||||||
|
|
||||||
/** Base 64 decode a string
|
/** Base 64 decode a string
|
||||||
* @param src The base64 encoded string
|
* @param src The base64 encoded string
|
||||||
* @param target The plain text result
|
* @param target The plain text result
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2011 Adam <Adam@anope.org>
|
* (C) 2008-2011 Adam <Adam@anope.org>
|
||||||
* (C) 2008-2016 Anope Team <team@anope.org>
|
* (C) 2008-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
||||||
* (C) 2008-2016 Anope Team <team@anope.org>
|
* (C) 2008-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/* Channel support
|
/* Channel support
|
||||||
*
|
*
|
||||||
* (C) 2008-2016 Anope Team
|
* (C) 2008-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -60,7 +60,7 @@ class CoreExport Channel : public Base, public Extensible
|
|||||||
Anope::string topic;
|
Anope::string topic;
|
||||||
/* Who set the topic */
|
/* Who set the topic */
|
||||||
Anope::string topic_setter;
|
Anope::string topic_setter;
|
||||||
/* The timestamp associated with the topic. Not necessarually anywhere close to Anope::CurTime.
|
/* The timestamp associated with the topic. Not necessarily anywhere close to Anope::CurTime.
|
||||||
* This is the time the topic was *originally set*. When we restore the topic we want to change the TS back
|
* This is the time the topic was *originally set*. When we restore the topic we want to change the TS back
|
||||||
* to this, but we can only do this on certain IRCds.
|
* to this, but we can only do this on certain IRCds.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Declarations for command data.
|
/* Declarations for command data.
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -59,6 +59,8 @@ class CoreExport CommandSource
|
|||||||
public:
|
public:
|
||||||
/* The account executing the command */
|
/* The account executing the command */
|
||||||
Reference<NickCore> nc;
|
Reference<NickCore> nc;
|
||||||
|
/* for web clients */
|
||||||
|
Anope::string ip;
|
||||||
/* Where the reply should go */
|
/* Where the reply should go */
|
||||||
CommandReply *reply;
|
CommandReply *reply;
|
||||||
/* Channel the command was executed on (fantasy) */
|
/* Channel the command was executed on (fantasy) */
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -78,6 +78,7 @@ namespace Configuration
|
|||||||
File(const Anope::string &, bool);
|
File(const Anope::string &, bool);
|
||||||
~File();
|
~File();
|
||||||
const Anope::string &GetName() const;
|
const Anope::string &GetName() const;
|
||||||
|
Anope::string GetPath() const;
|
||||||
|
|
||||||
bool IsOpen() const;
|
bool IsOpen() const;
|
||||||
bool Open();
|
bool Open();
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2002-2011 InspIRCd Development Team
|
* (C) 2002-2011 InspIRCd Development Team
|
||||||
* (C) 2009-2016 Anope Team <team@anope.org>
|
* (C) 2009-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2016 Anope Team
|
* (C) 2008-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -23,7 +23,7 @@ namespace Language
|
|||||||
* and we detect a language file exists for at least one of the supported
|
* and we detect a language file exists for at least one of the supported
|
||||||
* languages for the module, then we add the module's domain (its name)
|
* languages for the module, then we add the module's domain (its name)
|
||||||
* here.
|
* here.
|
||||||
*
|
*
|
||||||
* When strings are translated they are checked against all domains.
|
* When strings are translated they are checked against all domains.
|
||||||
*/
|
*/
|
||||||
extern std::vector<Anope::string> Domains;
|
extern std::vector<Anope::string> Domains;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+35
-35
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -22,21 +22,21 @@ namespace Message
|
|||||||
struct CoreExport Away : IRCDMessage
|
struct CoreExport Away : IRCDMessage
|
||||||
{
|
{
|
||||||
Away(Module *creator, const Anope::string &mname = "AWAY") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Away(Module *creator, const Anope::string &mname = "AWAY") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Capab : IRCDMessage
|
struct CoreExport Capab : IRCDMessage
|
||||||
{
|
{
|
||||||
Capab(Module *creator, const Anope::string &mname = "CAPAB") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Capab(Module *creator, const Anope::string &mname = "CAPAB") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Error : IRCDMessage
|
struct CoreExport Error : IRCDMessage
|
||||||
{
|
{
|
||||||
Error(Module *creator, const Anope::string &mname = "ERROR") : IRCDMessage(creator, mname, 1) { }
|
Error(Module *creator, const Anope::string &mname = "ERROR") : IRCDMessage(creator, mname, 1) { }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -46,15 +46,15 @@ namespace Message
|
|||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Join : IRCDMessage
|
struct CoreExport Join : IRCDMessage
|
||||||
{
|
{
|
||||||
Join(Module *creator, const Anope::string &mname = "JOIN") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Join(Module *creator, const Anope::string &mname = "JOIN") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
|
|
||||||
typedef std::pair<ChannelStatus, User *> SJoinUser;
|
typedef std::pair<ChannelStatus, User *> SJoinUser;
|
||||||
|
|
||||||
/** Handle a SJOIN.
|
/** Handle a SJOIN.
|
||||||
* @param source The source of the SJOIN
|
* @param source The source of the SJOIN
|
||||||
* @param chan The channel the users are joining to
|
* @param chan The channel the users are joining to
|
||||||
@@ -64,18 +64,18 @@ namespace Message
|
|||||||
*/
|
*/
|
||||||
static void SJoin(MessageSource &source, const Anope::string &chan, time_t ts, const Anope::string &modes, const std::list<SJoinUser> &users);
|
static void SJoin(MessageSource &source, const Anope::string &chan, time_t ts, const Anope::string &modes, const std::list<SJoinUser> &users);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Kick : IRCDMessage
|
struct CoreExport Kick : IRCDMessage
|
||||||
{
|
{
|
||||||
Kick(Module *creator, const Anope::string &mname = "KICK") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Kick(Module *creator, const Anope::string &mname = "KICK") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Kill : IRCDMessage
|
struct CoreExport Kill : IRCDMessage
|
||||||
{
|
{
|
||||||
Kill(Module *creator, const Anope::string &mname = "KILL") : IRCDMessage(creator, mname, 2) { }
|
Kill(Module *creator, const Anope::string &mname = "KILL") : IRCDMessage(creator, mname, 2) { }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -85,14 +85,14 @@ namespace Message
|
|||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport MOTD : IRCDMessage
|
struct CoreExport MOTD : IRCDMessage
|
||||||
{
|
{
|
||||||
MOTD(Module *creator, const Anope::string &mname = "MOTD") : IRCDMessage(creator, mname, 1) { }
|
MOTD(Module *creator, const Anope::string &mname = "MOTD") : IRCDMessage(creator, mname, 1) { }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Notice : IRCDMessage
|
struct CoreExport Notice : IRCDMessage
|
||||||
{
|
{
|
||||||
Notice(Module *creator, const Anope::string &mname = "NOTICE") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
Notice(Module *creator, const Anope::string &mname = "NOTICE") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
||||||
@@ -103,70 +103,70 @@ namespace Message
|
|||||||
struct CoreExport Part : IRCDMessage
|
struct CoreExport Part : IRCDMessage
|
||||||
{
|
{
|
||||||
Part(Module *creator, const Anope::string &mname = "PART") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Part(Module *creator, const Anope::string &mname = "PART") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Ping : IRCDMessage
|
struct CoreExport Ping : IRCDMessage
|
||||||
{
|
{
|
||||||
Ping(Module *creator, const Anope::string &mname = "PING") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Ping(Module *creator, const Anope::string &mname = "PING") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Privmsg : IRCDMessage
|
struct CoreExport Privmsg : IRCDMessage
|
||||||
{
|
{
|
||||||
Privmsg(Module *creator, const Anope::string &mname = "PRIVMSG") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
Privmsg(Module *creator, const Anope::string &mname = "PRIVMSG") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Quit : IRCDMessage
|
struct CoreExport Quit : IRCDMessage
|
||||||
{
|
{
|
||||||
Quit(Module *creator, const Anope::string &mname = "QUIT") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
Quit(Module *creator, const Anope::string &mname = "QUIT") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport SQuit : IRCDMessage
|
struct CoreExport SQuit : IRCDMessage
|
||||||
{
|
{
|
||||||
SQuit(Module *creator, const Anope::string &mname = "SQUIT") : IRCDMessage(creator, mname, 2) { }
|
SQuit(Module *creator, const Anope::string &mname = "SQUIT") : IRCDMessage(creator, mname, 2) { }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Stats : IRCDMessage
|
struct CoreExport Stats : IRCDMessage
|
||||||
{
|
{
|
||||||
Stats(Module *creator, const Anope::string &mname = "STATS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Stats(Module *creator, const Anope::string &mname = "STATS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Time : IRCDMessage
|
struct CoreExport Time : IRCDMessage
|
||||||
{
|
{
|
||||||
Time(Module *creator, const Anope::string &mname = "TIME") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Time(Module *creator, const Anope::string &mname = "TIME") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Topic : IRCDMessage
|
struct CoreExport Topic : IRCDMessage
|
||||||
{
|
{
|
||||||
Topic(Module *creator, const Anope::string &mname = "TOPIC") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
Topic(Module *creator, const Anope::string &mname = "TOPIC") : IRCDMessage(creator, mname, 2) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Version : IRCDMessage
|
struct CoreExport Version : IRCDMessage
|
||||||
{
|
{
|
||||||
Version(Module *creator, const Anope::string &mname = "VERSION") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Version(Module *creator, const Anope::string &mname = "VERSION") : IRCDMessage(creator, mname, 0) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CoreExport Whois : IRCDMessage
|
struct CoreExport Whois : IRCDMessage
|
||||||
{
|
{
|
||||||
Whois(Module *creator, const Anope::string &mname = "WHOIS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
Whois(Module *creator, const Anope::string &mname = "WHOIS") : IRCDMessage(creator, mname, 1) { SetFlag(IRCDMESSAGE_SOFT_LIMIT); }
|
||||||
|
|
||||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
/* Mode support
|
/* Mode support
|
||||||
*
|
*
|
||||||
* (C) 2008-2011 Adam <Adam@anope.org>
|
* (C) 2008-2011 Adam <Adam@anope.org>
|
||||||
* (C) 2008-2016 Anope Team <team@anope.org>
|
* (C) 2008-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*/
|
*/
|
||||||
@@ -192,15 +192,15 @@ class CoreExport ChannelModeStatus : public ChannelMode
|
|||||||
/* The "level" of the mode, used to compare with other modes.
|
/* The "level" of the mode, used to compare with other modes.
|
||||||
* Used so we know op > halfop > voice etc.
|
* Used so we know op > halfop > voice etc.
|
||||||
*/
|
*/
|
||||||
short level;
|
unsigned level;
|
||||||
|
|
||||||
/** constructor
|
/** constructor
|
||||||
* @param name The mode name
|
* @param name The mode name
|
||||||
* @param mc The mode char
|
* @param mc The mode char
|
||||||
* @param msymbol The symbol for the mode, eg @ %
|
* @param msymbol The symbol for the mode, eg @ %
|
||||||
* @param mlevel A level for the mode, which is usually determined by the PREFIX capab
|
* @param mlevel A level for the mode, which is usually determined by the PREFIX capab
|
||||||
*/
|
*/
|
||||||
ChannelModeStatus(const Anope::string &name, char mc, char msymbol, short mlevel);
|
ChannelModeStatus(const Anope::string &name, char mc, char msymbol, unsigned mlevel);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** A virtual mode. This mode doesn't natively exist on the IRCd (like extbans),
|
/** A virtual mode. This mode doesn't natively exist on the IRCd (like extbans),
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+9
-3
@@ -1,6 +1,6 @@
|
|||||||
/* Modular support
|
/* Modular support
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
/**
|
/**
|
||||||
* This #define allows us to call a method in all
|
* This #define allows us to call a method in all
|
||||||
* loaded modules in a readable simple way, e.g.:
|
* loaded modules in a readable simple way, e.g.:
|
||||||
*
|
*
|
||||||
* FOREACH_MOD(OnUserConnect, (user, exempt));
|
* FOREACH_MOD(OnUserConnect, (user, exempt));
|
||||||
*/
|
*/
|
||||||
#define FOREACH_MOD(ename, args) \
|
#define FOREACH_MOD(ename, args) \
|
||||||
@@ -104,7 +104,7 @@ else \
|
|||||||
* This define is similar to the one above but returns a result.
|
* This define is similar to the one above but returns a result.
|
||||||
* The first module to return a result other than EVENT_CONTINUE is the value to be accepted,
|
* The first module to return a result other than EVENT_CONTINUE is the value to be accepted,
|
||||||
* and any modules after are ignored. This is used like:
|
* and any modules after are ignored. This is used like:
|
||||||
*
|
*
|
||||||
* EventReturn MOD_RESULT;
|
* EventReturn MOD_RESULT;
|
||||||
* FOREACH_RESULT(OnUserConnect, MOD_RESULT, (user, exempt));
|
* FOREACH_RESULT(OnUserConnect, MOD_RESULT, (user, exempt));
|
||||||
*/
|
*/
|
||||||
@@ -301,6 +301,11 @@ class CoreExport Module : public Extensible
|
|||||||
* before they will be called.
|
* before they will be called.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Called on startup after database load, but before
|
||||||
|
* connecting to the uplink.
|
||||||
|
*/
|
||||||
|
virtual void OnPostInit() { throw NotImplementedException(); }
|
||||||
|
|
||||||
/** Called before a user has been kicked from a channel.
|
/** Called before a user has been kicked from a channel.
|
||||||
* @param source The kicker
|
* @param source The kicker
|
||||||
* @param cu The user, channel, and status of the user being kicked
|
* @param cu The user, channel, and status of the user being kicked
|
||||||
@@ -1099,6 +1104,7 @@ class CoreExport Module : public Extensible
|
|||||||
|
|
||||||
enum Implementation
|
enum Implementation
|
||||||
{
|
{
|
||||||
|
I_OnPostInit,
|
||||||
I_OnPreUserKicked, I_OnUserKicked, I_OnReload, I_OnPreBotAssign, I_OnBotAssign, I_OnBotUnAssign, I_OnUserConnect,
|
I_OnPreUserKicked, I_OnUserKicked, I_OnReload, I_OnPreBotAssign, I_OnBotAssign, I_OnBotUnAssign, I_OnUserConnect,
|
||||||
I_OnNewServer, I_OnUserNickChange, I_OnPreHelp, I_OnPostHelp, I_OnPreCommand, I_OnPostCommand, I_OnSaveDatabase,
|
I_OnNewServer, I_OnUserNickChange, I_OnPreHelp, I_OnPostHelp, I_OnPreCommand, I_OnPostCommand, I_OnSaveDatabase,
|
||||||
I_OnLoadDatabase, I_OnEncrypt, I_OnDecrypt, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBadWordAdd,
|
I_OnLoadDatabase, I_OnEncrypt, I_OnDecrypt, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBadWordAdd,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* BotServ core functions
|
/* BotServ core functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* BotServ core functions
|
/* BotServ core functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* ChanServ core functions
|
/* ChanServ core functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* ChanServ core functions
|
/* ChanServ core functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -78,11 +78,11 @@ namespace DNS
|
|||||||
|
|
||||||
Question() : type(QUERY_NONE), qclass(0) { }
|
Question() : type(QUERY_NONE), qclass(0) { }
|
||||||
Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { }
|
Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { }
|
||||||
inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; }
|
inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; }
|
||||||
|
|
||||||
struct hash
|
struct hash
|
||||||
{
|
{
|
||||||
size_t operator()(const Question &q) const
|
size_t operator()(const Question &q) const
|
||||||
{
|
{
|
||||||
return Anope::hash_ci()(q.name);
|
return Anope::hash_ci()(q.name);
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ namespace DNS
|
|||||||
unsigned int ttl;
|
unsigned int ttl;
|
||||||
Anope::string rdata;
|
Anope::string rdata;
|
||||||
time_t created;
|
time_t created;
|
||||||
|
|
||||||
ResourceRecord(const Anope::string &n, QueryType t, unsigned short c = 1) : Question(n, t, c), ttl(0), created(Anope::CurTime) { }
|
ResourceRecord(const Anope::string &n, QueryType t, unsigned short c = 1) : Question(n, t, c), ttl(0), created(Anope::CurTime) { }
|
||||||
ResourceRecord(const Question &q) : Question(q), ttl(0), created(Anope::CurTime) { }
|
ResourceRecord(const Question &q) : Question(q), ttl(0), created(Anope::CurTime) { }
|
||||||
};
|
};
|
||||||
@@ -104,7 +104,7 @@ namespace DNS
|
|||||||
std::vector<Question> questions;
|
std::vector<Question> questions;
|
||||||
std::vector<ResourceRecord> answers, authorities, additional;
|
std::vector<ResourceRecord> answers, authorities, additional;
|
||||||
Error error;
|
Error error;
|
||||||
|
|
||||||
Query() : error(ERROR_NONE) { }
|
Query() : error(ERROR_NONE) { }
|
||||||
Query(const Question &q) : error(ERROR_NONE) { questions.push_back(q); }
|
Query(const Question &q) : error(ERROR_NONE) { questions.push_back(q); }
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2012-2016 Anope Team
|
* (C) 2012-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -23,7 +23,7 @@ struct HTTPReply
|
|||||||
{
|
{
|
||||||
HTTPError error;
|
HTTPError error;
|
||||||
Anope::string content_type;
|
Anope::string content_type;
|
||||||
std::map<Anope::string, Anope::string> headers;
|
std::map<Anope::string, Anope::string, ci::less> headers;
|
||||||
typedef std::list<std::pair<Anope::string, Anope::string> > cookie;
|
typedef std::list<std::pair<Anope::string, Anope::string> > cookie;
|
||||||
std::vector<cookie> cookies;
|
std::vector<cookie> cookies;
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ class HTTPProvider : public ListenSocket, public Service
|
|||||||
unsigned short port;
|
unsigned short port;
|
||||||
bool ssl;
|
bool ssl;
|
||||||
public:
|
public:
|
||||||
Anope::string ext_ip;
|
std::vector<Anope::string> ext_ips;
|
||||||
std::vector<Anope::string> ext_headers;
|
std::vector<Anope::string> ext_headers;
|
||||||
|
|
||||||
HTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, bool s) : ListenSocket(i, p, i.find(':') != Anope::string::npos), Service(c, "HTTPProvider", n), ip(i), port(p), ssl(s) { }
|
HTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, bool s) : ListenSocket(i, p, i.find(':') != Anope::string::npos), Service(c, "HTTPProvider", n), ip(i), port(p), ssl(s) { }
|
||||||
@@ -228,6 +228,9 @@ namespace HTTPUtils
|
|||||||
case '"':
|
case '"':
|
||||||
dst += """;
|
dst += """;
|
||||||
break;
|
break;
|
||||||
|
case '&':
|
||||||
|
dst += "&";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
dst += src[i];
|
dst += src[i];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* NickServ core functions
|
/* NickServ core functions
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -45,6 +45,8 @@ class ForbidService : public Service
|
|||||||
|
|
||||||
virtual ForbidData *FindForbid(const Anope::string &mask, ForbidType type) = 0;
|
virtual ForbidData *FindForbid(const Anope::string &mask, ForbidType type) = 0;
|
||||||
|
|
||||||
|
virtual ForbidData *FindForbidExact(const Anope::string &mask, ForbidType type) = 0;
|
||||||
|
|
||||||
virtual std::vector<ForbidData *> GetForbids() = 0;
|
virtual std::vector<ForbidData *> GetForbids() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* OperServ ignore interface
|
/* OperServ ignore interface
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -25,7 +25,7 @@ class IgnoreService : public Service
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { }
|
IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void AddIgnore(IgnoreData *) = 0;
|
virtual void AddIgnore(IgnoreData *) = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -39,11 +39,11 @@ class NewsService : public Service
|
|||||||
NewsService(Module *m) : Service(m, "NewsService", "news") { }
|
NewsService(Module *m) : Service(m, "NewsService", "news") { }
|
||||||
|
|
||||||
virtual NewsItem *CreateNewsItem() = 0;
|
virtual NewsItem *CreateNewsItem() = 0;
|
||||||
|
|
||||||
virtual void AddNewsItem(NewsItem *n) = 0;
|
virtual void AddNewsItem(NewsItem *n) = 0;
|
||||||
|
|
||||||
virtual void DelNewsItem(NewsItem *n) = 0;
|
virtual void DelNewsItem(NewsItem *n) = 0;
|
||||||
|
|
||||||
virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0;
|
virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -48,7 +48,7 @@ class SessionService : public Service
|
|||||||
|
|
||||||
virtual Exception *FindException(User *u) = 0;
|
virtual Exception *FindException(User *u) = 0;
|
||||||
|
|
||||||
virtual Exception *FindException(const Anope::string &host) = 0;
|
virtual Exception *FindException(const Anope::string &host) = 0;
|
||||||
|
|
||||||
virtual ExceptionVector &GetExceptions() = 0;
|
virtual ExceptionVector &GetExceptions() = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2011-2016 Anope Team
|
* (C) 2011-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -23,7 +23,7 @@ namespace Redis
|
|||||||
|
|
||||||
Reply() { Clear(); }
|
Reply() { Clear(); }
|
||||||
~Reply() { Clear(); }
|
~Reply() { Clear(); }
|
||||||
|
|
||||||
void Clear()
|
void Clear()
|
||||||
{
|
{
|
||||||
type = NOT_PARSED;
|
type = NOT_PARSED;
|
||||||
@@ -58,6 +58,8 @@ namespace Redis
|
|||||||
public:
|
public:
|
||||||
Provider(Module *c, const Anope::string &n) : Service(c, "Redis::Provider", n) { }
|
Provider(Module *c, const Anope::string &n) : Service(c, "Redis::Provider", n) { }
|
||||||
|
|
||||||
|
virtual bool IsSocketDead() = 0;
|
||||||
|
|
||||||
virtual void SendCommand(Interface *i, const std::vector<Anope::string> &cmds) = 0;
|
virtual void SendCommand(Interface *i, const std::vector<Anope::string> &cmds) = 0;
|
||||||
virtual void SendCommand(Interface *i, const Anope::string &str) = 0;
|
virtual void SendCommand(Interface *i, const Anope::string &str) = 0;
|
||||||
|
|
||||||
|
|||||||
+17
-5
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2014-2016 Anope Team
|
* (C) 2014-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -46,6 +46,7 @@ namespace SASL
|
|||||||
{
|
{
|
||||||
time_t created;
|
time_t created;
|
||||||
Anope::string uid;
|
Anope::string uid;
|
||||||
|
Anope::string hostname, ip;
|
||||||
Reference<Mechanism> mech;
|
Reference<Mechanism> mech;
|
||||||
|
|
||||||
Session(Mechanism *m, const Anope::string &u) : created(Anope::CurTime), uid(u), mech(m) { }
|
Session(Mechanism *m, const Anope::string &u) : created(Anope::CurTime), uid(u), mech(m) { }
|
||||||
@@ -76,9 +77,10 @@ namespace SASL
|
|||||||
class IdentifyRequest : public ::IdentifyRequest
|
class IdentifyRequest : public ::IdentifyRequest
|
||||||
{
|
{
|
||||||
Anope::string uid;
|
Anope::string uid;
|
||||||
|
Anope::string hostname, ip;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IdentifyRequest(Module *m, const Anope::string &id, const Anope::string &acc, const Anope::string &pass) : ::IdentifyRequest(m, acc, pass), uid(id) { }
|
IdentifyRequest(Module *m, const Anope::string &id, const Anope::string &acc, const Anope::string &pass, const Anope::string &h, const Anope::string &i) : ::IdentifyRequest(m, acc, pass), uid(id), hostname(h), ip(i) { }
|
||||||
|
|
||||||
void OnSuccess() anope_override
|
void OnSuccess() anope_override
|
||||||
{
|
{
|
||||||
@@ -86,7 +88,7 @@ namespace SASL
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
NickAlias *na = NickAlias::Find(GetAccount());
|
NickAlias *na = NickAlias::Find(GetAccount());
|
||||||
if (!na || na->nc->HasExt("NS_SUSPENDED"))
|
if (!na || na->nc->HasExt("NS_SUSPENDED") || na->nc->HasExt("UNCONFIRMED"))
|
||||||
return OnFail();
|
return OnFail();
|
||||||
|
|
||||||
unsigned int maxlogins = Config->GetModule("ns_identify")->Get<unsigned int>("maxlogins");
|
unsigned int maxlogins = Config->GetModule("ns_identify")->Get<unsigned int>("maxlogins");
|
||||||
@@ -96,7 +98,11 @@ namespace SASL
|
|||||||
Session *s = sasl->GetSession(uid);
|
Session *s = sasl->GetSession(uid);
|
||||||
if (s)
|
if (s)
|
||||||
{
|
{
|
||||||
Log(Config->GetClient("NickServ"), "sasl") << "A user identified to account " << this->GetAccount() << " using SASL";
|
Anope::string user = "A user";
|
||||||
|
if (!hostname.empty() && !ip.empty())
|
||||||
|
user = hostname + " (" + ip + ")";
|
||||||
|
|
||||||
|
Log(this->GetOwner(), "sasl", Config->GetClient("NickServ")) << user << " identified to account " << this->GetAccount() << " using SASL";
|
||||||
sasl->Succeed(s, na->nc);
|
sasl->Succeed(s, na->nc);
|
||||||
delete s;
|
delete s;
|
||||||
}
|
}
|
||||||
@@ -120,8 +126,14 @@ namespace SASL
|
|||||||
accountstatus = "nonexistent ";
|
accountstatus = "nonexistent ";
|
||||||
else if (na->nc->HasExt("NS_SUSPENDED"))
|
else if (na->nc->HasExt("NS_SUSPENDED"))
|
||||||
accountstatus = "suspended ";
|
accountstatus = "suspended ";
|
||||||
|
else if (na->nc->HasExt("UNCONFIRMED"))
|
||||||
|
accountstatus = "unconfirmed ";
|
||||||
|
|
||||||
Log(Config->GetClient("NickServ"), "sasl") << "A user failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
|
Anope::string user = "A user";
|
||||||
|
if (!hostname.empty() && !ip.empty())
|
||||||
|
user = hostname + " (" + ip + ")";
|
||||||
|
|
||||||
|
Log(this->GetOwner(), "sasl", Config->GetClient("NickServ")) << user << " failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2010-2016 Anope Team
|
* (C) 2010-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -10,6 +10,6 @@ class SSLService : public Service
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SSLService(Module *o, const Anope::string &n) : Service(o, "SSLService", n) { }
|
SSLService(Module *o, const Anope::string &n) : Service(o, "SSLService", n) { }
|
||||||
|
|
||||||
virtual void Init(Socket *s) = 0;
|
virtual void Init(Socket *s) = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2010-2016 Anope Team
|
* (C) 2010-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -17,7 +17,7 @@ class XMLRPCRequest
|
|||||||
Anope::string id;
|
Anope::string id;
|
||||||
std::deque<Anope::string> data;
|
std::deque<Anope::string> data;
|
||||||
HTTPReply& r;
|
HTTPReply& r;
|
||||||
|
|
||||||
XMLRPCRequest(HTTPReply &_r) : r(_r) { }
|
XMLRPCRequest(HTTPReply &_r) : r(_r) { }
|
||||||
inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.insert(std::make_pair(dname, ddata)); }
|
inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.insert(std::make_pair(dname, ddata)); }
|
||||||
inline const std::map<Anope::string, Anope::string> &get_replies() { return this->replies; }
|
inline const std::map<Anope::string, Anope::string> &get_replies() { return this->replies; }
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
||||||
* (C) 2008-2016 Anope Team <team@anope.org>
|
* (C) 2008-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*/
|
*/
|
||||||
@@ -33,7 +33,7 @@ struct CoreExport Oper
|
|||||||
virtual ~Oper();
|
virtual ~Oper();
|
||||||
|
|
||||||
static std::vector<Oper *> opers;
|
static std::vector<Oper *> opers;
|
||||||
|
|
||||||
/** Find an oper block by name
|
/** Find an oper block by name
|
||||||
* @param name The name
|
* @param name The name
|
||||||
* @return the oper block
|
* @return the oper block
|
||||||
|
|||||||
+33
-5
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -39,7 +39,7 @@ class CoreExport IRCDProto : public Service
|
|||||||
virtual void SendNumericInternal(int numeric, const Anope::string &dest, const Anope::string &buf);
|
virtual void SendNumericInternal(int numeric, const Anope::string &dest, const Anope::string &buf);
|
||||||
|
|
||||||
const Anope::string &GetProtocolName();
|
const Anope::string &GetProtocolName();
|
||||||
virtual void Parse(const Anope::string &, Anope::string &, Anope::string &, std::vector<Anope::string> &);
|
virtual bool Parse(const Anope::string &, Anope::map<Anope::string> &, Anope::string &, Anope::string &, std::vector<Anope::string> &);
|
||||||
virtual Anope::string Format(const Anope::string &source, const Anope::string &message);
|
virtual Anope::string Format(const Anope::string &source, const Anope::string &message);
|
||||||
|
|
||||||
/* Modes used by default by our clients */
|
/* Modes used by default by our clients */
|
||||||
@@ -195,9 +195,9 @@ class CoreExport IRCDProto : public Service
|
|||||||
* initial handshake requirements.
|
* initial handshake requirements.
|
||||||
*/
|
*/
|
||||||
virtual void SendConnect() = 0;
|
virtual void SendConnect() = 0;
|
||||||
|
|
||||||
/** Called right before we begin our burst, after we have handshaked successfully with the uplink/
|
/** Called right before we begin our burst, after we have handshaked successfully with the uplink.
|
||||||
* At this point none of our servesr, users, or channels exist on the uplink
|
* At this point none of our servers, users, or channels exist on the uplink
|
||||||
*/
|
*/
|
||||||
virtual void SendBOB() { }
|
virtual void SendBOB() { }
|
||||||
virtual void SendEOB() { }
|
virtual void SendEOB() { }
|
||||||
@@ -278,11 +278,39 @@ class CoreExport IRCDMessage : public Service
|
|||||||
IRCDMessage(Module *owner, const Anope::string &n, unsigned p = 0);
|
IRCDMessage(Module *owner, const Anope::string &n, unsigned p = 0);
|
||||||
unsigned GetParamCount() const;
|
unsigned GetParamCount() const;
|
||||||
virtual void Run(MessageSource &, const std::vector<Anope::string> ¶ms) = 0;
|
virtual void Run(MessageSource &, const std::vector<Anope::string> ¶ms) = 0;
|
||||||
|
virtual void Run(MessageSource &, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags);
|
||||||
|
|
||||||
void SetFlag(IRCDMessageFlag f) { flags.insert(f); }
|
void SetFlag(IRCDMessageFlag f) { flags.insert(f); }
|
||||||
bool HasFlag(IRCDMessageFlag f) const { return flags.count(f); }
|
bool HasFlag(IRCDMessageFlag f) const { return flags.count(f); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** MessageTokenizer allows tokens in the IRC wire format to be read from a string */
|
||||||
|
class CoreExport MessageTokenizer
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
/** The message we are parsing tokens from. */
|
||||||
|
Anope::string message;
|
||||||
|
|
||||||
|
/** The current position within the message. */
|
||||||
|
Anope::string::size_type position;
|
||||||
|
|
||||||
|
public:
|
||||||
|
/** Create a tokenstream and fill it with the provided data. */
|
||||||
|
MessageTokenizer(const Anope::string &msg);
|
||||||
|
|
||||||
|
/** Retrieve the next \<middle> token in the message.
|
||||||
|
* @param token The next token available, or an empty string if none remain.
|
||||||
|
* @return True if a token was retrieved; otherwise, false.
|
||||||
|
*/
|
||||||
|
bool GetMiddle(Anope::string &token);
|
||||||
|
|
||||||
|
/** Retrieve the next \<trailing> token in the message.
|
||||||
|
* @param token The next token available, or an empty string if none remain.
|
||||||
|
* @return True if a token was retrieved; otherwise, false.
|
||||||
|
*/
|
||||||
|
bool GetTrailing(Anope::string &token);
|
||||||
|
};
|
||||||
|
|
||||||
extern CoreExport IRCDProto *IRCD;
|
extern CoreExport IRCDProto *IRCD;
|
||||||
|
|
||||||
#endif // PROTOCOL_H
|
#endif // PROTOCOL_H
|
||||||
|
|||||||
+12
-12
@@ -5,11 +5,11 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2005-2011 Paul Hsieh
|
* Copyright (c) 2005-2011 Paul Hsieh
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
*
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
* 3. The name of the author may not be used to endorse or promote products
|
||||||
* derived from this software without specific prior written permission.
|
* derived from this software without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
@@ -730,15 +730,15 @@ typedef uint_least32_t uint_fast32_t;
|
|||||||
|
|
||||||
#if defined (__TEST_PSTDINT_FOR_CORRECTNESS)
|
#if defined (__TEST_PSTDINT_FOR_CORRECTNESS)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please compile with the maximum warning settings to make sure macros are not
|
* Please compile with the maximum warning settings to make sure macros are not
|
||||||
* defined more than once.
|
* defined more than once.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define glue3_aux(x,y,z) x ## y ## z
|
#define glue3_aux(x,y,z) x ## y ## z
|
||||||
#define glue3(x,y,z) glue3_aux(x,y,z)
|
#define glue3(x,y,z) glue3_aux(x,y,z)
|
||||||
|
|
||||||
@@ -748,7 +748,7 @@ typedef uint_least32_t uint_fast32_t;
|
|||||||
#define DECL(us,bits) glue3(DECL,us,) (bits)
|
#define DECL(us,bits) glue3(DECL,us,) (bits)
|
||||||
|
|
||||||
#define TESTUMAX(bits) glue3(u,bits,=) glue3(~,u,bits); if (glue3(UINT,bits,_MAX) glue3(!=,u,bits)) printf ("Something wrong with UINT%d_MAX\n", bits)
|
#define TESTUMAX(bits) glue3(u,bits,=) glue3(~,u,bits); if (glue3(UINT,bits,_MAX) glue3(!=,u,bits)) printf ("Something wrong with UINT%d_MAX\n", bits)
|
||||||
|
|
||||||
int main () {
|
int main () {
|
||||||
DECL(I,8)
|
DECL(I,8)
|
||||||
DECL(U,8)
|
DECL(U,8)
|
||||||
@@ -765,7 +765,7 @@ int main () {
|
|||||||
char str0[256], str1[256];
|
char str0[256], str1[256];
|
||||||
|
|
||||||
sprintf (str0, "%d %x\n", 0, ~0);
|
sprintf (str0, "%d %x\n", 0, ~0);
|
||||||
|
|
||||||
sprintf (str1, "%d %x\n", i8, ~0);
|
sprintf (str1, "%d %x\n", i8, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with i8 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with i8 : %s\n", str1);
|
||||||
sprintf (str1, "%u %x\n", u8, ~0);
|
sprintf (str1, "%u %x\n", u8, ~0);
|
||||||
@@ -773,20 +773,20 @@ int main () {
|
|||||||
sprintf (str1, "%d %x\n", i16, ~0);
|
sprintf (str1, "%d %x\n", i16, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with i16 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with i16 : %s\n", str1);
|
||||||
sprintf (str1, "%u %x\n", u16, ~0);
|
sprintf (str1, "%u %x\n", u16, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with u16 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with u16 : %s\n", str1);
|
||||||
sprintf (str1, "%" PRINTF_INT32_MODIFIER "d %x\n", i32, ~0);
|
sprintf (str1, "%" PRINTF_INT32_MODIFIER "d %x\n", i32, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with i32 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with i32 : %s\n", str1);
|
||||||
sprintf (str1, "%" PRINTF_INT32_MODIFIER "u %x\n", u32, ~0);
|
sprintf (str1, "%" PRINTF_INT32_MODIFIER "u %x\n", u32, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with u32 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with u32 : %s\n", str1);
|
||||||
#ifdef INT64_MAX
|
#ifdef INT64_MAX
|
||||||
sprintf (str1, "%" PRINTF_INT64_MODIFIER "d %x\n", i64, ~0);
|
sprintf (str1, "%" PRINTF_INT64_MODIFIER "d %x\n", i64, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with i64 : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with i64 : %s\n", str1);
|
||||||
#endif
|
#endif
|
||||||
sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "d %x\n", imax, ~0);
|
sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "d %x\n", imax, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with imax : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with imax : %s\n", str1);
|
||||||
sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "u %x\n", umax, ~0);
|
sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "u %x\n", umax, ~0);
|
||||||
if (0 != strcmp (str0, str1)) printf ("Something wrong with umax : %s\n", str1);
|
if (0 != strcmp (str0, str1)) printf ("Something wrong with umax : %s\n", str1);
|
||||||
|
|
||||||
TESTUMAX(8);
|
TESTUMAX(8);
|
||||||
TESTUMAX(16);
|
TESTUMAX(16);
|
||||||
TESTUMAX(32);
|
TESTUMAX(32);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2016 Anope Team
|
* (C) 2008-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -231,7 +231,7 @@ class CoreExport ChannelInfo : public Serializable, public Extensible
|
|||||||
*/
|
*/
|
||||||
Anope::string GetIdealBan(User *u) const;
|
Anope::string GetIdealBan(User *u) const;
|
||||||
|
|
||||||
/** Finds a ChannelInfo
|
/** Finds a ChannelInfo
|
||||||
* @param name channel name to lookup
|
* @param name channel name to lookup
|
||||||
* @return the ChannelInfo associated with the channel
|
* @return the ChannelInfo associated with the channel
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+6
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -57,6 +57,11 @@ union CoreExport sockaddrs
|
|||||||
*/
|
*/
|
||||||
Anope::string addr() const;
|
Anope::string addr() const;
|
||||||
|
|
||||||
|
/** Get the reverse address represented by this addr
|
||||||
|
* @return The reverse address
|
||||||
|
*/
|
||||||
|
Anope::string reverse() const;
|
||||||
|
|
||||||
/* Is this address ipv6? */
|
/* Is this address ipv6? */
|
||||||
bool ipv6() const;
|
bool ipv6() const;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Timer include stuff.
|
/* Timer include stuff.
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+4
-5
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
* (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
|
||||||
* (C) 2003-2016 Anope Team <team@anope.org>
|
* (C) 2003-2019 Anope Team <team@anope.org>
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
*
|
*
|
||||||
@@ -347,10 +347,9 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe
|
|||||||
|
|
||||||
/* Returns a mask that will most likely match any address the
|
/* Returns a mask that will most likely match any address the
|
||||||
* user will have from that location. For IP addresses, wildcards the
|
* user will have from that location. For IP addresses, wildcards the
|
||||||
* appropriate subnet mask (e.g. 35.1.1.1 -> 35.*; 128.2.1.1 -> 128.2.*);
|
* last octet (e.g. 35.1.1.1 -> 35.1.1.*). for named addresses, wildcards
|
||||||
* for named addresses, wildcards the leftmost part of the name unless the
|
* the leftmost part of the name unless the name only contains two parts.
|
||||||
* name only contains two parts. If the username begins with a ~, delete
|
* If the username begins with a ~, replace with *.
|
||||||
* it.
|
|
||||||
*/
|
*/
|
||||||
Anope::string Mask() const;
|
Anope::string Mask() const;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/* Build bumper
|
/* Build bumper
|
||||||
*
|
*
|
||||||
* (C) 2003-2016 Anope Team
|
* (C) 2003-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
@@ -28,7 +28,7 @@ static std::string get_git_hash(const std::string &git_dir)
|
|||||||
fd.close();
|
fd.close();
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
fd.close();
|
fd.close();
|
||||||
|
|
||||||
filebuf = filebuf.substr(5);
|
filebuf = filebuf.substr(5);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (C) 2008-2016 Anope Team
|
* (C) 2008-2019 Anope Team
|
||||||
* Contact us at team@anope.org
|
* Contact us at team@anope.org
|
||||||
*
|
*
|
||||||
* Please read COPYING and README for further details.
|
* Please read COPYING and README for further details.
|
||||||
|
|||||||
+994
-976
File diff suppressed because it is too large
Load Diff
+995
-991
File diff suppressed because it is too large
Load Diff
+997
-995
File diff suppressed because it is too large
Load Diff
+1084
-1074
File diff suppressed because it is too large
Load Diff
+1004
-996
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user