]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
10 years agoChange allocation of UserManager::clientlist to be physically part of the object...
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

10 years agoAdd UserManager::GetUsers()
Attila Molnar [Sat, 15 Mar 2014 14:21:18 +0000 (15:21 +0100)]
Add UserManager::GetUsers()

10 years agoChange allocation of UserManager::uuidlist to be physically part of the object contai...
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

10 years agoChange allocation of InspIRCd::chanlist 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

10 years agoAdd InspIRCd::GetChans(), remove ChannelCount()
Attila Molnar [Fri, 14 Mar 2014 11:56:20 +0000 (12:56 +0100)]
Add InspIRCd::GetChans(), remove ChannelCount()

10 years agom_permchannels Remove pointless cleanup ceremony in cull()
Attila Molnar [Fri, 14 Mar 2014 11:50:14 +0000 (12:50 +0100)]
m_permchannels Remove pointless cleanup ceremony in cull()

10 years agoDeduplicate and move the *MatchesEveryone() functions to core_xline
Attila Molnar [Wed, 12 Mar 2014 12:50:41 +0000 (13:50 +0100)]
Deduplicate and move the *MatchesEveryone() functions to core_xline

10 years agocmd_quit Display quit messages of remote users
Attila Molnar [Sun, 9 Mar 2014 16:17:10 +0000 (17:17 +0100)]
cmd_quit Display quit messages of remote users

10 years agoMove the wallops mode from the core into core_wallops
Attila Molnar [Sun, 9 Mar 2014 16:08:55 +0000 (17:08 +0100)]
Move the wallops mode from the core into core_wallops

10 years agoMake the maximum hostname length configurable in the config.
Peter Powell [Thu, 6 Mar 2014 21:43:36 +0000 (21:43 +0000)]
Make the maximum hostname length configurable in the config.

10 years agoFix m_permchannels not prepending the path when reading 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.

10 years agoMove admin settings into core_info
Attila Molnar [Fri, 7 Mar 2014 17:09:21 +0000 (18:09 +0100)]
Move admin settings into core_info

10 years agoMove {prefix|suffix|fixed}{quit|part} into core_user
Attila Molnar [Fri, 7 Mar 2014 17:03:01 +0000 (18:03 +0100)]
Move {prefix|suffix|fixed}{quit|part} into core_user

10 years agoRead the die and restart password and their hash type on demand
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

10 years agoUpdate detection in module loading commands that relied on old command module names
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

10 years agoMove UNLOADMODULE handler into core_loadmodule
Attila Molnar [Thu, 6 Mar 2014 11:20:19 +0000 (12:20 +0100)]
Move UNLOADMODULE handler into core_loadmodule

10 years agoCreate the core_stub module
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

10 years agoLoad core_*.so instead of cmd_*.so
Attila Molnar [Wed, 5 Mar 2014 15:30:00 +0000 (16:30 +0100)]
Load core_*.so instead of cmd_*.so

10 years agoIntegrate coremods into the build system
Attila Molnar [Wed, 5 Mar 2014 15:28:29 +0000 (16:28 +0100)]
Integrate coremods into the build system

10 years agoCreate the core_xline module
Attila Molnar [Wed, 5 Mar 2014 15:20:41 +0000 (16:20 +0100)]
Create the core_xline module

10 years agoCreate the core_user module
Attila Molnar [Wed, 5 Mar 2014 15:17:33 +0000 (16:17 +0100)]
Create the core_user module

10 years agoCreate the core_oper module
Attila Molnar [Wed, 5 Mar 2014 15:15:20 +0000 (16:15 +0100)]
Create the core_oper module

10 years agoCreate the core_info module
Attila Molnar [Wed, 5 Mar 2014 15:10:50 +0000 (16:10 +0100)]
Create the core_info module

10 years agoCreate the core_channel module
Attila Molnar [Wed, 5 Mar 2014 15:04:06 +0000 (16:04 +0100)]
Create the core_channel module

