]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
11 years agoReplace OnRehash() with ReadConfig() that is called on boot, on module load and on...
attilamolnar [Fri, 16 Aug 2013 10:10:55 +0000 (12:10 +0200)]
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on rehash

This eliminates the need for calling OnRehash() in init()

11 years agoMerge insp20
attilamolnar [Fri, 30 Aug 2013 11:01:10 +0000 (13:01 +0200)]
Merge insp20

11 years agoDon't CoreExport reference, fixes m_dnsbl on Windows
attilamolnar [Fri, 30 Aug 2013 10:10:01 +0000 (12:10 +0200)]
Don't CoreExport reference, fixes m_dnsbl on Windows

The explicit instantiations of reference are now useless; remove

11 years agoRelease 2.0.14
attilamolnar [Wed, 28 Aug 2013 17:29:50 +0000 (19:29 +0200)]
Release 2.0.14

11 years agom_permchannels Fix empty topic setby
attilamolnar [Wed, 28 Aug 2013 17:27:14 +0000 (19:27 +0200)]
m_permchannels Fix empty topic setby

11 years agoUpdate COPYING file with new FSF address.
Christopher 'm4z' Holm [Sun, 25 Aug 2013 17:42:26 +0000 (19:42 +0200)]
Update COPYING file with new FSF address.

This should make rpmlint stop complaining about the incorrect FSF
address. All changes taken from:
    http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

11 years agom_spanningtree Propagate topic changes via FTOPIC in order to prevent desync when...
attilamolnar [Mon, 19 Aug 2013 18:36:41 +0000 (20:36 +0200)]
m_spanningtree Propagate topic changes via FTOPIC in order to prevent desync when two TOPIC messages cross

TOPIC is no longer accepted from servers using the new protocol

11 years agoFix fd and minor memory leak in threadengine_pthread on unload of m_mysql
attilamolnar [Sun, 9 Jun 2013 12:11:41 +0000 (14:11 +0200)]
Fix fd and minor memory leak in threadengine_pthread on unload of m_mysql

11 years agoFix crash caused by passing a large integer to ctime()
attilamolnar [Tue, 27 Aug 2013 16:33:32 +0000 (18:33 +0200)]
Fix crash caused by passing a large integer to ctime()

In addition to verifying the return value of localtime(), correct tm_year if it is out of bounds

Reported by @JDowny

11 years agom_permchannels Add the ability to save listmodes
attilamolnar [Tue, 9 Jul 2013 18:21:33 +0000 (20:21 +0200)]
m_permchannels Add the ability to save listmodes

11 years agom_permchannels Save channel TS, topic set time and set by information
attilamolnar [Tue, 9 Jul 2013 18:01:03 +0000 (20:01 +0200)]
m_permchannels Save channel TS, topic set time and set by information

When loading, ignore and log channels with a name longer than Limits.MaxChan

11 years agom_permchannels Construct the final line that will be saved in a std::string in WriteD...
attilamolnar [Tue, 9 Jul 2013 17:49:10 +0000 (19:49 +0200)]
m_permchannels Construct the final line that will be saved in a std::string in WriteDatabase()

11 years agoUpdate example configs, README.md and more
attilamolnar [Tue, 27 Aug 2013 16:30:59 +0000 (18:30 +0200)]
Update example configs, README.md and more

- Fix typos, remove misleading information, rephrase a few sentences
- Add info about hmac-<hash> hash types
- Remove <performance:maxwho> (the code which used this was removed in 96e4434 - @SaberUK)
- Change inspircd.github.org to inspircd.org

11 years agom_spanningtree Introduce command builders
attilamolnar [Mon, 19 Aug 2013 18:22:15 +0000 (20:22 +0200)]
m_spanningtree Introduce command builders

11 years agom_spanningtree Changes to TreeSocket::WriteLine() to avoid string copies
attilamolnar [Mon, 19 Aug 2013 17:15:41 +0000 (19:15 +0200)]
m_spanningtree Changes to TreeSocket::WriteLine() to avoid string copies

- Change argument type to a reference to avoid copies of the string object
- If the std::string implementation is using copy-on-write then calling operator[] on a mutable string results in a copy; avoid this by calling .c_str() instead

11 years agoFix Windows build and a few more problems
attilamolnar [Tue, 27 Aug 2013 13:03:10 +0000 (15:03 +0200)]
Fix Windows build and a few more problems

