| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
that to modules
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Create one IOHook instance for each hooked socket which contains all the
hook specific data and read/write/close functions, removing the need for
the "issl_session" array in SSL modules.
Register instances of the IOHookProvider class in the core and use them to
create specialized IOHook instances (OnConnect/OnAccept).
Remove the OnHookIO hook, add a dynamic reference to ListenSocket that
points to the hook provider (if any) to use for incoming connections on
that socket.
For outgoing connections modules still have to find the IOHookProvider
they want to use themselves but instead of calling AddIOHook(hookprov),
now they have to call IOHookProvider::OnConnect() after the connection
has been established.
|
| |\| |
|
| | |
| |
| |
| | |
When a module quits a user or destroys a channel in OnCleanup() the object is no longer in the container being iterated by the time OnCleanup() returns
|
| | | |
|
| | |
| |
| |
| | |
OnGetServerDescription hook
|
| | |
| |
| |
| |
| | |
- Fix resource leak in InspIRCd::Format()
- Explicitly set NewServices to NULL before the object it points to goes out of scope
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
| |
| |
| | |
Remove Module::ProtoSendMetaData()
|
| | |
| |
| |
| | |
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
and on rehash
This eliminates the need for calling OnRehash() in init()
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Channel*
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.)
|
| | |
| |
| |
| | |
route KILLs
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
- Modules which use this class will now have to catch a
CoreException when opening files if they wish to ignore
the failed loading of a file.
- m_randquote has been cleaned up massively and the RANDQUOTE
command has been removed as it was pretty much useless.
|
| |\ \
| | |
| | | |
Clean up the logging system (part 1 of 2).
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| | |
OnUserMessage and OnUserPreMessage
All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
|
| |\| |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
The DNS modules are temporarily in commands/ so they're loaded automatically
Thanks to Attila for helping with much of this.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
the module
|
| | |
| |
| |
| | |
Mode handlers can be referenced using mode/<modename>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
New dynamic references are now resolved at construction and all of them are re-resolved when a relevant service is added or removed; resolution is no longer done in operator->
dynamic_reference_nocheck is a variant of dynamic_reference that does not check for value being null in operator-> / operator*
dynamic_reference still throws an exception when used in this case
Both kinds of dynamic references support .check(): an exception is thrown if this is called when value is null
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
- ConfigReader
- FloodQuitUserHandler
- IsValidModuleCommand
- CallCommandHandler
- DoCleanup from u_listmode.h
|
| |/
|
|
| |
Channel::JoinUser() to std::string from char*
|
| |
|
|
|
|
| |
already exists
Previously this silently failed
|