]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
9 years agocore_stats Deduplicate stats L and l code
Attila Molnar [Sat, 19 Jul 2014 12:07:09 +0000 (14:07 +0200)]
core_stats Deduplicate stats L and l code

9 years agoMove typedef OperIndex to ServerConfig::OperIndex
Attila Molnar [Wed, 16 Jul 2014 10:32:47 +0000 (12:32 +0200)]
Move typedef OperIndex to ServerConfig::OperIndex

9 years agoMove typedef ClassVector to ServerConfig::ClassVector
Attila Molnar [Wed, 16 Jul 2014 10:30:05 +0000 (12:30 +0200)]
Move typedef ClassVector to ServerConfig::ClassVector

9 years agocore_stats Simplify uptime stats code, don't output years because it is ambiguous
Attila Molnar [Wed, 16 Jul 2014 10:26:56 +0000 (12:26 +0200)]
core_stats Simplify uptime stats code, don't output years because it is ambiguous

9 years agoExpand ISupportManager documentation
Attila Molnar [Mon, 14 Jul 2014 14:47:42 +0000 (16:47 +0200)]
Expand ISupportManager documentation

9 years agoMinor ISupportManager changes
Attila Molnar [Mon, 14 Jul 2014 14:42:22 +0000 (16:42 +0200)]
Minor ISupportManager changes

- Make GetLines() a const method
- Rename Lines to cachedlines
- Get rid of a variable in Build()

9 years agoMove ISupportManager class declaration to isupportmanager.h from inspircd.h
Attila Molnar [Mon, 14 Jul 2014 14:39:09 +0000 (16:39 +0200)]
Move ISupportManager class declaration to isupportmanager.h from inspircd.h

9 years agom_rmode Call Channel::GetUsers() instead of directly accessing Channel::userlist
Attila Molnar [Mon, 14 Jul 2014 14:28:30 +0000 (16:28 +0200)]
m_rmode Call Channel::GetUsers() instead of directly accessing Channel::userlist

9 years agoRename UserChanList to User::ChanList, remove UCListIter
Attila Molnar [Mon, 14 Jul 2014 14:24:59 +0000 (16:24 +0200)]
Rename UserChanList to User::ChanList, remove UCListIter

9 years agoRemove typedef UserMembIter, use Channel::MemberMap::iterator instead
Attila Molnar [Mon, 14 Jul 2014 14:19:34 +0000 (16:19 +0200)]
Remove typedef UserMembIter, use Channel::MemberMap::iterator instead

Remove the now unused UserMembList typedef too

9 years agoRemove typedef UserMembCIter, use Channel::MemberMap::const_iterator instead
Attila Molnar [Mon, 14 Jul 2014 14:15:38 +0000 (16:15 +0200)]
Remove typedef UserMembCIter, use Channel::MemberMap::const_iterator instead

9 years agoRename UserMembList to Channel::MemberMap, switch all code to use it
Attila Molnar [Mon, 14 Jul 2014 14:10:12 +0000 (16:10 +0200)]
Rename UserMembList to Channel::MemberMap, switch all code to use it

9 years agoChange return type of Channel::GetUsers() to reference from pointer as it is never...
Attila Molnar [Mon, 14 Jul 2014 14:04:38 +0000 (16:04 +0200)]
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL

9 years agocore_hostname_lookup Change source of log messages to MODNAME
Attila Molnar [Thu, 10 Jul 2014 10:26:48 +0000 (12:26 +0200)]
core_hostname_lookup Change source of log messages to MODNAME

9 years agocore_dns Change source of log messages to MODNAME, remove "Resolver: " from all messages
Attila Molnar [Thu, 10 Jul 2014 10:25:05 +0000 (12:25 +0200)]
core_dns Change source of log messages to MODNAME, remove "Resolver: " from all messages

9 years agoMove the TimerMap typedef into the private part of TimerManager
Attila Molnar [Thu, 10 Jul 2014 10:19:26 +0000 (12:19 +0200)]
Move the TimerMap typedef into the private part of TimerManager

9 years agoRemove current time parameter of the Timer constructor
Attila Molnar [Thu, 10 Jul 2014 10:17:55 +0000 (12:17 +0200)]
Remove current time parameter of the Timer constructor