10 years agoMove src/commands/cmd_*.cpp to src/coremods[/core_*]/
Attila Molnar [Wed, 5 Mar 2014 14:41:06 +0000 (15:41 +0100)]
Move src/commands/cmd_*.cpp to src/coremods[/core_*]/

10 years agoRemove out of date doc and fix typo in commands/cmd_*.cpp
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

10 years agom_spanningtree Remove remains of the KeepNickTS workaround
Attila Molnar [Mon, 3 Mar 2014 14:10:41 +0000 (15:10 +0100)]
m_spanningtree Remove remains of the KeepNickTS workaround

10 years agoUpdate nick timestamps in User::ChangeNick(), pass the new TS in a parameter
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

10 years agoRemove REG_ALL checks from User::SharesChannelWith()
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

10 years agocmd_topic Remove redundant NULL check
Attila Molnar [Thu, 27 Feb 2014 16:10:41 +0000 (17:10 +0100)]
cmd_topic Remove redundant NULL check

10 years agoGive m_connectban a configurable ban message
Googolplexed [Thu, 27 Feb 2014 11:55:20 +0000 (11:55 +0000)]
Give m_connectban a configurable ban message

10 years agoSimplify /SAJOIN syntax and add permission for joining other users.
Daniel Vassdal [Tue, 12 Nov 2013 18:10:25 +0000 (10:10 -0800)]
Simplify /SAJOIN syntax and add permission for joining other users.

10 years agom_chanfilter Remove needless mode parameter is empty check
Attila Molnar [Wed, 26 Feb 2014 12:37:10 +0000 (13:37 +0100)]
m_chanfilter Remove needless mode parameter is empty check

10 years agom_cycle Remove redundant IS_LOCAL() check
Attila Molnar [Wed, 26 Feb 2014 12:30:31 +0000 (13:30 +0100)]
m_cycle Remove redundant IS_LOCAL() check

10 years agocmd_kill Remove now needless check that prevented KILLing the same user twice
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

10 years agocmd_kill Hide server notices if the source is ulined
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

10 years agom_svshold Hide server notices by default
Attila Molnar [Tue, 25 Feb 2014 15:48:38 +0000 (16:48 +0100)]
m_svshold Hide server notices by default

Issue #742

10 years agoThrow an exception if ModeParser::AddMode() fails
Attila Molnar [Sun, 23 Feb 2014 11:24:14 +0000 (12:24 +0100)]
Throw an exception if ModeParser::AddMode() fails

10 years agoMoving CGIIRC to a new snomask (w)
Googolplexed [Sun, 23 Feb 2014 06:10:47 +0000 (06:10 +0000)]
Moving CGIIRC to a new snomask (w)

10 years agoAdd ModeParser::GetModes(), returns all user/chanmodes
Attila Molnar [Sat, 22 Feb 2014 13:00:04 +0000 (14:00 +0100)]
Add ModeParser::GetModes(), returns all user/chanmodes

10 years agoIndex Channel::modes and User::modes with the id of the mode instead of its letter
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

10 years agoAssign an id to user modes, parameter chanmodes and simple chanmodes
Attila Molnar [Fri, 21 Feb 2014 13:42:16 +0000 (14:42 +0100)]
Assign an id to user modes, parameter chanmodes and simple chanmodes

10 years agoReplace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt
Attila Molnar [Fri, 21 Feb 2014 13:18:49 +0000 (14:18 +0100)]
Replace mode letter parameter of OnRawMode() with a ModeHandler*, remove pcnt

10 years agoAdd a ModeParser::FindMode() overload that takes a mode name and a mode type
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

10 years agoCreate a name -> ModeHandler* map
Attila Molnar [Thu, 20 Feb 2014 12:20:21 +0000 (13:20 +0100)]
Create a name -> ModeHandler* map