11 years agoFix indentation
attilamolnar [Tue, 27 Aug 2013 13:02:21 +0000 (15:02 +0200)]
Fix indentation

11 years agoAllow jmpsrv to handle SSL-connected clients correctly - also allow clients to use...
Daniel Vassdal [Mon, 26 Aug 2013 15:20:09 +0000 (08:20 -0700)]
Allow jmpsrv to handle SSL-connected clients correctly - also allow clients to use the port they're currently using.

11 years agoMerge pull request #619 from SaberUK/master+regex-dedupe
Attila Molnar [Tue, 27 Aug 2013 12:28:15 +0000 (05:28 -0700)]
Merge pull request #619 from SaberUK/master+regex-dedupe

Various regex module improvements.

11 years agoFix various small issues.
Peter Powell [Tue, 27 Aug 2013 06:54:16 +0000 (07:54 +0100)]
Fix various small issues.

- Add CXX11_OVERRIDE to *Regex::Matches and *RegexFactory::Create.
- Fix documentation comment on regex_string.
- Fix various code duplication/layout issues.

11 years agoMake all regex modules throw the same exception on error.
Peter Powell [Tue, 27 Aug 2013 06:29:13 +0000 (07:29 +0100)]
Make all regex modules throw the same exception on error.

11 years agom_spanningtree Allow server-to-server command handlers to specify whether they accept...
attilamolnar [Mon, 19 Aug 2013 17:11:02 +0000 (19:11 +0200)]
m_spanningtree Allow server-to-server command handlers to specify whether they accept servers, remote users or both as the command source

To make life easier for handlers accepting servers only as source, pass them a TreeServer* so they don't have to call FindServer()

11 years agoClean up the protocol interface
attilamolnar [Fri, 19 Jul 2013 11:55:02 +0000 (13:55 +0200)]
Clean up the protocol interface

11 years agoMerge pull request #616 from ShutterQuick/inspircd+chanhistbot
Attila Molnar [Sat, 24 Aug 2013 14:50:02 +0000 (07:50 -0700)]
Merge pull request #616 from ShutterQuick/inspircd+chanhistbot

Option to select if chanhistory is on for bots

11 years agoOption to select if chanhistory is on for bots
Daniel Vassdal [Sat, 24 Aug 2013 14:36:30 +0000 (07:36 -0700)]
Option to select if chanhistory is on for bots

11 years agom_spanningtree Add TreeServer::GetChildren() that replaces ChildCount() and GetChild()
attilamolnar [Fri, 19 Jul 2013 11:40:07 +0000 (13:40 +0200)]
m_spanningtree Add TreeServer::GetChildren() that replaces ChildCount() and GetChild()

11 years agom_spanningtree Remove duplicate code for sending channel messages from RouteCommand()
attilamolnar [Fri, 19 Jul 2013 11:32:41 +0000 (13:32 +0200)]
m_spanningtree Remove duplicate code for sending channel messages from RouteCommand()

11 years agom_spanningtree Implement DoOneToMany() using DoOneToAllButSender()
attilamolnar [Fri, 19 Jul 2013 11:24:36 +0000 (13:24 +0200)]
m_spanningtree Implement DoOneToMany() using DoOneToAllButSender()

11 years agom_spanningtree Change TreeServer::GetSocket() to always return the socket that can...
attilamolnar [Fri, 19 Jul 2013 11:10:18 +0000 (13:10 +0200)]
m_spanningtree Change TreeServer::GetSocket() to always return the socket 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

11 years agoFix a few problems
attilamolnar [Thu, 22 Aug 2013 11:41:11 +0000 (13:41 +0200)]
Fix a few problems

- 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

11 years agom_spanningtree When an IOHook goes away close all pending connections that use it
attilamolnar [Wed, 21 Aug 2013 14:38:33 +0000 (16:38 +0200)]
m_spanningtree When an IOHook goes away close all pending connections that use it

11 years agom_dnsbl Fix possible use-after-free after a rehash
attilamolnar [Wed, 21 Aug 2013 14:35:29 +0000 (16:35 +0200)]
m_dnsbl Fix possible use-after-free after a rehash

11 years agoRemove cmd_map from the core
attilamolnar [Mon, 1 Jul 2013 17:14:14 +0000 (19:14 +0200)]
Remove cmd_map from the core