9 years agoMove the definition of Timer::Timer() into the source file from the header
Attila Molnar [Thu, 10 Jul 2014 10:14:27 +0000 (12:14 +0200)]
Move the definition of Timer::Timer() into the source file from the header

Use initialization list

9 years agocore_whowas Rename and move WhoWasGroup to WhoWas::Entry
Attila Molnar [Wed, 9 Jul 2014 13:43:08 +0000 (15:43 +0200)]
core_whowas Rename and move WhoWasGroup to WhoWas::Entry

9 years agocore_whowas Return a WhoWas::Manager::Stats struct from GetStats() instead of a string
Attila Molnar [Wed, 9 Jul 2014 13:40:49 +0000 (15:40 +0200)]
core_whowas Return a WhoWas::Manager::Stats struct from GetStats() instead of a string

9 years agocore_whowas Split database logic into a WhoWas::Manager class
Attila Molnar [Wed, 9 Jul 2014 13:38:04 +0000 (15:38 +0200)]
core_whowas Split database logic into a WhoWas::Manager class

9 years agocore_whowas Clean up GetStats()
Attila Molnar [Wed, 9 Jul 2014 13:24:18 +0000 (15:24 +0200)]
core_whowas Clean up GetStats()

9 years agocore_whowas Rename misleading variables and typedefs
Attila Molnar [Wed, 9 Jul 2014 13:21:39 +0000 (15:21 +0200)]
core_whowas Rename misleading variables and typedefs

9 years agocore_whowas Switch from map to a hash map and from irc::string to std::string
Attila Molnar [Wed, 9 Jul 2014 13:16:22 +0000 (15:16 +0200)]
core_whowas Switch from map to a hash map and from irc::string to std::string

9 years agocore_whowas Change the FIFO to be an intrusive list
Attila Molnar [Wed, 9 Jul 2014 13:14:30 +0000 (15:14 +0200)]
core_whowas Change the FIFO to be an intrusive list

9 years agocore_whowas Store the nickname in WhoWas::Nick
Attila Molnar [Wed, 9 Jul 2014 13:06:52 +0000 (15:06 +0200)]
core_whowas Store the nickname in WhoWas::Nick

9 years agocore_whowas Store time added in WhoWas::Nick
Attila Molnar [Wed, 9 Jul 2014 13:03:21 +0000 (15:03 +0200)]
core_whowas Store time added in WhoWas::Nick

9 years agocore_whowas Delete elements of the per nick deque in the destructor of WhoWas::Nick
Attila Molnar [Wed, 9 Jul 2014 13:00:31 +0000 (15:00 +0200)]
core_whowas Delete elements of the per nick deque in the destructor of WhoWas::Nick

9 years agocore_whowas Create class WhoWas::Nick, store pointers to those in the map
Attila Molnar [Wed, 9 Jul 2014 12:57:00 +0000 (14:57 +0200)]
core_whowas Create class WhoWas::Nick, store pointers to those in the map

9 years agoAdd intrusive_list_tail container that maintains a pointer to the last element
Attila Molnar [Wed, 9 Jul 2014 12:50:47 +0000 (14:50 +0200)]
Add intrusive_list_tail container that maintains a pointer to the last element

9 years agoMake the name of intrusive list class configurable using a define
Attila Molnar [Wed, 9 Jul 2014 12:38:06 +0000 (14:38 +0200)]
Make the name of intrusive list class configurable using a define

9 years agoSplit intrusive list implementation into a separate file
Attila Molnar [Wed, 9 Jul 2014 12:26:49 +0000 (14:26 +0200)]
Split intrusive list implementation into a separate file

9 years agocore_whowas Don't display used bytes in /STATS z
Attila Molnar [Wed, 9 Jul 2014 12:18:50 +0000 (14:18 +0200)]
core_whowas Don't display used bytes in /STATS z

Calculating this is tricky and the calculation was not realistic

9 years agom_spanningtree Extract logic that finds the source user for an incoming command into...
Attila Molnar [Sat, 5 Jul 2014 11:29:16 +0000 (13:29 +0200)]
m_spanningtree Extract logic that finds the source user for an incoming command into a function

