]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Attila Molnar [Sat, 29 Mar 2014 13:15:56 +0000 (14:15 +0100)]
Build coremods on Windows, add general support to the cmake script for building modules consisting of multiple compilation units
Instead of special casing m_spanningtree create one project for each subdir in src/modules/ and src/coremods/
Attila Molnar [Fri, 28 Mar 2014 11:20:39 +0000 (12:20 +0100)]
Convert the global list of dynamic reference pointers to an intrusively linked list
Attila Molnar [Thu, 27 Mar 2014 14:41:47 +0000 (15:41 +0100)]
m_watch Validate targ before use, noticed while rewriting m_watch for 2.2
Attila Molnar [Wed, 26 Mar 2014 16:24:51 +0000 (17:24 +0100)]
m_globalload Don't pass a callback to ModuleManager::Reload() if reloading m_globalload
Attila Molnar [Tue, 25 Mar 2014 13:40:37 +0000 (14:40 +0100)]
m_httpd Fix typo noticed by @SaberUK
Attila Molnar [Tue, 25 Mar 2014 10:03:29 +0000 (11:03 +0100)]
Change storage of UserManager::all_opers to be a vector
Attila Molnar [Tue, 25 Mar 2014 10:02:44 +0000 (11:02 +0100)]
Add typedef OperList to UserManager for use with all_opers
Attila Molnar [Mon, 24 Mar 2014 15:50:48 +0000 (16:50 +0100)]
Add stdalgo::delete_all() that deletes all elements in a container
Attila Molnar [Mon, 24 Mar 2014 15:44:04 +0000 (16:44 +0100)]
Cull ident sockets instead of immediate delete, add stdalgo::culldeleter
Attila Molnar [Mon, 24 Mar 2014 15:39:20 +0000 (16:39 +0100)]
Make it possible to customize how SimpleExtItem should delete items
Attila Molnar [Mon, 24 Mar 2014 15:33:09 +0000 (16:33 +0100)]
Create the stdalgo namespace for container-related algorithms, add stdalgo::vector::swaperase()
Attila Molnar [Sun, 23 Mar 2014 21:10:04 +0000 (22:10 +0100)]
m_operprefix Don't set +y on the oper if hideoper is being unset due to deopering
Fixes issue #801 reported by @UselessOper
Attila Molnar [Mon, 17 Mar 2014 10:05:09 +0000 (11:05 +0100)]
Rewrite clone counting to use one map instead of two
Attila Molnar [Mon, 17 Mar 2014 10:04:22 +0000 (11:04 +0100)]
m_connectban Don't depend on the definition of clonemap
Attila Molnar [Sat, 15 Mar 2014 14:42:30 +0000 (15:42 +0100)]
Fix invalid iterator use when removing modes in ModuleManager::DoSafeUnload()
Attila Molnar [Sat, 15 Mar 2014 14:38:09 +0000 (15:38 +0100)]
Change allocation of InspIRCd::Timers to be physically part of the object containing it
Attila Molnar [Sat, 15 Mar 2014 14:29:25 +0000 (15:29 +0100)]
Change allocation of UserManager::clientlist to be physically part of the object containing it
Attila Molnar [Sat, 15 Mar 2014 14:21:18 +0000 (15:21 +0100)]
Add UserManager::GetUsers()
Attila Molnar [Fri, 14 Mar 2014 12:04:10 +0000 (13:04 +0100)]
Change allocation of UserManager::uuidlist to be physically part of the object containing it
Attila Molnar [Fri, 14 Mar 2014 11:59:19 +0000 (12:59 +0100)]
Change allocation of InspIRCd::chanlist to be physically part of the object containing it
Attila Molnar [Fri, 14 Mar 2014 11:56:20 +0000 (12:56 +0100)]
Add InspIRCd::GetChans(), remove ChannelCount()
Attila Molnar [Fri, 14 Mar 2014 11:50:14 +0000 (12:50 +0100)]
m_permchannels Remove pointless cleanup ceremony in cull()
Attila Molnar [Thu, 13 Mar 2014 14:41:10 +0000 (15:41 +0100)]
Fix NAMES list getting truncated on servers having an excessively long server name
Attila Molnar [Thu, 13 Mar 2014 14:37:19 +0000 (15:37 +0100)]
Backport "Refactor Channel::UserList() to use std::string"
This gets rid of questionable snprintf() usage, reported by @hifi
Backported commit:
8a06d54076551387f83a29360478ee6605e241b6
Attila Molnar [Wed, 12 Mar 2014 12:50:41 +0000 (13:50 +0100)]
Deduplicate and move the *MatchesEveryone() functions to core_xline
Attila Molnar [Tue, 11 Mar 2014 12:20:21 +0000 (13:20 +0100)]
cmd_names Allow opers having the channels/auspex priv to view the NAMES list of +s channels from outside
A version of the check removed by this commit is in Channel::UserList() which takes the priv into account
Discovered by @Cronus89
Attila Molnar [Mon, 10 Mar 2014 11:17:41 +0000 (12:17 +0100)]
Improve detection for non-cidr masks to prevent unwanted matches
Fixes issue #762 reported by @neoinr
Attila Molnar [Sun, 9 Mar 2014 16:17:10 +0000 (17:17 +0100)]
cmd_quit Display quit messages of remote users
Attila Molnar [Sun, 9 Mar 2014 16:08:55 +0000 (17:08 +0100)]
Move the wallops mode from the core into core_wallops
Peter Powell [Thu, 6 Mar 2014 21:43:36 +0000 (21:43 +0000)]
Make the maximum hostname length configurable in the config.
Peter Powell [Fri, 7 Mar 2014 15:47:52 +0000 (15:47 +0000)]
Fix m_permchannels not prepending the path when reading the config.
Attila Molnar [Fri, 7 Mar 2014 17:09:21 +0000 (18:09 +0100)]
Move admin settings into core_info
Attila Molnar [Fri, 7 Mar 2014 17:03:01 +0000 (18:03 +0100)]
Move {prefix|suffix|fixed}{quit|part} into core_user
Attila Molnar [Fri, 7 Mar 2014 16:41:20 +0000 (17:41 +0100)]
Read the die and restart password and their hash type on demand
Attila Molnar [Thu, 6 Mar 2014 11:24:36 +0000 (12:24 +0100)]
Update detection in module loading commands that relied on old command module names
Attila Molnar [Thu, 6 Mar 2014 11:20:19 +0000 (12:20 +0100)]
Move UNLOADMODULE handler into core_loadmodule
Attila Molnar [Thu, 6 Mar 2014 11:12:07 +0000 (12:12 +0100)]
Create the core_stub module
This handles CONNECT, LINKS, SERVER and SQUIT
Attila Molnar [Wed, 5 Mar 2014 15:30:00 +0000 (16:30 +0100)]
Load core_*.so instead of cmd_*.so
Attila Molnar [Wed, 5 Mar 2014 15:28:29 +0000 (16:28 +0100)]
Integrate coremods into the build system
Attila Molnar [Wed, 5 Mar 2014 15:20:41 +0000 (16:20 +0100)]
Create the core_xline module
Attila Molnar [Wed, 5 Mar 2014 15:17:33 +0000 (16:17 +0100)]
Create the core_user module
Attila Molnar [Wed, 5 Mar 2014 15:15:20 +0000 (16:15 +0100)]
Create the core_oper module
Attila Molnar [Wed, 5 Mar 2014 15:10:50 +0000 (16:10 +0100)]
Create the core_info module
Attila Molnar [Wed, 5 Mar 2014 15:04:06 +0000 (16:04 +0100)]
Create the core_channel module
Attila Molnar [Wed, 5 Mar 2014 14:41:06 +0000 (15:41 +0100)]
Move src/commands/cmd_*.cpp to src/coremods[/core_*]/
Attila Molnar [Tue, 4 Mar 2014 12:30:56 +0000 (13:30 +0100)]
Remove out of date doc and fix typo in commands/cmd_*.cpp
Attila Molnar [Mon, 3 Mar 2014 14:10:41 +0000 (15:10 +0100)]
m_spanningtree Remove remains of the KeepNickTS workaround
Attila Molnar [Mon, 3 Mar 2014 14:07:17 +0000 (15:07 +0100)]
Update nick timestamps in User::ChangeNick(), pass the new TS in a parameter
Attila Molnar [Sun, 2 Mar 2014 16:04:51 +0000 (17:04 +0100)]
m_spanningtree Do pointer comparison before deleting one of the pointers in TreeSocket::Squit()
While the previous code worked fine in practice, it was incorrect in theory
Attila Molnar [Sun, 2 Mar 2014 16:00:12 +0000 (17:00 +0100)]
m_spanningtree Don't send snotices to servers about remote servers splitting
The snotice is sent to opers when the SQUIT is processed by their server
Attila Molnar [Sat, 1 Mar 2014 12:04:10 +0000 (13:04 +0100)]
Fix NULL dereference on rehash when there is a fatal error in the configuration of connect classes
Fixes issue #780 reported by @JDowny
Attila Molnar [Fri, 28 Feb 2014 16:16:29 +0000 (17:16 +0100)]
Merge pull request #784 from ShutterQuick/patch-1
Fix build problem on Solaris
Attila Molnar [Fri, 28 Feb 2014 15:22:41 +0000 (16:22 +0100)]
Merge pull request #783 from SaberUK/insp20+solaris-hates-posix
Fix Solaris not being able to find modules without pkg-config.
ShutterQuick [Thu, 27 Feb 2014 17:45:16 +0000 (09:45 -0800)]
Fix build problem on Solaris
-rpath only takes one dash
Fixes the Solaris build \o/
'''
<fraggeln> SaberUK: http://m.theo.nu/jenkins/job/InspIRCd-2.0/435/label=solaris/console <--
<fraggeln> do you have any clue on why?
<@Shutter> Hmm. Where did that extra - come from.
<fraggeln> Shutter: no idea :)
[...]
<fraggeln> Shutter: sub make_rpath($;$) <-- in make/utilities.pm
<fraggeln> thats where that extra - is'''
Peter Powell [Thu, 27 Feb 2014 17:05:08 +0000 (17:05 +0000)]
Fix Solaris not being able to find modules without pkg-config.
Attila Molnar [Thu, 27 Feb 2014 16:16:48 +0000 (17:16 +0100)]
Remove REG_ALL checks from User::SharesChannelWith()
These checks are never true currently and even if one or both users are unregistered proceeding is harmless
Attila Molnar [Thu, 27 Feb 2014 16:10:41 +0000 (17:10 +0100)]
cmd_topic Remove redundant NULL check
Googolplexed [Thu, 27 Feb 2014 11:55:20 +0000 (11:55 +0000)]
Give m_connectban a configurable ban message
Daniel Vassdal [Tue, 12 Nov 2013 18:10:25 +0000 (10:10 -0800)]
Simplify /SAJOIN syntax and add permission for joining other users.
Attila Molnar [Wed, 26 Feb 2014 12:37:10 +0000 (13:37 +0100)]
m_chanfilter Remove needless mode parameter is empty check
Attila Molnar [Wed, 26 Feb 2014 12:30:31 +0000 (13:30 +0100)]
m_cycle Remove redundant IS_LOCAL() check
Attila Molnar [Tue, 25 Feb 2014 15:52:30 +0000 (16:52 +0100)]
cmd_kill Remove now needless check that prevented KILLing the same user twice
Attila Molnar [Tue, 25 Feb 2014 15:51:09 +0000 (16:51 +0100)]
cmd_kill Hide server notices if the source is ulined
Issue #742
Attila Molnar [Tue, 25 Feb 2014 15:48:38 +0000 (16:48 +0100)]
m_svshold Hide server notices by default
Issue #742
Attila Molnar [Sun, 23 Feb 2014 11:24:14 +0000 (12:24 +0100)]
Throw an exception if ModeParser::AddMode() fails
Googolplexed [Sun, 23 Feb 2014 06:10:47 +0000 (06:10 +0000)]
Moving CGIIRC to a new snomask (w)
Attila Molnar [Sat, 22 Feb 2014 13:00:04 +0000 (14:00 +0100)]
Add ModeParser::GetModes(), returns all user/chanmodes
Attila Molnar [Fri, 21 Feb 2014 14:11:24 +0000 (15:11 +0100)]
Index Channel::modes and User::modes with the id of the mode instead of its letter
Attila Molnar [Fri, 21 Feb 2014 13:42:16 +0000 (14:42 +0100)]
Assign an id to user modes, parameter chanmodes and simple chanmodes
Attila Molnar [Fri, 21 Feb 2014 13:18:49 +0000 (14:18 +0100)]
Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt
Adam [Thu, 20 Feb 2014 18:03:31 +0000 (13:03 -0500)]
Fix /who on opers incorrectly showing +i opers to
users without the privilege to see them, introduced in
b328aad53b044bd9cf9720dfed216b0ee61c8e31
Attila Molnar [Thu, 20 Feb 2014 12:34:27 +0000 (13:34 +0100)]
Add a ModeParser::FindMode() overload that takes a mode name and a mode type
Attila Molnar [Thu, 20 Feb 2014 12:20:21 +0000 (13:20 +0100)]
Create a name -> ModeHandler* map
Attila Molnar [Tue, 18 Feb 2014 23:15:57 +0000 (00:15 +0100)]
Merge pull request #772 from SaberUK/insp20+llvm34
Fix various problems detected by Clang 3.4.
Attila Molnar [Tue, 18 Feb 2014 12:47:10 +0000 (13:47 +0100)]
Replace ModeMasks with a two-dimensional array
Attila Molnar [Tue, 18 Feb 2014 12:41:01 +0000 (13:41 +0100)]
Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType
Attila Molnar [Sat, 15 Feb 2014 13:38:24 +0000 (14:38 +0100)]
Add ParamModeBase and ParamMode, change all parameter modes to inherit from ParamMode
- Type of the extension used to store data is a template parameter
- The extension is automatically unset when the mode is unset
- Handlers inheriting from ParamMode have to provide OnSet() and SerializeParam(); may optionally provide OnUnset()
- Transparently handle the case when OnSet() modifies the mode parameter
- Remove Channel::custom_mode_params map; ask the mode handlers to serialize their parameters instead
Attila Molnar [Sat, 15 Feb 2014 12:51:35 +0000 (13:51 +0100)]
Add ModeHandler::IsParameterMode() and MC_PARAM
Attila Molnar [Fri, 14 Feb 2014 11:16:31 +0000 (12:16 +0100)]
Move GetAllPrefixChars() from Channel to Membership
Attila Molnar [Fri, 14 Feb 2014 11:15:00 +0000 (12:15 +0100)]
Move GetPrefixChar() from Channel to Membership
Attila Molnar [Fri, 14 Feb 2014 11:00:06 +0000 (12:00 +0100)]
Return a Membership* from get_first_visible_channel() in cmd_who and pass that to modules
Peter Powell [Thu, 13 Feb 2014 16:53:49 +0000 (16:53 +0000)]
Remove support for advertising the SSL ports in RPL_ISUPPORT.
- No other IRC servers implement this.
- No IRC clients I can find support this.
Attila Molnar [Thu, 13 Feb 2014 13:10:01 +0000 (14:10 +0100)]
socketengine_select Reset the values in the timeval struct on *nix before select()
Adam [Thu, 13 Feb 2014 04:34:01 +0000 (23:34 -0500)]
Remove redundant null pointer check from m_ldapauth
Adam [Thu, 13 Feb 2014 04:33:12 +0000 (23:33 -0500)]
Wait for the manager bind to come back before sending search in LDAP modules
Attila Molnar [Tue, 11 Feb 2014 13:08:11 +0000 (14:08 +0100)]
m_operjoin Remove duplicated code
Attila Molnar [Tue, 11 Feb 2014 13:00:05 +0000 (14:00 +0100)]
m_sqlauth Allow the client certificate fingerprint to be used in the SQL query
Idea by @m4z
Peter Powell [Mon, 10 Feb 2014 20:08:56 +0000 (20:08 +0000)]
Fix various problems detected by Clang 3.4.
- cidr.cpp: remove inverted_bits; unused since
9fad3ecb9215a0034bf407f192926b04cb5efaed .
- cmd_stats.cpp: remove needless inversion and comparison to 0.
- inspircd.cpp: remove needless comparison to 0.
- socket.cpp: remove all_zero; unused since
03a1bf15b1da7643b237c22db1a478916a976ccf .
Attila Molnar [Mon, 10 Feb 2014 12:56:14 +0000 (13:56 +0100)]
Replace DummyExtItem with a flag in Extensible
Attila Molnar [Sun, 9 Feb 2014 16:31:57 +0000 (17:31 +0100)]
Store the EventHandler* in the kevent/epoll_event/portev struct
This removes the need to call GetRef() for every socket in DispatchEvents()
Attila Molnar [Sun, 9 Feb 2014 16:17:04 +0000 (17:17 +0100)]
Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)
Adam [Wed, 5 Feb 2014 17:58:17 +0000 (12:58 -0500)]
Queue changes in socketengine_kqueue and submit them as we poll for new events
Attila Molnar [Sat, 8 Feb 2014 22:01:44 +0000 (23:01 +0100)]
Change all socketengine methods to be static
Attila Molnar [Sat, 8 Feb 2014 21:40:30 +0000 (22:40 +0100)]
Move socketengine stats into a new class
Attila Molnar [Sat, 8 Feb 2014 21:34:11 +0000 (22:34 +0100)]
Update SocketEngine::CurrentSetSize in AddFdRef()/DelFdRef()
Attila Molnar [Sat, 8 Feb 2014 21:25:06 +0000 (22:25 +0100)]
Rename SocketEngine::AddFd() and DelFd() to AddFdRef() and DelFdRef()
Attila Molnar [Sat, 8 Feb 2014 21:20:05 +0000 (22:20 +0100)]
Move variables in socketengines
Move timespec to DispatchEvents() in kqueue, there is no reason for it to be a member variable
Attila Molnar [Sat, 8 Feb 2014 12:16:31 +0000 (13:16 +0100)]
Replace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME define
Attila Molnar [Sat, 8 Feb 2014 12:10:09 +0000 (13:10 +0100)]
Change SocketEngine functions that do not require an instance to be static
Attila Molnar [Fri, 7 Feb 2014 17:21:01 +0000 (18:21 +0100)]
Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is defined