summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/Anope.cmake8
-rw-r--r--cmake/FindGettext.cmake26
-rw-r--r--data/botserv.example.conf1
-rw-r--r--data/chanserv.example.conf23
-rw-r--r--data/example.chk3
-rw-r--r--data/modules.example.conf4
-rw-r--r--data/nickserv.example.conf9
-rw-r--r--docs/Changes14
-rw-r--r--docs/Changes.conf6
-rw-r--r--docs/WIN32.txt16
-rw-r--r--include/channels.h3
-rw-r--r--include/config.h17
-rw-r--r--include/logger.h5
-rw-r--r--include/messages.h4
-rw-r--r--include/modes.h51
-rw-r--r--include/modules/chanserv.h48
-rw-r--r--include/modules/nickserv.h3
-rw-r--r--include/modules/os_session.h2
-rw-r--r--include/protocol.h11
-rw-r--r--include/servers.h4
-rw-r--r--include/sockets.h5
-rw-r--r--include/uplink.h1
-rw-r--r--include/users.h3
-rw-r--r--include/xline.h13
-rw-r--r--language/anope.ca_ES.po717
-rw-r--r--language/anope.de_DE.po721
-rw-r--r--language/anope.el_GR.po728
-rw-r--r--language/anope.en_US.po10964
-rw-r--r--language/anope.es_ES.po719
-rw-r--r--language/anope.fr_FR.po723
-rw-r--r--language/anope.hu_HU.po717
-rw-r--r--language/anope.it_IT.po766
-rw-r--r--language/anope.nl_NL.po716
-rw-r--r--language/anope.pl_PL.po717
-rw-r--r--language/anope.pt_PT.po717
-rw-r--r--language/anope.ru_RU.po718
-rw-r--r--language/anope.tr_TR.po717
-rwxr-xr-xlanguage/update.sh6
-rw-r--r--modules/CMakeLists.txt2
-rw-r--r--modules/bs_autoassign.cpp2
-rw-r--r--modules/commands/bs_bot.cpp16
-rw-r--r--modules/commands/bs_kick.cpp2
-rw-r--r--modules/commands/cs_access.cpp35
-rw-r--r--modules/commands/cs_ban.cpp47
-rw-r--r--modules/commands/cs_clone.cpp9
-rw-r--r--modules/commands/cs_flags.cpp17
-rw-r--r--modules/commands/cs_list.cpp8
-rw-r--r--modules/commands/cs_mode.cpp9
-rw-r--r--modules/commands/cs_seen.cpp2
-rw-r--r--modules/commands/cs_set_misc.cpp2
-rw-r--r--modules/commands/cs_status.cpp2
-rw-r--r--modules/commands/cs_suspend.cpp37
-rw-r--r--modules/commands/cs_unban.cpp15
-rw-r--r--modules/commands/cs_updown.cpp17
-rw-r--r--modules/commands/cs_xop.cpp25
-rw-r--r--modules/commands/ns_access.cpp2
-rw-r--r--modules/commands/ns_group.cpp8
-rw-r--r--modules/commands/ns_info.cpp6
-rw-r--r--modules/commands/ns_register.cpp2
-rw-r--r--modules/commands/ns_set.cpp8
-rw-r--r--modules/commands/ns_set_misc.cpp2
-rw-r--r--modules/commands/ns_suspend.cpp44
-rw-r--r--modules/commands/os_akill.cpp5
-rw-r--r--modules/commands/os_defcon.cpp4
-rw-r--r--modules/commands/os_dns.cpp2
-rw-r--r--modules/commands/os_jupe.cpp2
-rw-r--r--modules/commands/os_list.cpp2
-rw-r--r--modules/commands/os_session.cpp16
-rw-r--r--modules/commands/os_stats.cpp19
-rw-r--r--modules/commands/os_svs.cpp12
-rw-r--r--modules/database/db_flatfile.cpp10
-rw-r--r--modules/database/db_old.cpp6
-rw-r--r--modules/extra/m_ldap.cpp3
-rw-r--r--modules/extra/m_ldap_authentication.cpp8
-rw-r--r--modules/extra/m_mysql.cpp7
-rw-r--r--modules/extra/m_sasl_dh-aes.cpp1
-rw-r--r--modules/extra/m_sasl_dh-blowfish.cpp1
-rw-r--r--modules/extra/m_sql_authentication.cpp4
-rw-r--r--modules/extra/m_sql_oper.cpp2
-rw-r--r--modules/extra/m_sqlite.cpp1
-rw-r--r--modules/extra/m_ssl_gnutls.cpp1
-rw-r--r--modules/extra/m_ssl_openssl.cpp1
-rw-r--r--modules/extra/stats/irc2sql/irc2sql.cpp2
-rw-r--r--modules/extra/stats/m_chanstats.cpp2
-rw-r--r--modules/m_dnsbl.cpp19
-rw-r--r--modules/m_proxyscan.cpp13
-rw-r--r--modules/m_rewrite.cpp2
-rw-r--r--modules/m_xmlrpc_main.cpp5
-rw-r--r--modules/protocol/bahamut.cpp4
-rw-r--r--modules/protocol/hybrid.cpp24
-rw-r--r--modules/protocol/inspircd20.cpp221
-rw-r--r--modules/protocol/ngircd.cpp2
-rw-r--r--modules/protocol/plexus.cpp6
-rw-r--r--modules/protocol/ratbox.cpp2
-rw-r--r--modules/protocol/unreal.cpp131
-rw-r--r--modules/pseudoclients/botserv/botserv.cpp2
-rw-r--r--modules/pseudoclients/chanserv/channel.cpp18
-rw-r--r--modules/pseudoclients/chanserv/chanserv.cpp41
-rw-r--r--modules/pseudoclients/nickserv/account.cpp4
-rw-r--r--modules/pseudoclients/nickserv/nickserv.cpp16
-rw-r--r--modules/pseudoclients/operserv.cpp9
-rw-r--r--modules/webcpanel/pages/chanserv/access.cpp9
-rw-r--r--modules/webcpanel/pages/chanserv/modes.cpp2
-rw-r--r--src/CMakeLists.txt9
-rw-r--r--src/base64.cpp2
-rw-r--r--src/bots.cpp40
-rw-r--r--src/channels.cpp48
-rw-r--r--src/config.cpp17
-rw-r--r--src/init.cpp2
-rw-r--r--src/language.cpp7
-rw-r--r--src/logger.cpp62
-rw-r--r--src/messages.cpp19
-rw-r--r--src/modes.cpp194
-rw-r--r--src/modulemanager.cpp34
-rw-r--r--src/process.cpp71
-rw-r--r--src/protocol.cpp58
-rw-r--r--src/servers.cpp49
-rw-r--r--src/sockets.cpp15
-rw-r--r--src/uplink.cpp31
-rw-r--r--src/users.cpp25
-rw-r--r--src/win32/anope_windows.h2
-rw-r--r--src/win32/dl/dl.cpp3
-rw-r--r--src/win32/windows.cpp17
-rw-r--r--src/xline.cpp97
124 files changed, 16820 insertions, 4868 deletions
diff --git a/cmake/Anope.cmake b/cmake/Anope.cmake
index aeeb9eb27..aefa028b5 100644
--- a/cmake/Anope.cmake
+++ b/cmake/Anope.cmake
@@ -14,11 +14,15 @@ macro(calculate_libraries SRC SRC_LDFLAGS EXTRA_DEPENDS)
# Reset libraries
set(LIBRARIES)
# Check to see if there are any lines matching: /* RequiredLibraries: [something] */
- file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\\\*[ \t]*RequiredLibraries:[ \t]*.*[ \t]*\\\\*/")
+ if(WIN32)
+ file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\\\*[ \t]*RequiredWindowsLibraries:[ \t]*.*[ \t]*\\\\*/")
+ else(WIN32)
+ file(STRINGS ${SRC} REQUIRED_LIBRARIES REGEX "/\\\\*[ \t]*RequiredLibraries:[ \t]*.*[ \t]*\\\\*/")
+ endif(WIN32)
# Iterate through those lines
foreach(REQUIRED_LIBRARY ${REQUIRED_LIBRARIES})
# Strip off the /* RequiredLibraries: and */ from the line
- string(REGEX REPLACE "/\\*[ \t]*RequiredLibraries:[ \t]*([^ \t]*)[ \t]*\\*/" "\\1" REQUIRED_LIBRARY ${REQUIRED_LIBRARY})
+ string(REGEX REPLACE "/\\*[ \t]*Required.*Libraries:[ \t]*([^ \t]*)[ \t]*\\*/" "\\1" REQUIRED_LIBRARY ${REQUIRED_LIBRARY})
# Replace all commas with semicolons
string(REGEX REPLACE "," ";" REQUIRED_LIBRARY ${REQUIRED_LIBRARY})
# Iterate through the libraries given
diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake
index e3279a8b8..975294d21 100644
--- a/cmake/FindGettext.cmake
+++ b/cmake/FindGettext.cmake
@@ -2,33 +2,25 @@
if(NOT WIN32)
find_path(GETTEXT_INCLUDE libintl.h /usr/include /usr/local/include ${EXTRA_INCLUDE})
find_library(GETTEXT_LIBRARY intl PATHS /usr/lib /usr/lib64 ${EXTRA_LIBS})
- find_library(ICONV_LIBRARY iconv PATHS /usr/lib /usr/lib64 ${EXTRA_LIBS})
find_program(GETTEXT_MSGFMT msgfmt PATHS /usr/bin/ /usr/local/bin ${EXTRA_INCLUDE})
if(GETTEXT_INCLUDE AND GETTEXT_MSGFMT)
set(GETTEXT_FOUND TRUE)
+ if(GETTEXT_LIBRARY)
+ set(GETTEXT_LIBRARIES ${GETTEXT_LIBRARY})
+ endif(GETTEXT_LIBRARY)
endif(GETTEXT_INCLUDE AND GETTEXT_MSGFMT)
else(NOT WIN32)
- find_path(GETTEXT_INCLUDE libintl.h $ENV{VCINSTALLDIR}/include gettext/include ${EXTRA_INCLUDE})
- find_library(GETTEXT_LIBRARY libintl PATHS $ENV{VCINSTALLDIR}/lib gettext/lib ${EXTRA_LIBS})
- find_library(ICONV_LIBRARY libiconv PATHS $ENV{VCINSTALLDIR}/lib gettext/lib ${EXTRA_LIBS})
- find_library(MINGWEX_LIBRARY libmingwex PATHS $ENV{VCINSTALLDIR}/lib gettext/lib ${EXTRA_LIBS})
- find_library(GCC_LIBRARY libgcc PATHS $ENV{VCINSTALLDIR}/lib gettext/lib ${EXTRA_LIBS})
- find_program(GETTEXT_MSGFMT msgfmt PATHS $ENV{VCINSTALLDIR}/bin gettext/bin ${EXTRA_INCLUDE})
- if(GETTEXT_INCLUDE AND GETTEXT_MSGFMT AND ICONV_LIBRARY AND MINGWEX_LIBRARY AND GCC_LIBRARY)
+ find_path(GETTEXT_INCLUDE libintl.h ${DEFAULT_INCLUDE_DIRS} ${WSDK_PATH}/include $ENV{VCINSTALLDIR}/include gettext/include ${EXTRA_INCLUDE})
+ find_library(GETTEXT_LIBRARY libintl PATHS ${DEFAULT_LIBRARY_DIRS} ${WSDK_PATH}/lib $ENV{VCINSTALLDIR}/lib gettext/lib ${EXTRA_LIBS})
+ find_program(GETTEXT_MSGFMT msgfmt PATHS ${DEFAULT_INCLUDE_DIRS} ${WSDK_PATH}/bin $ENV{VCINSTALLDIR}/bin gettext/bin ${EXTRA_INCLUDE})
+ if(GETTEXT_INCLUDE AND GETTEXT_LIBRARY AND GETTEXT_MSGFMT)
set(GETTEXT_FOUND TRUE)
- endif(GETTEXT_INCLUDE AND GETTEXT_MSGFMT AND ICONV_LIBRARY AND MINGWEX_LIBRARY AND GCC_LIBRARY)
+ set(GETTEXT_LIBRARIES ${GETTEXT_LIBRARY})
+ endif(GETTEXT_INCLUDE AND GETTEXT_LIBRARY AND GETTEXT_MSGFMT)
endif(NOT WIN32)
# If we found everything we need set variables correctly for lang/CMakeLists.txt to use
if(GETTEXT_FOUND)
include_directories("${GETTEXT_INCLUDE}")
set(GETTEXT_MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT})
-
- if(WIN32)
- set(GETTEXT_LIBRARIES libiconv libintl libmingwex libgcc)
- else(WIN32)
- if(GETTEXT_LIBRARY)
- set(GETTEXT_LIBRARIES ${GETTEXT_LIBRARY} ${ICONV_LIBRARY})
- endif(GETTEXT_LIBRARY)
- endif(WIN32)
endif(GETTEXT_FOUND)
diff --git a/data/botserv.example.conf b/data/botserv.example.conf
index c341eceb3..6cb44afc3 100644
--- a/data/botserv.example.conf
+++ b/data/botserv.example.conf
@@ -386,6 +386,7 @@ fantasy { name = "LEVELS"; command = "chanserv/levels"; }
fantasy { name = "LIST"; command = "chanserv/list"; prepend_channel = false; }
fantasy { name = "LOG"; command = "chanserv/log"; }
fantasy { name = "MODE"; command = "chanserv/mode"; }
+fantasy { name = "MUTE"; command = "chanserv/ban"; kick = no; mode = "QUIET"; }
fantasy { name = "OP"; command = "chanserv/modes"; }
fantasy { name = "OWNER"; command =