9 years agom_spanningtree Fix fake direction detection for commands
Attila Molnar [Sat, 5 Jul 2014 11:17:01 +0000 (13:17 +0200)]
m_spanningtree Fix fake direction detection for commands

9 years agom_spanningtree Add optional expected nick TS parameter to SVSNICK
Attila Molnar [Sat, 5 Jul 2014 11:06:57 +0000 (13:06 +0200)]
m_spanningtree Add optional expected nick TS parameter to SVSNICK

Drop SVSNICK if the expected nick TS is present and it does not match the user's nick timestamp

9 years agom_spanningtree Replace manual string building of outgoing commands with CmdBuilder...
Attila Molnar [Thu, 3 Jul 2014 10:42:36 +0000 (12:42 +0200)]
m_spanningtree Replace manual string building of outgoing commands with CmdBuilder where possible

9 years agoUser::ChangeNick() cannot fail if the new nick is the uuid, document this and rely...
Attila Molnar [Thu, 3 Jul 2014 10:36:14 +0000 (12:36 +0200)]
User::ChangeNick() cannot fail if the new nick is the uuid, document this and rely on it

9 years agoGet rid of irc::strings (assign()) in User::ChangeNick()
Attila Molnar [Thu, 3 Jul 2014 10:32:21 +0000 (12:32 +0200)]
Get rid of irc::strings (assign()) in User::ChangeNick()

9 years agoDeduplicate code in User::ChangeNick()
Attila Molnar [Thu, 3 Jul 2014 10:30:54 +0000 (12:30 +0200)]
Deduplicate code in User::ChangeNick()

9 years agoRemove now needless User::ForceNickChange()
Attila Molnar [Thu, 3 Jul 2014 10:27:24 +0000 (12:27 +0200)]
Remove now needless User::ForceNickChange()

Change call sites to call ChangeNick()

9 years agoMove calling the OnUserPreNick() hook and the restrictbannedusers check from core...
Attila Molnar [Thu, 3 Jul 2014 10:21:00 +0000 (12:21 +0200)]
Move calling the OnUserPreNick() hook and the restrictbannedusers check from core to cmd_nick (core_user)

9 years agocore_user Deduplicate code that calls the OnUserRegister hook
Attila Molnar [Thu, 3 Jul 2014 10:16:07 +0000 (12:16 +0200)]
core_user Deduplicate code that calls the OnUserRegister hook

9 years agocore_user Inherit CommandNick from SplitCommand, only handle it for local users
Attila Molnar [Thu, 3 Jul 2014 10:06:31 +0000 (12:06 +0200)]
core_user Inherit CommandNick from SplitCommand, only handle it for local users

10 years agoSet SSL options to sane default and enfore server cipher preferences
Julien Vehent [Wed, 21 May 2014 13:39:17 +0000 (09:39 -0400)]
Set SSL options to sane default and enfore server cipher preferences

Original PR #856

10 years agom_spanningtree Drop support for changing user modes with FMODE
Attila Molnar [Mon, 30 Jun 2014 12:19:03 +0000 (14:19 +0200)]
m_spanningtree Drop support for changing user modes with FMODE

This is useless with uuids

10 years agom_spanningtree Translate user mode changes done via FMODE by 1202-protocol servers...
Attila Molnar [Mon, 30 Jun 2014 12:14:46 +0000 (14:14 +0200)]
m_spanningtree Translate user mode changes done via FMODE by 1202-protocol servers to MODE

10 years agom_spanningtree Accept legacy JOINs from 1202-protocol servers
Attila Molnar [Mon, 30 Jun 2014 12:07:51 +0000 (14:07 +0200)]
m_spanningtree Accept legacy JOINs from 1202-protocol servers

2.0 accepted JOIN and some pseudoservers might use it

10 years agoUse TimingSafeCompare() to compare passwords and password hashes (non-hmac only)
Attila Molnar [Sat, 28 Jun 2014 16:27:51 +0000 (18:27 +0200)]
Use TimingSafeCompare() to compare passwords and password hashes (non-hmac only)

Issue #882

10 years agoAdd InspIRCd::TimingSafeCompare() function that compares strings in a timing-safe way
Attila Molnar [Sat, 28 Jun 2014 16:25:05 +0000 (18:25 +0200)]
Add InspIRCd::TimingSafeCompare() function that compares strings in a timing-safe way