10 years agoReplace ModeMasks with a two-dimensional array
Attila Molnar [Tue, 18 Feb 2014 12:47:10 +0000 (13:47 +0100)]
Replace ModeMasks with a two-dimensional array

10 years agoChange the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType
Attila Molnar [Tue, 18 Feb 2014 12:41:01 +0000 (13:41 +0100)]
Change the parameter type of ModeHandler::GiveModeList() from ModeMasks to ModeType

10 years agoAdd ParamModeBase and ParamMode, change all parameter modes to inherit from ParamMode
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

10 years agoAdd ModeHandler::IsParameterMode() and MC_PARAM
Attila Molnar [Sat, 15 Feb 2014 12:51:35 +0000 (13:51 +0100)]
Add ModeHandler::IsParameterMode() and MC_PARAM

10 years agoMove GetAllPrefixChars() from Channel to Membership
Attila Molnar [Fri, 14 Feb 2014 11:16:31 +0000 (12:16 +0100)]
Move GetAllPrefixChars() from Channel to Membership

10 years agoMove GetPrefixChar() from Channel to Membership
Attila Molnar [Fri, 14 Feb 2014 11:15:00 +0000 (12:15 +0100)]
Move GetPrefixChar() from Channel to Membership

10 years agoReturn a Membership* from get_first_visible_channel() in cmd_who and pass that to...
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

10 years agoRemove support for advertising the SSL ports in RPL_ISUPPORT.
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.

10 years agoRemove redundant null pointer check from m_ldapauth
Adam [Thu, 13 Feb 2014 04:34:01 +0000 (23:34 -0500)]
Remove redundant null pointer check from m_ldapauth

10 years agoWait for the manager bind to come back before sending search in LDAP modules
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

10 years agom_operjoin Remove duplicated code
Attila Molnar [Tue, 11 Feb 2014 13:08:11 +0000 (14:08 +0100)]
m_operjoin Remove duplicated code

10 years agom_sqlauth Allow the client certificate fingerprint to be used in the SQL query
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

10 years agoReplace DummyExtItem with a flag in Extensible
Attila Molnar [Mon, 10 Feb 2014 12:56:14 +0000 (13:56 +0100)]
Replace DummyExtItem with a flag in Extensible

10 years agoStore the EventHandler* in the kevent/epoll_event/portev struct
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()

10 years agoCall DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)
Attila Molnar [Sun, 9 Feb 2014 16:17:04 +0000 (17:17 +0100)]
Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)

10 years agoQueue changes in socketengine_kqueue and submit them as we poll for new events
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

10 years agoChange all socketengine methods to be static
Attila Molnar [Sat, 8 Feb 2014 22:01:44 +0000 (23:01 +0100)]
Change all socketengine methods to be static

10 years agoMove socketengine stats into a new class
Attila Molnar [Sat, 8 Feb 2014 21:40:30 +0000 (22:40 +0100)]
Move socketengine stats into a new class

10 years agoUpdate SocketEngine::CurrentSetSize in AddFdRef()/DelFdRef()
Attila Molnar [Sat, 8 Feb 2014 21:34:11 +0000 (22:34 +0100)]
Update SocketEngine::CurrentSetSize in AddFdRef()/DelFdRef()

10 years agoRename SocketEngine::AddFd() and DelFd() to AddFdRef() and DelFdRef()
Attila Molnar [Sat, 8 Feb 2014 21:25:06 +0000 (22:25 +0100)]
Rename SocketEngine::AddFd() and DelFd() to AddFdRef() and DelFdRef()

10 years agoMove variables in socketengines
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

10 years agoReplace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME define
Attila Molnar [Sat, 8 Feb 2014 12:16:31 +0000 (13:16 +0100)]
Replace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME define

10 years agoChange SocketEngine functions that do not require an instance to be static
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

10 years agoOnly compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is defined
Attila Molnar [Fri, 7 Feb 2014 17:21:01 +0000 (18:21 +0100)]
Only compile the testsuite if INSPIRCD_ENABLE_TESTSUITE is defined

