]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
9 years agoMerge branch 'master+cmdcleanup'
Attila Molnar [Sun, 25 Jan 2015 12:46:21 +0000 (13:46 +0100)]
Merge branch 'master+cmdcleanup'

9 years agom_spanningtree Rewrite PING logic to use Timers
Attila Molnar [Sun, 25 Jan 2015 12:41:24 +0000 (13:41 +0100)]
m_spanningtree Rewrite PING logic to use Timers

9 years agoRemove needless checks from User::WriteCommon()/WriteCommonRaw()
Attila Molnar [Sat, 24 Jan 2015 14:02:25 +0000 (15:02 +0100)]
Remove needless checks from User::WriteCommon()/WriteCommonRaw()

9 years agom_ircv3 Implement WriteNeighboursWithExt() using User::ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:58:31 +0000 (14:58 +0100)]
m_ircv3 Implement WriteNeighboursWithExt() using User::ForEachNeighbor()

9 years agoImplement User::WriteCommonRaw() using ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:55:10 +0000 (14:55 +0100)]
Implement User::WriteCommonRaw() using ForEachNeighbor()

9 years agoImplement User::WriteCommonQuit() using ForEachNeighbor() in UserManager
Attila Molnar [Sat, 24 Jan 2015 13:53:03 +0000 (14:53 +0100)]
Implement User::WriteCommonQuit() using ForEachNeighbor() in UserManager

9 years agoAdd User::ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:49:10 +0000 (14:49 +0100)]
Add User::ForEachNeighbor()

9 years agoMove implementation of Command and CommandBase functions into a source file
Attila Molnar [Sat, 24 Jan 2015 13:10:38 +0000 (14:10 +0100)]
Move implementation of Command and CommandBase functions into a source file

9 years agoRemove unused CommandBase::DecodeParameter()
Attila Molnar [Sat, 24 Jan 2015 13:08:02 +0000 (14:08 +0100)]
Remove unused CommandBase::DecodeParameter()

9 years agoSwitch to unsigned ints in CommandBase constructor for min and max params
Attila Molnar [Sat, 24 Jan 2015 13:06:42 +0000 (14:06 +0100)]
Switch to unsigned ints in CommandBase constructor for min and max params

9 years agoUse ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
Peter Powell [Fri, 23 Jan 2015 20:09:31 +0000 (20:09 +0000)]
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.

This is specified in RFC 1459 so we should probably use it.

9 years agoMerge branch 'master+no-rtti'
Attila Molnar [Fri, 23 Jan 2015 14:59:35 +0000 (15:59 +0100)]
Merge branch 'master+no-rtti'

9 years agom_kicknorejoin Store kicked users in a vector
Attila Molnar [Fri, 23 Jan 2015 14:50:18 +0000 (15:50 +0100)]
m_kicknorejoin Store kicked users in a vector

9 years agom_kicknorejoin Move logic that tracks kicked users into KickRejoinData
Attila Molnar [Fri, 23 Jan 2015 14:46:03 +0000 (15:46 +0100)]
m_kicknorejoin Move logic that tracks kicked users into KickRejoinData

9 years agoDisable RTTI in release builds (compile with -fno-rtti)
Attila Molnar [Thu, 22 Jan 2015 11:19:01 +0000 (12:19 +0100)]
Disable RTTI in release builds (compile with -fno-rtti)

9 years agoMerge branch 'master+exttype' into master+no-rtti
Attila Molnar [Thu, 22 Jan 2015 11:14:25 +0000 (12:14 +0100)]
Merge branch 'master+exttype' into master+no-rtti

9 years agoDisable typeid() calls unless INSPIRCD_ENABLE_RTTI is defined
Attila Molnar [Thu, 22 Jan 2015 11:12:41 +0000 (12:12 +0100)]
Disable typeid() calls unless INSPIRCD_ENABLE_RTTI is defined

9 years agom_abbreviation Fix typo in numeric text
Attila Molnar [Wed, 21 Jan 2015 18:08:30 +0000 (19:08 +0100)]
m_abbreviation Fix typo in numeric text

9 years agoFix numeric ERR_NOTREGISTERED not containing the user's nick
Attila Molnar [Wed, 21 Jan 2015 18:07:44 +0000 (19:07 +0100)]
Fix numeric ERR_NOTREGISTERED not containing the user's nick