10 years agom_spanningtree Send the cert fingerprint message to opers only after successful auth
Attila Molnar [Sat, 28 Jun 2014 16:15:59 +0000 (18:15 +0200)]
m_spanningtree Send the cert fingerprint message to opers only after successful auth

10 years agoCheck fingerprint before checking password (server linking)
Matthew Martin [Thu, 26 Jun 2014 17:36:51 +0000 (12:36 -0500)]
Check fingerprint before checking password (server linking)

Checking the password before the fingerprint means that even without the
correct cert it's possible to brute force the password or leak
information about it. Checking the fingerprint means attackers must
forge the cert before they can learn any information about the password.

10 years agoAdd man pages.
Peter Powell [Wed, 4 Jun 2014 15:40:18 +0000 (16:40 +0100)]
Add man pages.

10 years agoAdd systemd service file.
Peter Powell [Wed, 4 Jun 2014 14:44:25 +0000 (15:44 +0100)]
Add systemd service file.

10 years agoFix warning from gnutls-certtool about --bits being deprecated.
Peter Powell [Sat, 14 Jun 2014 10:18:43 +0000 (11:18 +0100)]
Fix warning from gnutls-certtool about --bits being deprecated.

This patch has made me extremely grateful for git-blame as the
GnuTLS developers apparently do not document when deprecation
warnings are introduced.

10 years agoIgnore safe compiler warnings in a more reliable way.
Peter Powell [Fri, 24 Jan 2014 23:27:34 +0000 (23:27 +0000)]
Ignore safe compiler warnings in a more reliable way.

10 years agoAdd parameter to InspIRCd::TimeString for UTC time formats.
Peter Powell [Thu, 12 Jun 2014 23:09:34 +0000 (00:09 +0100)]
Add parameter to InspIRCd::TimeString for UTC time formats.

Missing doc added by @attilamolnar

10 years agoAdd formatting to InspIRCd::TimeString; switch all code to use it.
Peter Powell [Fri, 2 May 2014 15:39:40 +0000 (16:39 +0100)]
Add formatting to InspIRCd::TimeString; switch all code to use it.

m_httpd also now uses the correct timestamp format.

Windows-specific fixes by @attilamolnar, original PR #849

10 years agoInherit ThreadQueueData from Mutex to avoid duplicating code
Attila Molnar [Tue, 24 Jun 2014 11:09:26 +0000 (13:09 +0200)]
Inherit ThreadQueueData from Mutex to avoid duplicating code

10 years agoRemove empty Thread destructor
Attila Molnar [Tue, 24 Jun 2014 11:05:12 +0000 (13:05 +0200)]
Remove empty Thread destructor

10 years agothreadengine_win32 Don't ask for the thread id of newly created threads pointlessly
Attila Molnar [Tue, 24 Jun 2014 10:57:09 +0000 (12:57 +0200)]
threadengine_win32 Don't ask for the thread id of newly created threads pointlessly

10 years agoMove and rename class ThreadData to ThreadEngine::ThreadState
Attila Molnar [Tue, 24 Jun 2014 10:54:05 +0000 (12:54 +0200)]
Move and rename class ThreadData to ThreadEngine::ThreadState

10 years agoMove and rename ThreadData::FreeThread() to ThreadEngine::Stop() and document what...
Attila Molnar [Tue, 24 Jun 2014 10:53:10 +0000 (12:53 +0200)]
Move and rename ThreadData::FreeThread() to ThreadEngine::Stop() and document what it does

10 years agoMake Thread::state private
Attila Molnar [Tue, 24 Jun 2014 10:46:18 +0000 (12:46 +0200)]
Make Thread::state private

10 years agoChange allocation of ThreadData to be physically part of the object containing it
Attila Molnar [Tue, 24 Jun 2014 10:45:21 +0000 (12:45 +0200)]
Change allocation of ThreadData to be physically part of the object containing it

10 years agoRemove empty ThreadEngine constructors and destructors
Attila Molnar [Tue, 24 Jun 2014 10:40:02 +0000 (12:40 +0200)]
Remove empty ThreadEngine constructors and destructors