10 years agom_ldapauth.cpp: Allow multiple patterns for users to bypass LDAP auth
Thiago Crepaldi [Wed, 5 Feb 2014 20:41:30 +0000 (18:41 -0200)]
m_ldapauth.cpp: Allow multiple patterns for users to bypass LDAP auth

10 years agoConvert irc::stringjoiner to be a method instead of a class.
Peter Powell [Wed, 5 Feb 2014 16:44:22 +0000 (16:44 +0000)]
Convert irc::stringjoiner to be a method instead of a class.

Add separator parameter

10 years agoFix various cases of UUID exposure.
Peter Powell [Wed, 5 Feb 2014 13:49:16 +0000 (13:49 +0000)]
Fix various cases of UUID exposure.

- Introduce WriteCommand which sends * when the user has not registered.
- Switch a ton of code to use WriteCommand instead of WriteServ.
- Convert WriteNotice to be a wrapper around WriteCommand.
- Only send * when NICK has not been sent instead of before registration.

10 years agom_cap Instead of using case insensitive compare convert the subcommand to uppercase
Attila Molnar [Thu, 6 Feb 2014 22:00:18 +0000 (23:00 +0100)]
m_cap Instead of using case insensitive compare convert the subcommand to uppercase

This way if we send back the subcommand it will be in uppercase even if the client sent it in lowercase

10 years agoMerge pull request #766 from SaberUK/master+rebuild-fix
Attila Molnar [Thu, 6 Feb 2014 21:57:21 +0000 (22:57 +0100)]
Merge pull request #766 from SaberUK/master+rebuild-fix

Don't force a rebuild after doing a Git commit.

10 years agoDon't force a rebuild after doing a Git commit.
Peter Powell [Thu, 6 Feb 2014 18:13:12 +0000 (18:13 +0000)]
Don't force a rebuild after doing a Git commit.

Thanks to w00t for pointing out the cause of this.

10 years agosocketengine_kqueue Remove dead code
Attila Molnar [Wed, 5 Feb 2014 17:05:07 +0000 (18:05 +0100)]
socketengine_kqueue Remove dead code

10 years agosocketengine_epoll Remove needless initialization of epoll_event when removing an fd
Attila Molnar [Wed, 5 Feb 2014 17:03:10 +0000 (18:03 +0100)]
socketengine_epoll Remove needless initialization of epoll_event when removing an fd

10 years agoFix oversight in 3752b3f59d5216d7dc6221a361efc76b9ad2273d
Attila Molnar [Wed, 5 Feb 2014 16:51:03 +0000 (17:51 +0100)]
Fix oversight in 3752b3f59d5216d7dc6221a361efc76b9ad2273d

10 years agoCoding style changes in socketengines
Adam [Tue, 4 Feb 2014 21:44:20 +0000 (22:44 +0100)]
Coding style changes in socketengines

10 years agoNew socketengine stuff:
Adam [Fri, 24 Jan 2014 00:17:22 +0000 (19:17 -0500)]
New socketengine stuff:

Use vectors that grow as necessary instead of mass allocating everything at once
Rework poll engine logic to make sense

10 years agoChange type of SocketEngine::CurrentSetSize to size_t from int
Attila Molnar [Tue, 4 Feb 2014 20:10:45 +0000 (21:10 +0100)]
Change type of SocketEngine::CurrentSetSize to size_t from int

10 years agoFix ping timeout message seconds vs second
Adam [Tue, 4 Feb 2014 11:37:21 +0000 (06:37 -0500)]
Fix ping timeout message seconds vs second

10 years agoRemove a few unnecessary .c_str() calls
Attila Molnar [Fri, 31 Jan 2014 13:35:13 +0000 (14:35 +0100)]
Remove a few unnecessary .c_str() calls

