Attila Molnar
7bb75e575b
Allow modules to be called as "foo" instead of "m_foo.so"
2015-05-20 15:02:24 +02:00
Attila Molnar
00c0409dd4
Remove support for non-unloadable (VF_STATIC) modules
...
No module we ship uses this flag and new modules should not use it either to make hotfixing possible
2015-05-12 23:42:20 +02:00
Attila Molnar
8f34594cb7
Move OnWhois* events to core_whois, add Whois::Context
...
Remove InspIRCd::SendWhoisLine()
2015-04-28 15:16:22 +02:00
Attila Molnar
8f5efbc7aa
Merge insp20
2015-04-20 17:40:12 +02:00
Attila Molnar
7bea24293a
Eliminate constant return value of the all events version of ModuleManager::SetPriority()
2015-02-15 17:58:47 +01:00
Attila Molnar
bfc1abbcad
Convert mods calling the old compat wrapper of ModuleManager::SetPriority() to use the current method, remove wrapper
2015-02-15 17:56:01 +01:00
Attila Molnar
9597d205e7
Remove I_BEGIN from enum Implementation
2015-02-15 17:50:41 +01:00
Attila Molnar
0204f2254d
Remove class Event and the OnEvent hook
2015-02-11 17:24:14 +01:00
Peter Powell
f5519a585f
Fix modules not being versioned on Windows.
2015-01-17 15:31:35 +00:00
Attila Molnar
ae10286658
Remove the unused OnGlobalOper hook
2015-01-10 14:30:41 +01:00
Peter Powell
6935ce2956
Avoid calling methods on NULL pointers wherever possible.
...
The trick we use to allow this is undefined behaviour and is not
liked by LLVM. We should stop using it but it has the potential to
break to many things for a minor release.
2014-10-13 06:18:14 +01:00
Attila Molnar
3eda212c2a
Migrate code from ModeParser into cmd_mode (core_user)
...
- Process() that takes a std::vector<std::string>
- DisplayCurrentModes()
- DisplayListModes()
2014-09-04 13:30:01 +02:00
Attila Molnar
5f03134983
Pass Modes::ChangeList references to the OnPreMode hook, make it modifiable
...
This gets rid of the duplicated mode parsing logic in m_namedmodes
2014-09-04 12:58:25 +02:00
Attila Molnar
8d066e557e
Pass the modes to the OnMode hook as a Modes::ChangeList, pass ModeProcessFlags too
2014-09-03 14:15:18 +02:00
Attila Molnar
a3d2b44757
Change allocation of InspIRCd::Modules to be physically part of the object containing it using fakederef
2014-06-24 12:16:57 +02:00
Attila Molnar
1442193c79
Change the type of the user parameter in the OnUserPreNick() hook from User to LocalUser
...
No remote users were passed to this hook before.
Remove needless IS_LOCAL() checks.
2014-06-20 16:20:19 +02:00
Peter Powell
e3bcf95ee9
Prefix all definitions in config.h to avoid potential collisions.
2014-05-23 14:13:51 +02:00
Attila Molnar
5b3bc00fb4
Document parameters and return value for the OnNamesListItem() hook
2014-04-20 14:12:59 +02:00
Attila Molnar
5ebb49de65
Change the OnNamesListItem() hook to return ModResult
...
Return MOD_RES_DENY to exclude the user from the NAMES list
2014-04-20 14:05:21 +02:00
Attila Molnar
b65fb065b5
Fix undefined symbol error on module load if compiled with Clang 3.4
...
Fixes issue #803 reported by @SaberUK
2014-04-19 17:10:01 +02:00
Attila Molnar
9e123ad121
Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt
2014-02-21 14:18:49 +01:00
Attila Molnar
51b5f06c48
Return a Membership* from get_first_visible_channel() in cmd_who and pass that to modules
2014-02-14 12:00:06 +01:00
Attila Molnar
5b6ae9c542
Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is defined
2014-02-07 18:21:01 +01:00
Attila Molnar
1db0e984be
Add Channel* parameter to OnSendWhoLine
2014-01-25 12:40:21 +01:00
Attila Molnar
932e8d13f8
Convert UserChanList to an intrusively linked list
2014-01-24 12:58:01 +01:00
Attila Molnar
99f79a4e5c
Split IOHook into IOHook and IOHookProvider
...
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-22 19:10:01 +01:00
Attila Molnar
89510c143f
Bump API version because of 3f4d54eb031f1cd6b016dfe1f768ed86303e3856
2014-01-21 14:13:02 +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
1e8389b27f
Clean up CoreException
...
- Remove default constructor
- Replace virtual functions returning C strings with functions returning const std::string refs
2013-12-18 16:20:40 +01: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
cc74fb0be4
Pass an interface to the OnSync hooks
...
Remove Module::ProtoSendMetaData()
2013-09-13 12:15:44 +02:00
attilamolnar
58d7827bb1
Send ListModeBase modes implicitly on channel sync
...
Remove Module::ProtoSendMode() and ListModeBase::DoSyncChannel()
2013-09-12 14:44:17 +02:00
attilamolnar
ba7431b4fd
Hide all symbols that aren't exported explicitly
...
In addition to reducing the sizes of all binaries this also helps the optimizer
2013-09-08 17:21:37 +02:00
attilamolnar
992674362c
Automatically register ServiceProviders created by modules
2013-09-08 17:11:08 +02:00
attilamolnar
8a64bd3a0a
Deduplicate code in modmanager_static and modmanager_dynamic
2013-09-08 17:10:15 +02:00
attilamolnar
e6e3ae88fb
Remove ModuleManager::ModCount and GetCount()
2013-09-08 16:57:03 +02:00
attilamolnar
fabe111fb9
Fix module loading in PURE_STATIC builds
2013-09-08 16:54:33 +02:00
attilamolnar
d349f981fb
Remove ModuleManager::GetAllModuleNames(), use GetModules() instead
2013-08-30 13:15:10 +02:00
attilamolnar
c202dea024
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on rehash
...
This eliminates the need for calling OnRehash() in init()
2013-08-30 13:15:10 +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
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
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
ac72c53ce2
Replace void* dest and target_type parameters of OnMode with a User* and a Channel*
2013-06-13 18:20:10 +02:00
attilamolnar
623ba6ae49
Get rid of the OnRemoteKill hook, make use of GetRouting() and TR_CUSTOM to route KILLs
2013-06-12 21:22:37 +02:00
attilamolnar
98f3924960
Change command name parameter of OnPostCommand to be a Command*
2013-06-12 20:08:22 +02:00
attilamolnar
78900eaa5e
Remove deprecated Request cross-module communication mechanism
2013-06-07 01:00:10 +02:00
attilamolnar
79db1cf848
Create IOHook interface (extracted from Module)
2013-06-07 01:00:10 +02:00
attilamolnar
ca4c4a6798
Route WALLOPS like a regular command, remove OnWallops hook
2013-06-02 18:05:01 +02:00