11 years agom_spanningtree Minor cleanup of functions
attilamolnar [Sat, 17 Aug 2013 13:43:24 +0000 (15:43 +0200)]
m_spanningtree Minor cleanup of functions

11 years agom_spanningtree Move all server-to-server command handlers into handler classes
attilamolnar [Mon, 15 Jul 2013 11:40:22 +0000 (13:40 +0200)]
m_spanningtree Move all server-to-server command handlers into handler classes

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.

11 years agoCreate the CommandBase class from Command
attilamolnar [Mon, 15 Jul 2013 10:26:45 +0000 (12:26 +0200)]
Create the CommandBase class from Command

The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase

11 years agom_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUIT
attilamolnar [Sun, 18 Aug 2013 11:48:31 +0000 (13:48 +0200)]
m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUIT

11 years agoMerge pull request #609 from SaberUK/master+configure-sub-shuffle
Attila Molnar [Sun, 18 Aug 2013 10:49:25 +0000 (03:49 -0700)]
Merge pull request #609 from SaberUK/master+configure-sub-shuffle

Clean up and move various subroutines.

11 years agoClean up and move various subroutines.
Peter Powell [Thu, 15 Aug 2013 04:57:46 +0000 (05:57 +0100)]
Clean up and move various subroutines.

- Fix indentation of get_compiler_info and clean up slightly.
- Move module_installed to make::utilities.
- Remove promptnumeric (unused).
- Rename clean to cmd_clean and rewrite.
- Rename dir_check to prompt_bool and rewrite.
- Rename dumphash to dump_hash.
- Rename getcache to read_configure_cache and rewrite.
- Rename getrevision to get_revision.
- Rename makecache to write_configure_cache and rewrite.
- Rename promptstring_s to prompt_string and rewrite.
- Rename showhelp to cmd_help and rewrite.
- Rename update to cmd_update and rewrite.
- Rename yesno to prompt_bool and rewrite.
- Replace getmodules with a <src/modules/m_*.cpp> glob.

11 years agom_spanningtree Remove SpanningTreeUtilities* fields and parameters
attilamolnar [Thu, 15 Aug 2013 14:15:26 +0000 (16:15 +0200)]
m_spanningtree Remove SpanningTreeUtilities* fields and parameters

11 years agoMerge pull request #608 from SaberUK/master+buildprop-dedupe
Attila Molnar [Sat, 17 Aug 2013 16:25:42 +0000 (09:25 -0700)]
Merge pull request #608 from SaberUK/master+buildprop-dedupe

Clean up the build system properties and related code.

11 years agoClean up the build system properties and related code.
Peter Powell [Thu, 15 Aug 2013 17:55:16 +0000 (18:55 +0100)]
Clean up the build system properties and related code.

- 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).

11 years agoRemove $ModDep comments
attilamolnar [Thu, 15 Aug 2013 15:39:56 +0000 (17:39 +0200)]
Remove $ModDep comments

11 years agoStore oper types and opers in separate containers
attilamolnar [Tue, 13 Aug 2013 12:22:07 +0000 (14:22 +0200)]
Store oper types and opers in separate containers

11 years agom_ssl_gnutls Fix feature testing and cipher suite related errors on older GnuTLS...
attilamolnar [Tue, 13 Aug 2013 12:10:04 +0000 (14:10 +0200)]
m_ssl_gnutls Fix feature testing and cipher suite related errors on older GnuTLS versions

Use the (old) LIBGNUTLS_VERSION_* defines as a fallback when GNUTLS_VERSION_* is unavailable

Fixes #595 reported by @rhylan

11 years agoClean up a few constructors
attilamolnar [Mon, 12 Aug 2013 18:10:06 +0000 (20:10 +0200)]
Clean up a few constructors

Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead

11 years agocmd_whowas Major cleanup, fix inefficiencies
attilamolnar [Sun, 22 Jul 2012 21:18:06 +0000 (23:18 +0200)]
cmd_whowas Major cleanup, fix inefficiencies

11 years agoAdd ConfigTag::getDuration() with optional bounds checking
attilamolnar [Mon, 12 Aug 2013 17:20:18 +0000 (19:20 +0200)]
Add ConfigTag::getDuration() with optional bounds checking

