summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-06-23 09:45:15 -0400
committerAdam <Adam@anope.org>2014-06-23 09:45:15 -0400
commitfd9bb0ea7e3c8a39f1632c2ebbdc25d0fac192a0 (patch)
tree1d68e86065e0b012aee41533d4f9b289ee0707ac
parent148b26f687ce85dc01e852a2358b03d493757ada (diff)
parent9a947fa4359c667be58ebae4634d9ac0e53d5db4 (diff)
Merge branch '2.0' into 2.1
Conflicts: cmake/Anope.cmake cmake/FindGettext.cmake include/access.h include/messages.h include/modes.h include/modules.h include/users.h modules/CMakeLists.txt modules/commands/bs_bot.cpp modules/commands/cs_access.cpp modules/commands/cs_ban.cpp modules/commands/cs_clone.cpp modules/commands/cs_flags.cpp modules/commands/cs_info.cpp modules/commands/cs_list.cpp modules/commands/cs_log.cpp modules/commands/cs_mode.cpp modules/commands/cs_status.cpp modules/commands/cs_suspend.cpp modules/commands/cs_updown.cpp modules/commands/cs_xop.cpp modules/commands/ms_check.cpp modules/commands/ns_access.cpp modules/commands/ns_cert.cpp modules/commands/ns_group.cpp modules/commands/ns_register.cpp modules/commands/ns_set.cpp modules/commands/ns_suspend.cpp modules/commands/os_session.cpp modules/commands/os_svs.cpp modules/extra/m_ldap_authentication.cpp modules/extra/m_regex_pcre.cpp modules/extra/m_sql_authentication.cpp modules/extra/stats/m_chanstats.cpp modules/protocol/bahamut.cpp modules/protocol/hybrid.cpp modules/protocol/inspircd12.cpp modules/protocol/inspircd20.cpp modules/protocol/unreal.cpp modules/pseudoclients/chanserv.cpp modules/pseudoclients/chanserv/channel.cpp modules/pseudoclients/nickserv/nickserv.cpp modules/webcpanel/pages/chanserv/access.cpp src/access.cpp src/bots.cpp src/channels.cpp src/language.cpp src/modes.cpp src/modulemanager.cpp src/process.cpp src/users.cpp src/version.sh
-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_librar