11327 Commits

Author SHA1 Message Date
attilamolnar
295b3e7ba1 Fix clang warning about IsOper() 2013-04-11 21:58:23 +02:00
Attila Molnar
c66ce555ba Merge pull request #484 from SaberUK/insp20+fix-modulemanager
Fix ModuleManager error caused by a lack of arguments.
2013-04-10 12:28:22 -07:00
Peter Powell
ac8a394a5c Fix ModuleManager error caused by a lack of arguments. 2013-04-10 20:25:32 +01:00
attilamolnar
77e8e0bcca Run OnUnloadModule hook before starting to unregister services provided by the module 2013-04-10 19:28:54 +02:00
attilamolnar
01ea7ce9c3 BanCache: Move expiration code into a function, call it from RemoveEntries() 2013-04-10 19:27:24 +02:00
attilamolnar
2b1328c3f4 BanCache: Remove BanCacheManager::RehashCache()
The function was never called
2013-04-10 19:27:24 +02:00
attilamolnar
05ea981523 BanCache: Simplify BanCacheManager::RemoveEntries() 2013-04-10 19:27:24 +02:00
attilamolnar
a0fdf5fcd5 BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()
The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit()
2013-04-10 19:27:24 +02:00
attilamolnar
239a3bb0f8 BanCache: Do one hash lookup in BanCacheManager::AddHit() 2013-04-10 19:27:24 +02:00
attilamolnar
c5d1a7843e BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one BanCacheHit constructor is enough 2013-04-10 19:27:23 +02:00
attilamolnar
ca0083cba9 Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper() 2013-04-10 17:28:08 +02:00
attilamolnar
65072d44f2 m_spanningtree Create new TreeServers for incoming connections only when they've accepted our credentials, not when they send SERVER 2013-04-10 17:05:13 +02:00
Adam
0f8f3af9ac Update Window's .gitignore 2013-04-10 02:39:43 -05:00
attilamolnar
99461ac66d Fix ListModeBase on Windows 2013-04-09 21:41:18 +02:00
attilamolnar
ac705cd20e Remove some uline checks that ran after an IS_LOCAL() check 2013-04-09 18:57:05 +02:00
attilamolnar
01b71ef43f Move most whois related code from the core into cmd_whois 2013-04-09 18:36:49 +02:00
attilamolnar
8c4dfd8add XLine: Provide a default implementation for DisplayExpiry() 2013-04-09 18:30:50 +02:00
attilamolnar
98beba078b ListModeBase: Cache max items per channel 2013-04-08 23:13:25 +02:00
attilamolnar
9de86c34d4 ListModeBase: Minor changes to original u_listmode code
- Add constructors to ListItem, ListLimit
- Rename fields in ListItem
- Store time as time_t instead of string
- Store limits in a vector instead of a list
- Don't deallocate the list when it becomes empty
2013-04-08 23:13:25 +02:00
attilamolnar
ebe5b201aa Migrate u_listmode.h into the core, change +b to use it 2013-04-08 23:13:24 +02:00
attilamolnar
0ce252f05c Add builtin modes using AddService() 2013-04-08 23:13:24 +02:00
attilamolnar
1bf6cf727d Unite include/modes/*.h into include/builtinmodes.h 2013-04-08 23:13:24 +02:00
attilamolnar
9eeae94195 Allow dynamic references to reference ServiceProviders, introduce ModeReference
Mode handlers can be referenced using mode/<modename>
2013-04-08 23:13:24 +02:00
attilamolnar
927937d610 Rework dynamic_reference management, introduce dynamic_reference_nocheck
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-08 23:13:24 +02:00
attilamolnar
9fc218c005 Remove OnAddBan and OnDelBan hooks 2013-04-08 21:55:53 +02:00
Peter Powell
745378a329 Add support for generating dhparams with GnuTLS to genssl. 2013-04-08 21:26:14 +02:00
Attila Molnar
f16d82607c Merge pull request #475 from SaberUK/master+default-to-xml-config
Default to the XML config format.
2013-04-06 04:56:42 -07:00
Peter Powell
2ae42bbb1f Default to the XML config format. 2013-04-06 11:47:56 +01:00
Attila Molnar
bc148f5227 Merge pull request #474 from SaberUK/master+better-config-deprecation
Improve the config deprecation system.
2013-04-05 18:22:27 -07:00
Peter Powell
8db97419ef Add the ability to deprecate config values as well as keys. 2013-04-06 02:18:44 +01:00
Peter Powell
43f0e503e1 Purge the 1.1 config deprecations. 2013-04-06 01:03:30 +01:00
Attila Molnar
7348bf71fa Merge pull request #472 from SaberUK/master+merge-headers
Merge inspircd_{config,version}.h into a single header file.
2013-04-05 14:14:50 -07:00
attilamolnar
0fa365373e Don't attempt to unload or reload modules that are waiting to be unloaded 2013-04-05 18:23:44 +02:00
attilamolnar
08a566b5d7 Fix LUSERS not working in a PURE_STATIC build 2013-04-05 18:21:16 +02:00
Peter Powell
362f3009ac Merge inspircd_{config,version}.h into a single header file. 2013-04-05 16:39:40 +01:00
Attila Molnar
8e133075f1 Merge pull request #465 from Shawn-Smith/master+ServicesOperGrammar
[2.2] Fixed grammar issue
2013-04-05 07:58:19 -07:00
Shawn Smith
45b6881967 Fixed grammar in whois output for +k'd services. 2013-04-05 10:54:49 -04: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
7b823baf68 Line ending conversion 2013-04-04 19:21:03 +02:00
attilamolnar
f86f450701 Move whowas settings into cmd_whowas from ConfigReader 2013-04-04 19:05:20 +02:00
attilamolnar
8c08130e19 Make cmd_whowas act like a module, remove special handling 2013-04-04 19:05:20 +02:00
attilamolnar
886f1ba488 Convert InspIRCd::Duration() to be static 2013-04-03 15:54:28 +02:00
Attila Molnar
2bcb73e833 Merge pull request #460 from SaberUK/master+genssl-bugfix
Fix a small typo in genssl.
2013-04-02 13:21:31 -07:00
Peter Powell
14d2f191d3 Fix a small typo in genssl. 2013-04-02 21:17:11 +01:00
Attila Molnar
e440ec20a1 Merge pull request #459 from ChrisTX/insp20+fixgeoip
m_geoip: Fix compilation
2013-04-02 12:53:37 -07:00
ChrisTX
fc1b0f8d9d m_geoip: Fix compilation 2013-04-02 21:51:25 +02:00
Attila Molnar
39d7c35914 Merge pull request #456 from SaberUK/master+genssl
Extract SSL generation to a tool which can be shipped by distros.
2013-04-02 10:28:04 -07:00
Peter Powell
448c50fa4d Extract SSL generation to a tool which can be shipped by distros. 2013-04-02 16:34:28 +01:00
attilamolnar
26e7bb0b9a Whitespace and empty destructor removal, minor coding style changes 2013-04-01 21:56:13 +02:00
attilamolnar
8584cc23f4 Ignore empty sid in ServerConfig::Fill() 2013-04-01 21:31:27 +02:00