Attila Molnar
7aab18ae35
Deduplicate and move the *MatchesEveryone() functions to core_xline
2014-03-12 13:50:41 +01:00
Attila Molnar
efe77ba63b
Change all socketengine methods to be static
2014-02-08 23:01:44 +01:00
Peter Powell
074727e7a7
Convert InspIRCd::PassCompare to return bool instead of int.
...
The insane behaviour of this method was due to an implementation
detail which has since become irrelevent.
2014-01-25 12:20:04 +01:00
Attila Molnar
932e8d13f8
Convert UserChanList to an intrusively linked list
2014-01-24 12:58:01 +01:00
Attila Molnar
e244cb2c63
Merge insp20
2014-01-21 18:44:08 +01:00
Attila Molnar
9136136ac3
Move server description field from TreeServer into Server; remove OnGetServerDescription hook
2014-01-05 15:20:17 +01:00
Attila Molnar
11916574f6
Introduce Server class
...
- Replaces std::string server in User
- Replaces InspIRCd::ULine() and SilentULine()
2014-01-05 15:04:01 +01:00
Peter Powell
ad47ea6626
Make various self contained methods static.
...
- InspIRCd::IsValidMask
- InspIRCd::TimeString
2013-12-15 06:46:44 +00:00
Peter Powell
02830985a1
Move stuff around a bit:
...
- Create FileSystem class:
* Move ServerConfig::CleanFilename to FileSystem::GetFileName and rewrite.
* Move ServerConfig::ExpandPath to FileSystem.
* Move ServerConfig::FileExists to FileSystem.
* Move ServerConfig::StartsWithWindowsDriveLetter to FileSystem.
- Move FileReader to fileutils.cpp and fix documentation.
- Move UserManager::DoBackgroundUserStuff to usermanager.cpp.
2013-12-15 06:46:35 +00:00
attilamolnar
d743bdf338
Fix ConvToStr(char)
2013-09-14 15:23:45 +02:00
attilamolnar
deb18ee9cf
Remove InspIRCd::HandleRehash functor
...
Call InspIRCd::Rehash() from cmd_rehash and from the SIGHUP handler
2013-09-08 17:21:01 +02:00
attilamolnar
992674362c
Automatically register ServiceProviders created by modules
2013-09-08 17:11:08 +02:00
ChrisTX
3f4d54eb03
Fix a crash when running as systemd service
...
- Fix a NULL dereference if a signal is raised in the constructor of the
class InspIRCd
- Resolve the parent's process exit code being SIGTERM=15 and typically not
EXIT_SUCCESS thus
A combination of the two caused crashes when running as systemd unit.
2013-09-08 12:10:01 +02:00
attilamolnar
b395c59997
m_spanningtree Propagate oper-only quit reason using METADATA, remove OPERQUIT
2013-08-18 13:48:31 +02: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
attilamolnar
ac55270a08
Move dynamic_reference and related classes to dynref.h
2013-07-19 19:40:02 +02:00
Peter Powell
146d72fddb
Fix Doxygen comments.
2013-06-21 03:52:56 +01:00
attilamolnar
50ecf259b6
Remove dead code from the InspIRCd and CommandParser classes and typedefs.h
...
Removed functions:
InspIRCd:
- Restart() - unused
- DoSocketTimeouts() - no implementation exists
- AddCommand() - useless wrapper around ModuleManager::AddService()
CommandParser:
- IsValidCommand() - unused
- ProcessParameters() - no implementation exists
2013-06-18 21:25:43 +02:00
attilamolnar
e0cb6bd46f
Minor changes to the startup and shutdown code
...
- Update comments
- Close logs in LogManager destructor instead of relying on other code to do it
- Change return type of InspIRCd::Run() to void
- private: InspIRCd::CheckRoot()
- Change log message type of setgroups() etc. errors to "STARTUP"
- Load cmd_privmsg in PURE_STATIC builds
2013-06-18 21:20:30 +02:00
attilamolnar
3624c137a6
Introduce ModeProcessFlags, can be passed to ModeParser::Process() to indicate local only mode changes and mode merges
...
Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global
This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.)
2013-06-13 18:15:34 +02:00
attilamolnar
eeabdde6fb
Move DoBackgroundUserStuff() and AllModulesReportReady() into UserManager
2013-06-06 03:13:55 +02:00
Peter Powell
955ad16ed7
Convert ConvNumeric() to use std::string instead of char[MAXBUF].
2013-06-06 01:45:04 +01:00
attilamolnar
b01dc3cb86
Move a few trivial functions into headers
2013-06-02 00:28:55 +02:00
attilamolnar
40c5b25db4
Remove #define MAXPARAMETERS and "MAXPARA" 005 token
2013-06-01 23:00:55 +02:00
Attila Molnar
b36ce84c7d
Merge pull request #545 from SaberUK/master+logging-cleanup
...
Clean up the logging system (part 1 of 2).
2013-05-21 17:11:46 -07:00
Adam
06a606ea66
Fixup last commit
2013-05-20 14:20:08 -04:00
Peter Powell
5ad9b97fcf
Purge a ton of code related to non <log> related logging.
...
- InspIRCd::OpenLog
- ./inspircd --logfile [file]
This is no longer needed now we have (since 1.2) custom logging.
2013-05-19 17:11:53 +01:00
Peter Powell
ad0828aa64
Move LogHeader to LogStream.
2013-05-19 03:22:54 +01:00
Daniel Vassdal
42ae479081
Added macro to allow simpler logic in functions with the need to vsnprintf
2013-05-18 14:01:21 -07:00
attilamolnar
f3d134a5b6
Get rid of the NICKForced extension
...
Don't run OnUserPreNick when the nick change is forced
2013-05-18 21:23:52 +02:00
Peter Powell
5c9427cde0
Remove the size argument from IsChannel and IsNick.
...
There was only one case (which was probably an error) where these
methods were not set to their ServerLimits value.
2013-05-18 19:11:07 +01:00
Daniel Vassdal
6153822a2d
Added a function to replace all the ugly sprintf-ing everywhere
2013-05-16 21:34:45 +02:00
Peter Powell
accccc212c
Replace some C-isms with C++-isms.
...
* 'const char*' to 'const std::string&'.
* snprintf to std::string concatenation.
* Replace duplicated OneOfMatches with InspIRCd::MatchMask.
2013-05-15 03:32:56 +01:00
Peter Powell
b89aa87280
Clean up cross-platform compatibility.
...
- Move compatibility macros to a new header file.
- Sort system include files in alphabetical order.
- Clean up signal handling (thanks to Adam).
2013-05-07 05:00:33 +02:00
Adam
8428bbb387
Modularize DNS
...
The DNS modules are temporarily in commands/ so they're loaded automatically
Thanks to Attila for helping with much of this.
2013-04-26 16:59:29 -05:00
Peter Powell
0d3a6719b8
Fix building with libc++.
...
- Purged std::tr1::strlower (was never used).
- Moved std::tr1::insensitive to irc::insensitive.
- Added TR1NS macro to point to the correct C++ TR1 namespace.
2013-04-19 01:34:07 +01:00
attilamolnar
48f7fa6b11
Extract UID/SID generation logic into a new class: UIDGenerator
2013-04-14 18:20:02 +02:00
attilamolnar
f8127cf8c5
Remove const char* versions of InspIRCd::FindNick()/FindNickOnly()/FindUUID()/FindChan()
2013-04-13 17:43:37 +02:00
Peter Powell
11cafc12d5
Tidy up source files:
...
- Use #pragma once instead of include guards.
- Move header files in src/modules to include/modules.
- Fixed various spacing issues.
2013-04-12 17:03:05 +01:00
Peter Powell
5c29c53f65
Convert ISUPPORT to use a map instead of a string.
2013-04-11 23:08:03 +01:00
attilamolnar
01b71ef43f
Move most whois related code from the core into cmd_whois
2013-04-09 18:36:49 +02:00
attilamolnar
ebe5b201aa
Migrate u_listmode.h into the core, change +b to use it
2013-04-08 23:13:24 +02:00
Peter Powell
362f3009ac
Merge inspircd_{config,version}.h into a single header file.
2013-04-05 16:39:40 +01:00
attilamolnar
bb3aa2fb37
Stop recreating hashmaps every hour, move garbage collection code related to local users to UserManager
2013-04-04 19:23:16 +02:00
attilamolnar
886f1ba488
Convert InspIRCd::Duration() to be static
2013-04-03 15:54:28 +02:00
Attila Molnar
66b90807bb
Merge pull request #452 from SaberUK/master+nuke-hashmap
...
Purge the deprecated hash_map from existance.
2013-04-01 09:50:50 -07:00
attilamolnar
713416ddfc
Change IsNickHandler()/IsIdentHandler()/IsChannelHandler() to use C++ strings as arguments instead of C strings
2013-04-01 16:20:35 +02:00
attilamolnar
6a080dfd91
Convert IsSID() to a static member function, modules shouldn't override it
2013-04-01 16:15:19 +02:00
attilamolnar
de9cf90b6b
Remove more deprecated code
...
- ConfigReader
- FloodQuitUserHandler
- IsValidModuleCommand
- CallCommandHandler
- DoCleanup from u_listmode.h
2013-04-01 16:10:45 +02:00
Attila Molnar
df2cbbe6e7
Merge pull request #454 from SaberUK/master+misc-improvements
...
Purge dead code and deprecated types.
2013-04-01 06:53:24 -07:00