9 years agoMerge pull request #961 from SaberUK/insp20+fix-snotice
Attila Molnar [Wed, 21 Jan 2015 18:04:10 +0000 (19:04 +0100)]
Merge pull request #961 from SaberUK/insp20+fix-snotice

Fix a snotice in m_spanningtree incorrectly using an unsigned long.

9 years agom_spanningtree Remove public TreeServer methods that are only called from TreeServer
Attila Molnar [Tue, 20 Jan 2015 16:49:04 +0000 (17:49 +0100)]
m_spanningtree Remove public TreeServer methods that are only called from TreeServer

9 years agom_spanningtree Get rid of some boilerplate
Attila Molnar [Tue, 20 Jan 2015 16:42:31 +0000 (17:42 +0100)]
m_spanningtree Get rid of some boilerplate

Make methods const while at it

9 years agoMerge branch 'insp20+penalty' into insp20
Attila Molnar [Mon, 19 Jan 2015 16:47:03 +0000 (17:47 +0100)]
Merge branch 'insp20+penalty' into insp20

9 years agom_operprefix Fix force joined opers not being given the operprefix mode
Attila Molnar [Mon, 19 Jan 2015 16:43:58 +0000 (17:43 +0100)]
m_operprefix Fix force joined opers not being given the operprefix mode

9 years agoDon't bind ports after an unsuccessful rehash
Attila Molnar [Mon, 19 Jan 2015 16:38:30 +0000 (17:38 +0100)]
Don't bind ports after an unsuccessful rehash

9 years agom_services_account Replace dynamic_cast with static_cast as we know the object is...
Attila Molnar [Sun, 18 Jan 2015 09:44:02 +0000 (10:44 +0100)]
m_services_account Replace dynamic_cast with static_cast as we know the object is a User

9 years agom_spanningtree Only unserialize() METADATA if the object type matches ExtensionItem...
Attila Molnar [Sun, 18 Jan 2015 09:42:39 +0000 (10:42 +0100)]
m_spanningtree Only unserialize() METADATA if the object type matches ExtensionItem::type

9 years agoSpecify which Extensible subclass an ExtensionItem is valid for
Attila Molnar [Sun, 18 Jan 2015 09:40:33 +0000 (10:40 +0100)]
Specify which Extensible subclass an ExtensionItem is valid for

9 years agoUpdate year in resource file for Windows
Attila Molnar [Sat, 17 Jan 2015 16:02:48 +0000 (17:02 +0100)]
Update year in resource file for Windows

9 years agoMerge pull request #967 from SaberUK/insp20+fix-windows
Attila Molnar [Sat, 17 Jan 2015 16:00:57 +0000 (17:00 +0100)]
Merge pull request #967 from SaberUK/insp20+fix-windows

Fix modules not being versioned on Windows.

9 years agoFix modules not being versioned on Windows.
Peter Powell [Sat, 17 Jan 2015 15:31:35 +0000 (15:31 +0000)]
Fix modules not being versioned on Windows.

9 years agom_hideoper Fix wrong /WHO output for hidden opers if the channel name contains '*'
Attila Molnar [Sat, 17 Jan 2015 14:27:09 +0000 (15:27 +0100)]
m_hideoper Fix wrong /WHO output for hidden opers if the channel name contains '*'

9 years agoFix elines not matching elined users when rechecking elined status
Attila Molnar [Sat, 17 Jan 2015 14:21:51 +0000 (15:21 +0100)]
Fix elines not matching elined users when rechecking elined status

9 years agoMerge pull request #968 from ShutterQuick/insp20+sporder
Attila Molnar [Sat, 17 Jan 2015 14:19:08 +0000 (15:19 +0100)]
Merge pull request #968 from ShutterQuick/insp20+sporder

cmd_list: Give +s precedence to +p

9 years agocmd_list: Give +s precedence to +p
Daniel Vassdal [Sat, 17 Jan 2015 13:46:28 +0000 (14:46 +0100)]
cmd_list: Give +s precedence to +p
When +ps is set, handle it as +s (most restrictive) instead of +p

9 years agoMerge pull request #966 from SaberUK/insp20+fix-error-message
Attila Molnar [Sat, 17 Jan 2015 13:37:27 +0000 (14:37 +0100)]
Merge pull request #966 from SaberUK/insp20+fix-error-message

Fix a blank error message when trying to load a module with a path.