10 years agoRemove some dead code
Attila Molnar [Fri, 31 Jan 2014 13:27:32 +0000 (14:27 +0100)]
Remove some dead code

10 years agoDocument new delayed join feature of m_conn_join
Attila Molnar [Thu, 30 Jan 2014 21:18:40 +0000 (22:18 +0100)]
Document new delayed join feature of m_conn_join

10 years agom_conn_join Read default settings in ReadConfig()
Attila Molnar [Thu, 30 Jan 2014 21:14:33 +0000 (22:14 +0100)]
m_conn_join Read default settings in ReadConfig()

10 years agom_conn_join: Allow time-delayed joins
Daniel Vassdal [Thu, 30 Jan 2014 14:32:03 +0000 (06:32 -0800)]
m_conn_join: Allow time-delayed joins

10 years agom_conn_join: Fixed indentation
Daniel Vassdal [Thu, 30 Jan 2014 14:25:02 +0000 (06:25 -0800)]
m_conn_join: Fixed indentation

10 years agoAllow Timers to delete themselves in Tick()
Attila Molnar [Thu, 30 Jan 2014 20:44:51 +0000 (21:44 +0100)]
Allow Timers to delete themselves in Tick()

10 years agom_spanningtree Rewrite /map
Adam [Mon, 20 Jan 2014 09:55:53 +0000 (04:55 -0500)]
m_spanningtree Rewrite /map

10 years agom_tline Minor improvements
Attila Molnar [Mon, 27 Jan 2014 16:01:05 +0000 (17:01 +0100)]
m_tline Minor improvements

- Replace floats with integers
- Use size() instead of counting elements
- Use WriteNotice()

10 years agom_alias Remove duplicate checks
Attila Molnar [Mon, 27 Jan 2014 15:37:40 +0000 (16:37 +0100)]
m_alias Remove duplicate checks

10 years agom_alias Use equal_range() when searching for aliases
Attila Molnar [Mon, 27 Jan 2014 15:33:27 +0000 (16:33 +0100)]
m_alias Use equal_range() when searching for aliases

10 years agoAdd m_clearchan which removes users from a channel without sending n*(n+1)/2 QUIT...
Attila Molnar [Sun, 26 Jan 2014 12:39:10 +0000 (13:39 +0100)]
Add m_clearchan which removes users from a channel without sending n*(n+1)/2 QUIT messages

10 years agoAdd ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding...
Attila Molnar [Sun, 26 Jan 2014 12:12:01 +0000 (13:12 +0100)]
Add ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding ENCAPs

10 years agoProtocolInterface::SendEncapsulatedData() changes
Attila Molnar [Sun, 26 Jan 2014 12:05:09 +0000 (13:05 +0100)]
ProtocolInterface::SendEncapsulatedData() changes

- Pass command name and destination as real parameters
- Allow callers to specify the command source
- Send a SID instead of a server name if the target is a single server

10 years agoAdd Channel* parameter to OnSendWhoLine
Attila Molnar [Sat, 25 Jan 2014 11:40:21 +0000 (12:40 +0100)]
Add Channel* parameter to OnSendWhoLine

10 years agoOmit the server name internally when building a /STATS reply and prepend it later
Attila Molnar [Sat, 25 Jan 2014 11:28:39 +0000 (12:28 +0100)]
Omit the server name internally when building a /STATS reply and prepend it later

10 years agoConvert InspIRCd::PassCompare to return bool instead of int.
Peter Powell [Sat, 18 Jan 2014 04:53:52 +0000 (04:53 +0000)]
Convert InspIRCd::PassCompare to return bool instead of int.

The insane behaviour of this method was due to an implementation
detail which has since become irrelevent.

10 years agoDestroy Memberships of a quitting user in QuitUser() instead of in cull()
Attila Molnar [Sat, 25 Jan 2014 11:15:01 +0000 (12:15 +0100)]
Destroy Memberships of a quitting user in QuitUser() instead of in cull()