11 years agoMerge pull request #607 from SaberUK/master+match
Attila Molnar [Mon, 12 Aug 2013 17:08:36 +0000 (10:08 -0700)]
Merge pull request #607 from SaberUK/master+match

Clean up wildcard code.

11 years agoClean up wildcard code.
Peter Powell [Wed, 7 Aug 2013 13:37:30 +0000 (14:37 +0100)]
Clean up wildcard code.

- Move references and pointers next to the type.
- Rename match_internal to MatchInternal.
- Remove duplicate NULL check on map in MatchCIDR.

11 years agoMerge pull request #591 from SaberUK/master+config-tweaks
Attila Molnar [Mon, 12 Aug 2013 16:20:46 +0000 (09:20 -0700)]
Merge pull request #591 from SaberUK/master+config-tweaks

Various patches relating to configuration.

11 years agoAdd <path> keys for all of the compile-time paths.
Peter Powell [Wed, 10 Jul 2013 17:11:48 +0000 (18:11 +0100)]
Add <path> keys for all of the compile-time paths.

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.

11 years agoRequire privs given on initial join to be in <options:defaultmodes>.
Peter Powell [Wed, 10 Jul 2013 14:23:46 +0000 (15:23 +0100)]
Require privs given on initial join to be in <options:defaultmodes>.

11 years agoRename <options:moronbanner> to <options:xlinemessage>.
Peter Powell [Wed, 10 Jul 2013 13:50:26 +0000 (14:50 +0100)]
Rename <options:moronbanner> to <options:xlinemessage>.

This name is more descriptive of what is actually is used for.

11 years agoReplace range() with min and max arguments on getInt().
Peter Powell [Wed, 10 Jul 2013 13:28:05 +0000 (14:28 +0100)]
Replace range() with min and max arguments on getInt().

11 years agoPrevent servers from ulining themselves.
Peter Powell [Wed, 10 Jul 2013 13:11:58 +0000 (14:11 +0100)]
Prevent servers from ulining themselves.

Almost every single case I have seen where this has been done has
been an accident.

11 years agoChange the default for <security:customversion> to an empty string.
Peter Powell [Wed, 10 Jul 2013 12:38:00 +0000 (13:38 +0100)]
Change the default for <security:customversion> to an empty string.

RFC 1459 says this field is for comments about the version. If the
operator has no comments then we should not show any.

11 years agoWarn if the server has no <bind> blocks.
Peter Powell [Wed, 10 Jul 2013 12:26:58 +0000 (13:26 +0100)]
Warn if the server has no <bind> blocks.

11 years agoUse an example server name if <server:name> is not defined.
Peter Powell [Wed, 10 Jul 2013 12:05:59 +0000 (13:05 +0100)]
Use an example server name if <server:name> is not defined.

11 years agoRename <connect:nouserdns> to <connect:resolvehostnames>.
Peter Powell [Wed, 10 Jul 2013 11:46:01 +0000 (12:46 +0100)]
Rename <connect:nouserdns> to <connect:resolvehostnames>.

This name is more descriptive and avoids a double negative which
could make the name of this setting unclear to non-native speakers.

11 years agoRemove virtual User::GetClass() (but keep LocalUser::GetClass())
attilamolnar [Fri, 9 Aug 2013 16:28:11 +0000 (18:28 +0200)]
Remove virtual User::GetClass() (but keep LocalUser::GetClass())

11 years agoAccept std::string as parameter in User::ChangeHost(), ChangeIdent() and ChangeName()
attilamolnar [Fri, 9 Aug 2013 16:20:12 +0000 (18:20 +0200)]
Accept std::string as parameter in User::ChangeHost(), ChangeIdent() and ChangeName()

Pass the string itself to IsIdent() instead of string.c_str()

11 years agoMove host cycle logic into m_hostcycle
attilamolnar [Fri, 9 Aug 2013 16:10:48 +0000 (18:10 +0200)]
Move host cycle logic into m_hostcycle

11 years agoFix a couple of issues
attilamolnar [Thu, 8 Aug 2013 13:10:48 +0000 (15:10 +0200)]
Fix a couple of issues

- 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

11 years agoIssue #604, fix m_dnsbl, broken in accccc212cd4f08a3c5532b1ae7a17e76bac8718
Adam [Tue, 6 Aug 2013 20:14:30 +0000 (20:14 +0000)]
Issue #604, fix m_dnsbl, broken in accccc212cd4f08a3c5532b1ae7a17e76bac8718