9 years agoVerify that the chan in chanlist is in fact the same object as us in Channel::CheckDe...
Attila Molnar [Fri, 16 Jan 2015 10:01:50 +0000 (11:01 +0100)]
Verify that the chan in chanlist is in fact the same object as us in Channel::CheckDestroy() before proceeding

9 years agoGracefully handle multiple Channel::CheckDestroy() calls on the same object
Attila Molnar [Fri, 16 Jan 2015 09:58:28 +0000 (10:58 +0100)]
Gracefully handle multiple Channel::CheckDestroy() calls on the same object

Don't add the channel to the cull list more than once

9 years agoFix a blank error message when trying to load a module with a path.
Peter Powell [Fri, 16 Jan 2015 03:14:35 +0000 (03:14 +0000)]
Fix a blank error message when trying to load a module with a path.

9 years agocmode_k Fix oversight in substr() conversion
Attila Molnar [Wed, 14 Jan 2015 11:07:20 +0000 (12:07 +0100)]
cmode_k Fix oversight in substr() conversion

While at it, introduce a named constant for maximum key length

9 years agoMerge branch 'master+stfjoinforward'
Attila Molnar [Wed, 14 Jan 2015 11:00:57 +0000 (12:00 +0100)]
Merge branch 'master+stfjoinforward'

9 years agoAlways penalize clients executing a command which fails before running the handler...
Attila Molnar [Mon, 12 Jan 2015 13:24:23 +0000 (14:24 +0100)]
Always penalize clients executing a command which fails before running the handler, even if the command has 0 penalty

9 years agoIncrease penalty for some core commands
Attila Molnar [Mon, 12 Jan 2015 13:19:58 +0000 (14:19 +0100)]
Increase penalty for some core commands

9 years agoFix harmless uninitialized variable usage on startup if the config is incorrect
Attila Molnar [Mon, 12 Jan 2015 13:10:53 +0000 (14:10 +0100)]
Fix harmless uninitialized variable usage on startup if the config is incorrect

9 years agoFix issues with some numerics introduced in the WriteNumeric() conversion and elsewhere
Attila Molnar [Sun, 11 Jan 2015 13:35:21 +0000 (14:35 +0100)]
Fix issues with some numerics introduced in the WriteNumeric() conversion and elsewhere

9 years agoMerge pull request #963 from SaberUK/insp20+nuke-data-dumper
Attila Molnar [Sun, 11 Jan 2015 11:46:04 +0000 (12:46 +0100)]
Merge pull request #963 from SaberUK/insp20+nuke-data-dumper

Don't load Data::Dumper in the configure script.

9 years agoDon't load Data::Dumper in the configure script.
Peter Powell [Sun, 11 Jan 2015 04:29:50 +0000 (04:29 +0000)]
Don't load Data::Dumper in the configure script.

This is not used and apparently there are some distros which do
not include it as part of the system Perl.

9 years agoStore iovec array on the stack instead of heap allocating it for the lifetime of...
Attila Molnar [Sat, 10 Jan 2015 14:43:00 +0000 (15:43 +0100)]
Store iovec array on the stack instead of heap allocating it for the lifetime of writev() in StreamSocket::DoWrite()

9 years agoRemove pointless fd == INT_MAX check from StreamSocket::DoWrite()
Attila Molnar [Sat, 10 Jan 2015 14:39:02 +0000 (15:39 +0100)]
Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()

9 years agoRemove some unnecessary NULL checks
Attila Molnar [Sat, 10 Jan 2015 14:36:13 +0000 (15:36 +0100)]
Remove some unnecessary NULL checks

9 years agoReduce std::string::substr() usage
Attila Molnar [Sat, 10 Jan 2015 14:16:03 +0000 (15:16 +0100)]
Reduce std::string::substr() usage

substr() returns a new string while erase() and assign() modify the existing one

9 years agoRemove the unused OnGlobalOper hook
Attila Molnar [Sat, 10 Jan 2015 13:30:41 +0000 (14:30 +0100)]
Remove the unused OnGlobalOper hook

9 years agom_spanningtree Increase maximum generated FJOIN line size to 510
Attila Molnar [Fri, 9 Jan 2015 14:21:10 +0000 (15:21 +0100)]
m_spanningtree Increase maximum generated FJOIN line size to 510