10 years agoRemove the unused ThreadEngine::GetName() method from both implementations
Attila Molnar [Tue, 24 Jun 2014 10:36:38 +0000 (12:36 +0200)]
Remove the unused ThreadEngine::GetName() method from both implementations

10 years agoChange allocation of InspIRCd::Users to be physically part of the object containing...
Attila Molnar [Tue, 24 Jun 2014 10:21:31 +0000 (12:21 +0200)]
Change allocation of InspIRCd::Users to be physically part of the object containing it using fakederef

10 years agoChange allocation of InspIRCd::SNO to be physically part of the object containing...
Attila Molnar [Tue, 24 Jun 2014 10:20:02 +0000 (12:20 +0200)]
Change allocation of InspIRCd::SNO to be physically part of the object containing it using fakederef

10 years agoRemove now needless dynref_init_complete
Attila Molnar [Tue, 24 Jun 2014 10:18:46 +0000 (12:18 +0200)]
Remove now needless dynref_init_complete

ModuleManager is constructed when ServerInstance is non-NULL, test that instead

10 years agoChange allocation of InspIRCd::Modules to be physically part of the object containing...
Attila Molnar [Tue, 24 Jun 2014 10:16:57 +0000 (12:16 +0200)]
Change allocation of InspIRCd::Modules to be physically part of the object containing it using fakederef

10 years agoChange allocation of InspIRCd::Logs to be physically part of the object containing...
Attila Molnar [Tue, 24 Jun 2014 10:15:03 +0000 (12:15 +0200)]
Change allocation of InspIRCd::Logs to be physically part of the object containing it using fakederef

10 years agoChange allocation of InspIRCd::Modes to be physically part of the object containing...
Attila Molnar [Tue, 24 Jun 2014 10:10:59 +0000 (12:10 +0200)]
Change allocation of InspIRCd::Modes to be physically part of the object containing it using fakederef

10 years agoAdd the fakederef class
Attila Molnar [Tue, 24 Jun 2014 10:08:20 +0000 (12:08 +0200)]
Add the fakederef class

10 years agoChange all occurrences of plain sort() to std::sort()
Attila Molnar [Sun, 22 Jun 2014 11:34:33 +0000 (13:34 +0200)]
Change all occurrences of plain sort() to std::sort()

10 years agocore_userhost Show real host if the target is the same as the user doing the /USERHOST
Attila Molnar [Sun, 22 Jun 2014 11:28:41 +0000 (13:28 +0200)]
core_userhost Show real host if the target is the same as the user doing the /USERHOST

10 years agocore_userhost Append data to the output in a saner way
Attila Molnar [Sun, 22 Jun 2014 11:27:28 +0000 (13:27 +0200)]
core_userhost Append data to the output in a saner way

10 years agocore_userhost Do the HasPrivPermission() check only once, not once per nick
Attila Molnar [Sun, 22 Jun 2014 11:25:09 +0000 (13:25 +0200)]
core_userhost Do the HasPrivPermission() check only once, not once per nick

10 years agocore_ison Use iterators
Attila Molnar [Sun, 22 Jun 2014 11:22:44 +0000 (13:22 +0200)]
core_ison Use iterators

10 years agocore_ison Extract duplicated code into a function
Attila Molnar [Sun, 22 Jun 2014 11:20:21 +0000 (13:20 +0200)]
core_ison Extract duplicated code into a function

Change append(" ") to push_back(' ')

10 years agocore_ison Truncate string after sending it on overflow instead of recreating it
Attila Molnar [Sun, 22 Jun 2014 11:19:15 +0000 (13:19 +0200)]
core_ison Truncate string after sending it on overflow instead of recreating it

10 years agocore_ison Don't deduplicate nicks
Attila Molnar [Sun, 22 Jun 2014 11:17:57 +0000 (13:17 +0200)]
core_ison Don't deduplicate nicks

Deduplication makes us do pointless processing for every ISON and offers
no benefit at all to proper clients that send a nick only once

10 years agocore_ison Remove check that is always true
Attila Molnar [Sun, 22 Jun 2014 11:16:31 +0000 (13:16 +0200)]
core_ison Remove check that is always true

