11501 Commits

Author SHA1 Message Date
Peter Powell
3070548cee 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.
2013-08-18 11:41:43 +01:00
attilamolnar
e950f568d0 m_spanningtree Remove SpanningTreeUtilities* fields and parameters 2013-08-17 18:27:14 +02:00
Attila Molnar
68afa315fc Merge pull request #608 from SaberUK/master+buildprop-dedupe
Clean up the build system properties and related code.
2013-08-17 09:25:42 -07:00
Peter Powell
b86fe63a3a 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).
2013-08-16 00:35:34 +01:00
attilamolnar
b7e793d961 Remove $ModDep comments 2013-08-15 17:39:56 +02:00
attilamolnar
19cc8380fb Store oper types and opers in separate containers 2013-08-13 14:22:07 +02:00
attilamolnar
37394a80c2 Clean up a few constructors
Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead
2013-08-12 20:10:06 +02:00
attilamolnar
558eea33dc cmd_whowas Major cleanup, fix inefficiencies 2013-08-12 20:00:10 +02:00
attilamolnar
6d39615998 Add ConfigTag::getDuration() with optional bounds checking 2013-08-12 19:20:18 +02:00
Attila Molnar
1e89f51070 Merge pull request #607 from SaberUK/master+match
Clean up wildcard code.
2013-08-12 10:08:36 -07:00
Peter Powell
12be0adc38 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.
2013-08-12 18:06:27 +01:00
Attila Molnar
9d4efff395 Merge pull request #591 from SaberUK/master+config-tweaks
Various patches relating to configuration.
2013-08-12 09:20:46 -07:00
Peter Powell
29822a263b 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.
2013-08-12 16:53:33 +01:00
Peter Powell
3d019b14ec Require privs given on initial join to be in <options:defaultmodes>. 2013-08-10 14:04:09 +01:00
Peter Powell
4509cbcc0b Rename <options:moronbanner> to <options:xlinemessage>.
This name is more descriptive of what is actually is used for.
2013-08-10 14:04:09 +01:00
Peter Powell
86f650e6b8 Replace range() with min and max arguments on getInt(). 2013-08-10 14:04:09 +01:00
Peter Powell
a2720d1697 Prevent servers from ulining themselves.
Almost every single case I have seen where this has been done has
been an accident.
2013-08-10 14:04:09 +01:00
Peter Powell
28190fc82a 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.
2013-08-10 14:04:09 +01:00
Peter Powell
e486994e84 Warn if the server has no <bind> blocks. 2013-08-10 14:04:09 +01:00
Peter Powell
a129233dcd Use an example server name if <server:name> is not defined. 2013-08-10 14:04:09 +01:00
Peter Powell
03a623a284 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.
2013-08-10 14:04:09 +01:00
attilamolnar
dafa2f3031 Remove virtual User::GetClass() (but keep LocalUser::GetClass()) 2013-08-09 18:28:11 +02:00
attilamolnar
b4542af6b4 Accept std::string as parameter in User::ChangeHost(), ChangeIdent() and ChangeName()
Pass the string itself to IsIdent() instead of string.c_str()
2013-08-09 18:20:12 +02:00
attilamolnar
e4b76e6502 Move host cycle logic into m_hostcycle 2013-08-09 18:10:48 +02:00
attilamolnar
9962840222 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
2013-08-08 15:10:48 +02:00
Adam
1f38b9adb5 Issue #604, fix m_dnsbl, broken in accccc212cd4f08a3c5532b1ae7a17e76bac8718 2013-08-06 20:14:30 +00:00
attilamolnar
3093559947 Call ModeParser::Process() directly instead of going through the CommandParser
Simplify the way how m_conn_umodes assembles the modes it sets
2013-08-04 19:13:52 +02:00
attilamolnar
8a4744f8db FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() them from clientlist 2013-08-04 19:03:35 +02:00
Attila Molnar
f449ae9dde Merge pull request #599 from SaberUK/master+configure-tests
Refactor duplicate test code into a run_test subroutine.
2013-08-04 09:51:28 -07:00
Peter Powell
ff15b6d2ad Refactor duplicate test code into a run_test subroutine. 2013-08-04 17:48:49 +01:00
attilamolnar
d24619c012 Automatically attach modules to events 2013-08-04 16:08:57 +02:00
Adam
8710724b55 Change the syntax of FOREACH macros to be less dumb. 2013-08-04 16:08:57 +02:00
Attila Molnar
36f93c0e7f Merge pull request #590 from SaberUK/master+module-logging
Change modules to use the MODNAME constant.
2013-08-04 07:08:41 -07:00
Peter Powell
cc1d8c1d57 Modify the log message to contain the log type. 2013-08-04 14:59:20 +01:00
Peter Powell
24623a5fe6 Change httpd modules to use the MODNAME constant in headers. 2013-08-04 13:47:18 +01:00
Peter Powell
abc57eddfb 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.
2013-08-04 13:32:51 +01:00
attilamolnar
38eb845f7a Remove a few not-so-useful debug messages 2013-08-04 12:33:30 +02:00
Attila Molnar
8692ce1b65 Merge pull request #596 from SaberUK/master+genssl-auto
Add 'auto' option to genssl to automatically select a generator.
2013-08-04 03:21:17 -07:00
Attila Molnar
44b20f4745 Merge pull request #593 from SaberUK/master+configure-shuffle
Remove a ton of duplicate and obsolete code from configure.
2013-08-04 03:19:02 -07:00
Peter Powell
b3200d542b Add 'auto' option to genssl to automatically select a generator. 2013-07-29 17:07:52 +01:00
Peter Powell
b4ba01f542 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.
2013-07-29 03:33:46 +01:00
attilamolnar
c6b911132c m_spanningtree Change the type of TreeServer::ServerName to std::string 2013-07-24 18:12:22 +02:00
attilamolnar
d763f0b2ee m_spanningtree Cleanup TreeServer and TreeSocket construction/destruction 2013-07-24 18:12:10 +02:00
attilamolnar
1a775c11c2 umode_s Rewrite ProcessNoticeMasks() and remove a few related useless functions 2013-07-24 18:10:34 +02:00
attilamolnar
c265641c0a Rewrite SnomaskManager::SendMessage() and Flush(), split code into functions 2013-07-24 18:10:20 +02:00
attilamolnar
909cba9b75 Enable the LINK snomask from m_spanningtree, remove unused FLOOD snomask 2013-07-20 18:15:01 +02:00
attilamolnar
812c478f8b m_ojoin Stop hardcoding +Y, move global vars into a class, move initialization code into init() 2013-07-19 19:40:06 +02:00
attilamolnar
2dc01893c6 Get rid of enum UserModes and mark User::modes as private 2013-07-19 19:40:05 +02:00
attilamolnar
fd1d19d634 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
2013-07-19 19:40:04 +02:00
attilamolnar
882084defc Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the User class to the snomask modehandler 2013-07-19 19:40:03 +02:00