9 years agom_spanningtree Forward FJOINs with correct TS, modes and userlist
Attila Molnar [Fri, 9 Jan 2015 14:18:09 +0000 (15:18 +0100)]
m_spanningtree Forward FJOINs with correct TS, modes and userlist

9 years agom_spanningtree Change name and scope of commait in FJOIN handler
Attila Molnar [Fri, 9 Jan 2015 13:59:00 +0000 (14:59 +0100)]
m_spanningtree Change name and scope of commait in FJOIN handler

9 years agom_spanningtree Add overload for add() and has_room(), giving more flexibility to...
Attila Molnar [Fri, 9 Jan 2015 13:56:28 +0000 (14:56 +0100)]
m_spanningtree Add overload for add() and has_room(), giving more flexibility to subclasses of CommandFJoin::Builder

9 years agom_spanningtree Add CmdBuilder::push_raw() overload for ranges
Attila Molnar [Fri, 9 Jan 2015 13:52:16 +0000 (14:52 +0100)]
m_spanningtree Add CmdBuilder::push_raw() overload for ranges

9 years agom_spanningtree Add source server parameter to CommandFJOIN::Builder constructor
Attila Molnar [Fri, 9 Jan 2015 13:50:21 +0000 (14:50 +0100)]
m_spanningtree Add source server parameter to CommandFJOIN::Builder constructor

Default it to this server

9 years agoFix a snotice in m_spanningtree incorrectly using an unsigned long.
Peter Powell [Sat, 3 Jan 2015 20:33:09 +0000 (20:33 +0000)]
Fix a snotice in m_spanningtree incorrectly using an unsigned long.

This value can be negative so it should be a signed long not an
unsigned long.

9 years agoMerge pull request #959 from Alef-Burzmali/master+fixcloaking
Attila Molnar [Sat, 3 Jan 2015 15:22:08 +0000 (16:22 +0100)]
Merge pull request #959 from Alef-Burzmali/master+fixcloaking

Fix a regression in m_cloaking

9 years agocmd_invite Send RPL_AWAY after RPL_INVITING if the target user is away
Attila Molnar [Sat, 3 Jan 2015 15:06:53 +0000 (16:06 +0100)]
cmd_invite Send RPL_AWAY after RPL_INVITING if the target user is away

This is consistent with other server implementations and the RFC

9 years agoFix signon time of clients being off by dns_timeout seconds
Attila Molnar [Tue, 30 Dec 2014 19:51:34 +0000 (20:51 +0100)]
Fix signon time of clients being off by dns_timeout seconds

9 years agoFix User::age being incorrectly used in some places instead of signon
Attila Molnar [Tue, 30 Dec 2014 19:26:05 +0000 (20:26 +0100)]
Fix User::age being incorrectly used in some places instead of signon

9 years agoFix a regression in m_cloaking
Thomas Fargeix [Mon, 29 Dec 2014 22:47:21 +0000 (23:47 +0100)]
Fix a regression in m_cloaking

5c7db14a5 made the cloak use hex-encoded hashes instead
of the binary output.

9 years agom_check Fix non-standard format specifier %s passed to strftime() causing problems...
Attila Molnar [Sat, 27 Dec 2014 13:50:22 +0000 (14:50 +0100)]
m_check Fix non-standard format specifier %s passed to strftime() causing problems on systems not supporting it (Windows)

9 years agoMerge branch 'master+listmode'
Attila Molnar [Fri, 19 Dec 2014 14:29:21 +0000 (15:29 +0100)]
Merge branch 'master+listmode'

9 years agoMerge branch 'master+flatmap'
Attila Molnar [Fri, 19 Dec 2014 14:24:02 +0000 (15:24 +0100)]
Merge branch 'master+flatmap'

9 years agoMerge branch 'master+serverlimits'
Attila Molnar [Thu, 18 Dec 2014 22:40:15 +0000 (23:40 +0100)]
Merge branch 'master+serverlimits'

9 years agoMerge pull request #953 from SaberUK/master+configure-oversights
Attila Molnar [Thu, 18 Dec 2014 22:33:20 +0000 (23:33 +0100)]
Merge pull request #953 from SaberUK/master+configure-oversights

Fix some oversights from #895.

9 years agoFix some oversights from #895.
Peter Powell [Thu, 18 Dec 2014 16:01:10 +0000 (16:01 +0000)]
Fix some oversights from #895.

