summaryrefslogtreecommitdiff
path: root/include/modules.h
AgeCommit message (Collapse)Author
2014-06-24Change allocation of InspIRCd::Modules to be physically part of the object ↵Attila Molnar
containing it using fakederef
2014-06-20Change the type of the user parameter in the OnUserPreNick() hook from User ↵Attila Molnar
to LocalUser No remote users were passed to this hook before. Remove needless IS_LOCAL() checks.
2014-05-23Prefix all definitions in config.h to avoid potential collisions.Peter Powell
2014-04-20Document parameters and return value for the OnNamesListItem() hookAttila Molnar
2014-04-20Change the OnNamesListItem() hook to return ModResultAttila Molnar
Return MOD_RES_DENY to exclude the user from the NAMES list
2014-02-21Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcntAttila Molnar
2014-02-14Return a Membership* from get_first_visible_channel() in cmd_who and pass ↵Attila Molnar
that to modules
2014-02-07Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is definedAttila Molnar
2014-01-25Add Channel* parameter to OnSendWhoLineAttila Molnar
2014-01-24Convert UserChanList to an intrusively linked listAttila Molnar
2014-01-22Split IOHook into IOHook and IOHookProviderAttila Molnar
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.
2014-01-05Move server description field from TreeServer into Server; remove ↵Attila Molnar
OnGetServerDescription hook
2013-12-18Clean up CoreExceptionAttila Molnar
- Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
2013-12-15Move stuff around a bit:Peter Powell
- 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-09-13Pass an interface to the OnSync hooksattilamolnar
Remove Module::ProtoSendMetaData()
2013-09-12Send ListModeBase modes implicitly on channel syncattilamolnar
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
2013-09-08Hide all symbols that aren't exported explicitlyattilamolnar
In addition to reducing the sizes of all binaries this also helps the optimizer
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-09-08Deduplicate code in modmanager_static and modmanager_dynamicattilamolnar
2013-09-08Remove ModuleManager::ModCount and GetCount()attilamolnar
2013-09-08Fix module loading in PURE_STATIC buildsattilamolnar
2013-08-30Remove ModuleManager::GetAllModuleNames(), use GetModules() insteadattilamolnar
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-08Fix a couple of issuesattilamolnar
- 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-04Automatically attach modules to eventsattilamolnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-07-19Move dynamic_reference and related classes to dynref.hattilamolnar
2013-06-21Fix Doxygen comments.Peter Powell
2013-06-13Replace void* dest and target_type parameters of OnMode with a User* and a ↵attilamolnar
Channel*
2013-06-12Get rid of the OnRemoteKill hook, make use of GetRouting() and TR_CUSTOM to ↵attilamolnar
route KILLs
2013-06-12Change command name parameter of OnPostCommand to be a Command*attilamolnar
2013-06-07Remove deprecated Request cross-module communication mechanismattilamolnar
2013-06-07Create IOHook interface (extracted from Module)attilamolnar
2013-06-02Route WALLOPS like a regular command, remove OnWallops hookattilamolnar
2013-05-27Clean up the FileReader class and all of the modules that use it.Peter Powell
- 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.
2013-05-21Merge pull request #545 from SaberUK/master+logging-cleanupAttila Molnar
Clean up the logging system (part 1 of 2).
2013-05-20Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵attilamolnar
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
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-04-28Merge insp20attilamolnar
2013-04-26Modularize DNSAdam
The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.
2013-04-13OnUserPreJoin is a local-only hook, change User* parameter to LocalUser*attilamolnar
2013-04-12Tidy up source files:Peter Powell
- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-11Convert ISUPPORT to use a map instead of a string.Peter Powell
2013-04-08Allow dynamic references to reference ServiceProviders, introduce ModeReferenceattilamolnar
Mode handlers can be referenced using mode/<modename>
2013-04-08Rework dynamic_reference management, introduce dynamic_reference_nocheckattilamolnar
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
2013-04-08Remove OnAddBan and OnDelBan hooksattilamolnar
2013-04-05Don't attempt to unload or reload modules that are waiting to be unloadedattilamolnar
2013-04-01Remove more deprecated codeattilamolnar
- ConfigReader - FloodQuitUserHandler - IsValidModuleCommand - CallCommandHandler - DoCleanup from u_listmode.h
2013-04-01Purge the deprecated chanprotect module.Peter Powell