10 years agocore_list Improve readability by assigning the Channel being inspected to a variable
Attila Molnar [Sun, 22 Jun 2014 11:13:08 +0000 (13:13 +0200)]
core_list Improve readability by assigning the Channel being inspected to a variable

10 years agocore_list Check whether the chan name/topic has to be Match()ed once, not once per...
Attila Molnar [Sun, 22 Jun 2014 11:10:03 +0000 (13:10 +0200)]
core_list Check whether the chan name/topic has to be Match()ed once, not once per chan

10 years agocore_list Do the HasPrivPermission() check only once, not once per chan
Attila Molnar [Sun, 22 Jun 2014 11:06:35 +0000 (13:06 +0200)]
core_list Do the HasPrivPermission() check only once, not once per chan

10 years agoCheck Q-Lines on nick change in core_xline
Attila Molnar [Fri, 20 Jun 2014 14:34:03 +0000 (16:34 +0200)]
Check Q-Lines on nick change in core_xline

10 years agoReject nickname case changes too when enforcing <security:restrictbannedusers>
Attila Molnar [Fri, 20 Jun 2014 14:29:40 +0000 (16:29 +0200)]
Reject nickname case changes too when enforcing <security:restrictbannedusers>

10 years agoChange the type of the user parameter in the OnUserPreNick() hook from User to LocalUser
Attila Molnar [Fri, 20 Jun 2014 14:20:19 +0000 (16:20 +0200)]
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.

10 years agoIncrement serverstats::Collisions when a collision is handled, not when a module...
Attila Molnar [Fri, 20 Jun 2014 14:04:21 +0000 (16:04 +0200)]
Increment serverstats::Collisions when a collision is handled, not when a module denies a nick change

10 years agom_spanningtree Share server description updates via SINFO desc
Attila Molnar [Tue, 17 Jun 2014 11:48:50 +0000 (13:48 +0200)]
m_spanningtree Share server description updates via SINFO desc

10 years agoUpdate the description field in the Server object representing the local server on...
Attila Molnar [Tue, 17 Jun 2014 11:45:57 +0000 (13:45 +0200)]
Update the description field in the Server object representing the local server on rehash

10 years agom_spanningtree Remove server-to-server VERSION handler
Attila Molnar [Tue, 17 Jun 2014 11:41:21 +0000 (13:41 +0200)]
m_spanningtree Remove server-to-server VERSION handler

10 years agom_spanningtree Translate SINFO version to VERSION and vice versa for 1202 protocol...
Attila Molnar [Tue, 17 Jun 2014 11:39:08 +0000 (13:39 +0200)]
m_spanningtree Translate SINFO version to VERSION and vice versa for 1202 protocol servers

10 years agom_spanningtree Exchange public server version strings via SINFO instead of VERSION
Attila Molnar [Tue, 17 Jun 2014 11:36:10 +0000 (13:36 +0200)]
m_spanningtree Exchange public server version strings via SINFO instead of VERSION

10 years agom_spanningtree Show the full version string of servers to opers
Attila Molnar [Tue, 17 Jun 2014 11:32:00 +0000 (13:32 +0200)]
m_spanningtree Show the full version string of servers to opers

Issue #637, suggested by @CuleX

10 years agom_spanningtree Send and receive full version strings via SINFO
Attila Molnar [Tue, 17 Jun 2014 11:28:19 +0000 (13:28 +0200)]
m_spanningtree Send and receive full version strings via SINFO

10 years agom_spanningtree Add a field to TreeServer for storing full version strings
Attila Molnar [Tue, 17 Jun 2014 11:27:21 +0000 (13:27 +0200)]
m_spanningtree Add a field to TreeServer for storing full version strings

10 years agom_spanningtree Add server-to-server SINFO command handler and builder
Attila Molnar [Tue, 17 Jun 2014 11:25:06 +0000 (13:25 +0200)]
m_spanningtree Add server-to-server SINFO command handler and builder

Don't send SINFO to 1202 protocol servers

10 years agom_spanningtree Add TreeSocket::SendServerInfo() that sends all additional data about...
Attila Molnar [Tue, 17 Jun 2014 11:20:57 +0000 (13:20 +0200)]
m_spanningtree Add TreeSocket::SendServerInfo() that sends all additional data about a server