- Always write the configure cache file as it is needed for updating
  the makefile when --update is called.
- List the modules which have been enabled in the "configuration
  complete" message.
- Silence some harmless warnings about installing PEM files which
  don't exist.

9 years agoDrop setter is empty check when displaying listmodes
Attila Molnar [Tue, 16 Dec 2014 15:45:06 +0000 (16:45 +0100)]
Drop setter is empty check when displaying listmodes

The setter cannot be empty unless the nick of a client is empty which is not possible

9 years agoDisplay listmodes in the order in which they are in the container instead of reverse...
Attila Molnar [Tue, 16 Dec 2014 15:44:00 +0000 (16:44 +0100)]
Display listmodes in the order in which they are in the container instead of reverse iterating

9 years agoChange listmode storage type to vector
Attila Molnar [Tue, 16 Dec 2014 15:42:35 +0000 (16:42 +0100)]
Change listmode storage type to vector

9 years agoChange type of some associative containers to their flat versions, including Extensib...
Attila Molnar [Mon, 15 Dec 2014 16:48:52 +0000 (17:48 +0100)]
Change type of some associative containers to their flat versions, including Extensible storage

9 years agoAdd flat_[multi]{map,set} containers
Attila Molnar [Mon, 15 Dec 2014 16:36:20 +0000 (17:36 +0100)]
Add flat_[multi]{map,set} containers

9 years agoAdd typedef ModeParser::ModeWatcherMap, remove ModeWatchIter
Attila Molnar [Mon, 15 Dec 2014 16:14:09 +0000 (17:14 +0100)]
Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIter

9 years agoAdd typedef PrivSet for OperInfo::AllowedOperCommands and AllowedPrivs
Attila Molnar [Mon, 15 Dec 2014 16:09:48 +0000 (17:09 +0100)]
Add typedef PrivSet for OperInfo::AllowedOperCommands and AllowedPrivs

9 years agoMerge branch 'master+callerid' into master+flatmap
Attila Molnar [Mon, 15 Dec 2014 16:02:26 +0000 (17:02 +0100)]
Merge branch 'master+callerid' into master+flatmap

9 years agom_httpd On module unload close all connections hooked by the module being unloaded
Attila Molnar [Wed, 10 Dec 2014 16:50:31 +0000 (17:50 +0100)]
m_httpd On module unload close all connections hooked by the module being unloaded

9 years agom_callerid Change CallerIdDataSet (wholistsme) to be a vector
Attila Molnar [Wed, 10 Dec 2014 15:57:18 +0000 (16:57 +0100)]
m_callerid Change CallerIdDataSet (wholistsme) to be a vector

9 years agom_callerid Add typedefs for containers in callerid_data
Attila Molnar [Wed, 10 Dec 2014 15:56:00 +0000 (16:56 +0100)]
m_callerid Add typedefs for containers in callerid_data

9 years agom_callerid Simplify code interacting with containers
Attila Molnar [Wed, 10 Dec 2014 15:50:12 +0000 (16:50 +0100)]
m_callerid Simplify code interacting with containers

9 years agoPass the empty tag to Limits when constructing a ServerConfig, remove default ServerL...
Attila Molnar [Tue, 9 Dec 2014 11:36:24 +0000 (12:36 +0100)]
Pass the empty tag to Limits when constructing a ServerConfig, remove default ServerLimits constructor

9 years agoAdd ServerLimits constructor that reads limits from a ConfigTag and use it
Attila Molnar [Tue, 9 Dec 2014 11:35:31 +0000 (12:35 +0100)]
Add ServerLimits constructor that reads limits from a ConfigTag and use it

9 years agoInitialize ServerConfig::EmptyTag using the init list
Attila Molnar [Tue, 9 Dec 2014 11:30:21 +0000 (12:30 +0100)]
Initialize ServerConfig::EmptyTag using the init list

9 years agoMerge branch 'master+timeout'
Attila Molnar [Mon, 8 Dec 2014 21:10:02 +0000 (22:10 +0100)]
Merge branch 'master+timeout'

9 years agoLink m_ldap against libldap_r
Adam [Sun, 7 Dec 2014 20:47:00 +0000 (15:47 -0500)]
Link m_ldap against libldap_r

9 years agoMerge pull request #941 from SaberUK/master+test-build
Attila Molnar [Sun, 7 Dec 2014 22:49:03 +0000 (23:49 +0100)]
Merge pull request #941 from SaberUK/master+test-build