11 years agoCall ModeParser::Process() directly instead of going through the CommandParser
attilamolnar [Sun, 4 Aug 2013 17:13:52 +0000 (19:13 +0200)]
Call ModeParser::Process() directly instead of going through the CommandParser

Simplify the way how m_conn_umodes assembles the modes it sets

11 years agoFakeUsers are only inserted into UserManager::uuidlist; don't try to erase() them...
attilamolnar [Fri, 19 Apr 2013 11:10:16 +0000 (13:10 +0200)]
FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() them from clientlist

11 years agoMerge pull request #599 from SaberUK/master+configure-tests
Attila Molnar [Sun, 4 Aug 2013 16:51:28 +0000 (09:51 -0700)]
Merge pull request #599 from SaberUK/master+configure-tests

Refactor duplicate test code into a run_test subroutine.

11 years agoRefactor duplicate test code into a run_test subroutine.
Peter Powell [Sun, 4 Aug 2013 15:03:17 +0000 (16:03 +0100)]
Refactor duplicate test code into a run_test subroutine.

11 years agoAutomatically attach modules to events
attilamolnar [Sun, 4 Aug 2013 12:36:14 +0000 (14:36 +0200)]
Automatically attach modules to events

11 years agoChange the syntax of FOREACH macros to be less dumb.
Adam [Wed, 26 Jun 2013 21:01:33 +0000 (17:01 -0400)]
Change the syntax of FOREACH macros to be less dumb.

11 years agoMerge pull request #590 from SaberUK/master+module-logging
Attila Molnar [Sun, 4 Aug 2013 14:08:41 +0000 (07:08 -0700)]
Merge pull request #590 from SaberUK/master+module-logging

Change modules to use the MODNAME constant.

11 years agoModify the log message to contain the log type.
Peter Powell [Sun, 4 Aug 2013 12:46:17 +0000 (13:46 +0100)]
Modify the log message to contain the log type.

11 years agoChange httpd modules to use the MODNAME constant in headers.
Peter Powell [Sun, 4 Aug 2013 12:43:18 +0000 (13:43 +0100)]
Change httpd modules to use the MODNAME constant in headers.

11 years agoChange modules to use the MODNAME constant when logging.
Peter Powell [Sun, 7 Jul 2013 19:01:44 +0000 (20:01 +0100)]
Change modules to use the MODNAME constant when logging.

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.

11 years agoRemove a few not-so-useful debug messages
attilamolnar [Sun, 4 Aug 2013 10:33:30 +0000 (12:33 +0200)]
Remove a few not-so-useful debug messages

11 years agoMerge pull request #596 from SaberUK/master+genssl-auto
Attila Molnar [Sun, 4 Aug 2013 10:21:17 +0000 (03:21 -0700)]
Merge pull request #596 from SaberUK/master+genssl-auto

Add 'auto' option to genssl to automatically select a generator.

11 years agoMerge pull request #593 from SaberUK/master+configure-shuffle
Attila Molnar [Sun, 4 Aug 2013 10:19:02 +0000 (03:19 -0700)]
Merge pull request #593 from SaberUK/master+configure-shuffle

Remove a ton of duplicate and obsolete code from configure.

11 years agoAdd 'auto' option to genssl to automatically select a generator.
Peter Powell [Sat, 27 Jul 2013 03:56:35 +0000 (04:56 +0100)]
Add 'auto' option to genssl to automatically select a generator.

11 years agoRemove a ton of duplicate and obsolete code from configure.
Peter Powell [Sun, 21 Jul 2013 00:56:36 +0000 (01:56 +0100)]
Remove a ton of duplicate and obsolete code from configure.

- 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.

11 years agoUse server ids when propagating squits
Adam [Fri, 26 Jul 2013 11:33:45 +0000 (07:33 -0400)]
Use server ids when propagating squits

11 years agom_spanningtree Change the type of TreeServer::ServerName to std::string
attilamolnar [Sun, 21 Jul 2013 16:18:33 +0000 (18:18 +0200)]
m_spanningtree Change the type of TreeServer::ServerName to std::string

11 years agom_spanningtree Cleanup TreeServer and TreeSocket construction/destruction
attilamolnar [Sun, 21 Jul 2013 16:10:01 +0000 (18:10 +0200)]
m_spanningtree Cleanup TreeServer and TreeSocket construction/destruction

