summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-08-22m_spanningtree Change TreeServer::GetSocket() to always return the socket ↵attilamolnar
that can be used to talk to the server The only exception is the tree root (us) which has no associated socket (NULL) Add TreeServer::IsRoot() and IsLocal() helpers
2013-08-22Fix a few problemsattilamolnar
- Fix configuration issue on systems without both GnuTLS and OpenSSL. (@SaberUK) - Do not set Membership::modes in ForceJoin() incorrectly to privs - Fix crash when spanningtree detects a configuration error on load
2013-08-21m_spanningtree When an IOHook goes away close all pending connections that ↵attilamolnar
use it
2013-08-21m_dnsbl Fix possible use-after-free after a rehashattilamolnar
2013-08-19Remove cmd_map from the coreattilamolnar
2013-08-19m_spanningtree Minor cleanup of functionsattilamolnar
2013-08-18m_spanningtree Move all server-to-server command handlers into handler classesattilamolnar
These commands are not registered in or called by the core. When looking for the handler of a command a new command table is searched first which contains all server-to-server commands. If a handler cannot be found in there, the core command table is consulted.
2013-08-18Create the CommandBase class from Commandattilamolnar
The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase
2013-08-18m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUITattilamolnar
2013-08-17m_spanningtree Remove SpanningTreeUtilities* fields and parametersattilamolnar
2013-08-16Clean up the build system properties and related code.Peter Powell
- Deduplicate getcompilerflags, getdependancies, getlinkerflags. - Remove $NoPedantic (add -Wno-pedantic to $CompileFlags instead). - Remove --enable-freebsd-ports-openssl and all related code (this will be replaced with --no-pkg-config=[name] in the future). - Remove some unused build system properties. - Remove support for caching third party include and library paths (can cause unexpected problems when they change).
2013-08-15Remove $ModDep commentsattilamolnar
2013-08-13Store oper types and opers in separate containersattilamolnar
2013-08-13m_ssl_gnutls Fix feature testing and cipher suite related errors on older ↵attilamolnar
GnuTLS versions Use the (old) LIBGNUTLS_VERSION_* defines as a fallback when GNUTLS_VERSION_* is unavailable Fixes #595 reported by @rhylan
2013-08-12Clean up a few constructorsattilamolnar
Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead
2013-08-12cmd_whowas Major cleanup, fix inefficienciesattilamolnar
2013-08-12Add ConfigTag::getDuration() with optional bounds checkingattilamolnar
2013-08-12Clean up wildcard code.Peter Powell
- Move references and pointers next to the type. - Rename match_internal to MatchInternal. - Remove duplicate NULL check on map in MatchCIDR.
2013-08-12Add <path> keys for all of the compile-time paths.Peter Powell
Also, make all paths in the config relative to their associated directory. This reverts a change in 2.0 which turned out to be a terrible idea, especially for system-wide installations.
2013-08-10Require privs given on initial join to be in <options:defaultmodes>.Peter Powell
2013-08-10Rename <options:moronbanner> to <options:xlinemessage>.Peter Powell
This name is more descriptive of what is actually is used for.
2013-08-10Replace range() with min and max arguments on getInt().Peter Powell
2013-08-10Prevent servers from ulining themselves.Peter Powell
Almost every single case I have seen where this has been done has been an accident.
2013-08-10Change the default for <security:customversion> to an empty string.Peter Powell
RFC 1459 says this field is for comments about the version. If the operator has no comments then we should not show any.
2013-08-10Warn if the server has no <bind> blocks.Peter Powell
2013-08-10Use an example server name if <server:name> is not defined.Peter Powell
2013-08-10Rename <connect:nouserdns> to <connect:resolvehostnames>.Peter Powell
This name is more descriptive and avoids a double negative which could make the name of this setting unclear to non-native speakers.
2013-08-09Remove virtual User::GetClass() (but keep LocalUser::GetClass())attilamolnar
2013-08-09Accept std::string as parameter in User::ChangeHost(), ChangeIdent() and ↵attilamolnar
ChangeName() Pass the string itself to IsIdent() instead of string.c_str()
2013-08-09Move host cycle logic into m_hostcycleattilamolnar
2013-08-08Fix a couple of issuesattilamolnar
- Wrong doc for Snomask::GetDescription() - Incorrect idle time when WHOISing remote users - String + int = garbage - Remote MODE commands (user mode changes) being broadcast in addition to being forwarded - Incorrect revision being shown
2013-08-06Issue #604, fix m_dnsbl, broken in accccc212cd4f08a3c5532b1ae7a17e76bac8718Adam
2013-08-04Call ModeParser::Process() directly instead of going through the CommandParserattilamolnar
Simplify the way how m_conn_umodes assembles the modes it sets
2013-08-04FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() ↵attilamolnar
them from clientlist
2013-08-04Automatically attach modules to eventsattilamolnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-08-04Modify the log message to contain the log type.Peter Powell
2013-08-04Change httpd modules to use the MODNAME constant in headers.Peter Powell
2013-08-04Change modules to use the MODNAME constant when logging.Peter Powell
The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
2013-08-04Remove a few not-so-useful debug messagesattilamolnar
2013-07-29Remove a ton of duplicate and obsolete code from configure.Peter Powell
- Add the data and log paths to dumphash. - Always exit with EXIT_FAILURE on error. - Always replace the old config.h with our new one. - Clean up the ./configure --help message slightly. - Install dhparams.pem into the conf directory on GnuTLS as well as OpenSSL. - Only show the users InspIRCd Git revision when building from Git. - Remove a check for MinGW (we have proper Windows builds). - Remove a check for FreeBSD 4 (released in 2000). - Remove a ton of pointless tab-indented comments. - Remove a ton of duplicate or unused variables. - Remove the check for stdint.h (always available on TR1 compilers). - Remove the $writeheader argument from writefiles (always 1). - Remove the following %config options: - DESTINATION (not used, always set to BASE). - EXECUTABLE (always set to inspircd). - OSNAME (duplicate of SYSTEM). - Remove support for checking whether -extra modules are up to date (if the user is installing they won't have any -extra modules installed). - Remove SSL generation messages (genssl provides these). - Replace inappropriate uses of printf with print. - Replace is_dir with -d from the Perl stdlib. - Replace resolve_directory with rel2abs from the Perl stdlib. - Rewrite getrevision to be more compact, cache the revision and return 'release' on non-Git builds. - Use consistent messages for all tests. - Use tput to clear the screen in a portable way.
2013-07-26Use server ids when propagating squitsAdam
2013-07-24m_spanningtree Change the type of TreeServer::ServerName to std::stringattilamolnar
2013-07-24m_spanningtree Cleanup TreeServer and TreeSocket construction/destructionattilamolnar
2013-07-24umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functionsattilamolnar
2013-07-24Rewrite SnomaskManager::SendMessage() and Flush(), split code into functionsattilamolnar
2013-07-20Fix generated snomask mode change string being incosistent with the input in ↵attilamolnar
certain cases, spotted by @Robby-
2013-07-20Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomaskattilamolnar
2013-07-19m_ojoin Stop hardcoding +Y, move global vars into a class, move ↵attilamolnar
initialization code into init()
2013-07-19Get rid of enum UserModes and mark User::modes as privateattilamolnar