Add support for extra modules and custom compilers to test-build.

9 years agoAdd support for extra modules and custom compilers to test-build.
Peter Powell [Wed, 22 Oct 2014 12:30:32 +0000 (13:30 +0100)]
Add support for extra modules and custom compilers to test-build.

9 years agoMerge pull request #895 from SaberUK/master+configure-misc-cleanup
Attila Molnar [Sun, 7 Dec 2014 22:39:55 +0000 (23:39 +0100)]
Merge pull request #895 from SaberUK/master+configure-misc-cleanup

Various improvements to the build system.

9 years agoFix builds on OpenBSD spamming the console with warnings.
Peter Powell [Wed, 1 Oct 2014 18:52:34 +0000 (19:52 +0100)]
Fix builds on OpenBSD spamming the console with warnings.

9 years agoFix warnings in m_ssl_openssl about the use of `long long` on C++03.
Peter Powell [Wed, 1 Oct 2014 18:52:30 +0000 (19:52 +0100)]
Fix warnings in m_ssl_openssl about the use of `long long` on C++03.

9 years agoMove common code to make::common from make::utilities.
Peter Powell [Wed, 1 Oct 2014 18:52:29 +0000 (19:52 +0100)]
Move common code to make::common from make::utilities.

The other code in that file will be removed very soon so it has
been left alone to avoid merge conflicts.

This will help prevent insp20 merge conflicts in the future.

9 years agoImplement support for distribution specific version labels.
Peter Powell [Wed, 1 Oct 2014 18:52:28 +0000 (19:52 +0100)]
Implement support for distribution specific version labels.

This will help us determine whether a version has been packaged by
a downstream distribution who quite often make arbitrary changes
which are a pain to provide support for.

Debian, we're looking at you.

9 years agoImprove build system compiler detection.
Peter Powell [Wed, 1 Oct 2014 18:52:27 +0000 (19:52 +0100)]
Improve build system compiler detection.

- Check the CXX environment variable inside find_compiler instead
  of doing it separately.
- Use a test file instead of checking for version output. This
  ensures we are using a working compiler.
- Pipe the output through run_test which makes debugging problems
  considerably easier.
- Detect Xcode versions of Clang properly by returning the LLVM
  version number instead of the Xcode one.

9 years agoImprove configure cache file handling.
Peter Powell [Wed, 1 Oct 2014 18:52:26 +0000 (19:52 +0100)]
Improve configure cache file handling.

- Add a version number to the configure cache file.
- Disable configure cache file in non-interactive mode.
- Rename configure cache file to .configure.cache to avoid 2.0 files.
- Use run_test to produce the "reading .configure.cache" message.

9 years agoMiscellaneous improvements to configure.
Peter Powell [Wed, 1 Oct 2014 18:52:25 +0000 (19:52 +0100)]
Miscellaneous improvements to configure.

- Clean up various minor sections of the code.
- Remove OpenSSL and GnuTLS detection plumbing.
  - This will soon be the job of modulemanager.
  - This did not work in non-interactive mode unlike --enable-extras.
- Rework runas user handling.
  - Add the --gid configure option.
  - Accept either an id or a name in --gid and --uid.
- Rework the question flow in interactive mode.
  - User is no longer asked detailed questions unless they want them.
  - Socket engine questions have been removed.
- Automatically enable non-interactive mode if STDIN or STDOUT are not
  a tty.

9 years agoAdd Perl module for console related code.
Peter Powell [Wed, 1 Oct 2014 18:52:23 +0000 (19:52 +0100)]
Add Perl module for console related code.

- Move prompt_* methods to this module.
- Add methods for printing errors and warnings easily.
- Add colour code helpers and switch all code to use them.

9 years agoReject empty mode parameters in ModeParser::Process() instead of relying on ModeHandl...
Attila Molnar [Sun, 30 Nov 2014 17:40:10 +0000 (18:40 +0100)]
Reject empty mode parameters in ModeParser::Process() instead of relying on ModeHandlers to do it

9 years agoDon't submit a reload worker if the module doing the reload is scheduled for unload
Attila Molnar [Sun, 30 Nov 2014 17:24:17 +0000 (18:24 +0100)]
Don't submit a reload worker if the module doing the reload is scheduled for unload