11 years agoumode_s Rewrite ProcessNoticeMasks() and remove a few related useless functions
attilamolnar [Sat, 20 Jul 2013 18:59:48 +0000 (20:59 +0200)]
umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functions

11 years agoRewrite SnomaskManager::SendMessage() and Flush(), split code into functions
attilamolnar [Sat, 20 Jul 2013 18:30:18 +0000 (20:30 +0200)]
Rewrite SnomaskManager::SendMessage() and Flush(), split code into functions

11 years agoFix generated snomask mode change string being incosistent with the input in certain...
attilamolnar [Sat, 20 Jul 2013 16:45:35 +0000 (18:45 +0200)]
Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby-

11 years agoEnable the LINK snomask from m_spanningtree, remove unused FLOOD snomask
attilamolnar [Sat, 20 Jul 2013 16:15:01 +0000 (18:15 +0200)]
Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomask

11 years agom_ojoin Stop hardcoding +Y, move global vars into a class, move initialization code...
attilamolnar [Tue, 18 Jun 2013 17:40:55 +0000 (19:40 +0200)]
m_ojoin Stop hardcoding +Y, move global vars into a class, move initialization code into init()

11 years agoGet rid of enum UserModes and mark User::modes as private
attilamolnar [Tue, 18 Jun 2013 17:17:39 +0000 (19:17 +0200)]
Get rid of enum UserModes and mark User::modes as private

11 years agoReplace hardcoded mode letters, part 3
attilamolnar [Tue, 18 Jun 2013 17:10:07 +0000 (19:10 +0200)]
Replace hardcoded mode letters, part 3

This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core

11 years agoMove SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User...
attilamolnar [Tue, 18 Jun 2013 16:50:10 +0000 (18:50 +0200)]
Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User class to the snomask modehandler

11 years agoReplace hardcoded mode letters, part 2
attilamolnar [Tue, 18 Jun 2013 16:30:10 +0000 (18:30 +0200)]
Replace hardcoded mode letters, part 2

This changes all remaining Channel::IsModeSet() and Channel::GetModeParameter() calls to use ModeReferences for modes that were created by other modules or the core

11 years agoSeperate ModeReference into ChanModeReference and UserModeReference
attilamolnar [Sun, 14 Jul 2013 22:20:28 +0000 (00:20 +0200)]
Seperate ModeReference into ChanModeReference and UserModeReference

11 years agoMove dynamic_reference and related classes to dynref.h
attilamolnar [Tue, 18 Jun 2013 16:19:28 +0000 (18:19 +0200)]
Move dynamic_reference and related classes to dynref.h

11 years agoMerge pull request #589 from SaberUK/master+fix-debug-build
Attila Molnar [Tue, 16 Jul 2013 21:07:11 +0000 (14:07 -0700)]
Merge pull request #589 from SaberUK/master+fix-debug-build

Fix some warnings which are causing debug builds to fail.

11 years agoFix some warnings which are causing debug builds to fail.
Peter Powell [Sun, 7 Jul 2013 18:29:50 +0000 (19:29 +0100)]
Fix some warnings which are causing debug builds to fail.

- Clang: private field 'module' is not used
- GCC: suggest a space before ‘;’ or explicit braces around empty
       body in ‘while’ statement

11 years agoMerge pull request #587 from SaberUK/master+defer-preprocessor
Attila Molnar [Tue, 16 Jul 2013 20:54:44 +0000 (13:54 -0700)]
Merge pull request #587 from SaberUK/master+defer-preprocessor

Use the preprocessor to check for TCP deferring support.

11 years agoUse the preprocessor to check for TCP deferring support.
Peter Powell [Sun, 7 Jul 2013 13:27:54 +0000 (14:27 +0100)]
Use the preprocessor to check for TCP deferring support.

11 years agom_ssl_openssl Fix inverted check that prevented certificates from being recognized...
attilamolnar [Tue, 16 Jul 2013 20:30:18 +0000 (22:30 +0200)]
m_ssl_openssl Fix inverted check that prevented certificates from being recognized as trusted

11 years agoUse the correct socket related error messages on Windows
Adam [Wed, 3 Jul 2013 21:26:45 +0000 (17:26 -0400)]
Use the correct socket related error messages on Windows