aboutsummaryrefslogtreecommitdiff
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'insp20' into master.Gravatar Peter Powell2018-08-151-0/+1
|\
| * m_httpd: close the HTTP connection after serving a request.Gravatar Peter Powell2018-08-071-0/+1
| | | | | | | | | | | | | | We always send "Connection: Close" so this is the right behaviour according to section 8.1 of RFC 2616. Closes #1507.
* | Rewrite m_httpd_config.Gravatar Peter Powell2018-08-151-63/+25
| | | | | | | | | | | | - Send the configuration as plain text instead of HTML. - Show the location where each tag was located in a comment. - Indent configuration keys consistently so they are easy to read.
* | Fix aliases that resolve to messages echoing with echo-message.Gravatar Peter Powell2018-08-155-7/+22
| | | | | | | | Fixes #1459.
* | Fix m_alias not reconstituting the RFC message properly.Gravatar Peter Powell2018-08-151-2/+2
| |
* | Fix a bunch more conflicting/unnamed numerics.Gravatar Peter Powell2018-08-148-17/+37
| |
* | Convert CLONES to use its own numeric and batch the replies.Gravatar Peter Powell2018-08-141-22/+46
| |
* | Convert m_bcrypt to use a vendored library instead of bundling.Gravatar Peter Powell2018-08-141-888/+3
| |
* | Replace all references to IRCv3.2 with IRCv3.Gravatar Peter Powell2018-08-134-4/+4
| | | | | | | | IRCv3 no longer does versioned releases.
* | Add support for the IRCv3 batch specification.Gravatar Peter Powell2018-08-132-1/+234
| | | | | | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* | Add support for the IRCv3 server-time specification.Gravatar Peter Powell2018-08-132-1/+81
| | | | | | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* | Add support for the IRCv3 account-tag specification.Gravatar Peter Powell2018-08-131-0/+62
| | | | | | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* | Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-1325-237/+421
| | | | | | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* | Add an accessor for the last mode change list to ModeParser.Gravatar Peter Powell2018-08-131-1/+1
| | | | | | | | GetLastParse will be going away soon.
* | Convert AWAY to use cross-module events and clean up slightly.Gravatar Peter Powell2018-08-126-42/+66
| | | | | | | | | | | | | | OnSetAway has been replaced with four events. OnUserPreAway and OnUserPreBack can be used to deny an away state change and/or change the away message of a local user. OnUserAway and OnUserBack allow modules to be notified that a user's away state has changed.
* | Pass the Extensible container to ExtensionItem::free().Gravatar Peter Powell2018-08-124-6/+6
| |
* | Move message parsing to ProcessBuffer and fix edge cases in it.Gravatar Peter Powell2018-08-101-1/+1
| |
* | Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.Gravatar Peter Powell2018-08-105-17/+17
| | | | | | | | | | This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously.
* | Remove the integer overloads of irc::tokenparser::GetToken().Gravatar Peter Powell2018-08-101-1/+4
| | | | | | | | | | The int overload was never used and the long overload was used in one place.
* | Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.Gravatar Peter Powell2018-08-102-2/+2
| | | | | | | | Special tokenisation rules are not necessary here.
* | Remove the original line parameter of On{Pre,Post}Command.Gravatar Peter Powell2018-08-1017-20/+35
| | | | | | | | | | | | | | | | | | In the brave new world of message tags and alternate wire formats this is no longer something that is appropriate to expose. In reality it was only ever used by m_alias which now reconstitutes the command name and parameters into a RFC 1459-style message for whatever it needs to do.
* | Switch m_xline_db to use the xline snomask character.Gravatar Peter Powell2018-08-101-6/+6
| |
* | Switch m_dnsbl to use its own snomask character.Gravatar Peter Powell2018-08-071-7/+12
| |
* | Remove the 'debug' snotice character.Gravatar Peter Powell2018-08-072-3/+3
| |
* | Make the FJOIN timestamp message easier for users to understand.Gravatar Peter Powell2018-08-051-1/+2
| |
* | Rename User::fullname to realname and make it private.Gravatar Peter Powell2018-07-307-13/+13
| |
* | Replace most usages of "name" with "real" or "real name".Gravatar Peter Powell2018-07-305-7/+7
| |
* | Replace most usages of "GECOS" with "real" or "real name".Gravatar Peter Powell2018-07-306-8/+11
| |
* | Replace irc::stringjoiner with a generic stdalgo::string::join.Gravatar Peter Powell2018-07-263-3/+3
| | | | | | | | | | This can also be used with different types of collection containing values which are not a string.
* | Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-26116-272/+273
| | | | | | | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* | Add a module which implements the HAProxy PROXY v2 protocol.Gravatar Peter Powell2018-07-261-0/+326
| |
* | Make more config stuff case insensitive.Gravatar Peter Powell2018-07-2416-35/+35
| |
* | Fix building on Windows.Gravatar Peter Powell2018-07-241-0/+2
| |
* | Initial support for listening on UNIX socket endpoints.Gravatar Peter Powell2018-07-184-1/+19
| |
* | Add the family() member to the sockaddrs union.Gravatar Peter Powell2018-07-185-9/+9
| |
* | Use mysql_real_escape_string instead of mysql_escape string.Gravatar Peter Powell2018-07-151-3/+2
| | | | | | | | | | | | | | | | This is not exploitable as far as I know but it is probably best that we use the newer function just in case. Closes #649 (although the attack mentioned in that issue was not feasible).
* | Allow exempting of registered users from securelist.Gravatar Peter Powell2018-07-101-1/+9
| |
* | Use !empty() instead of 'size() > 0' when checking parameter count.Gravatar B00mX0r2018-07-033-4/+4
| |
* | Always process MOTD formatting escape codes.Gravatar Peter Powell2018-04-222-5/+2
| | | | | | | | | | The options for disabling these were added to keep compatibility with previous 2.0 releases and are not needed any more.
* | Fix some oversights relating to numerics.Gravatar Peter Powell2018-04-223-3/+3
| | | | | | | | | | - ERR_CANNOTSENDTOCHAN only takes the channel name and a message. - ERR_INVALIDCAPCMD is 410 not 232.
* | Move a bunch of optional module numerics to the module source file.Gravatar Peter Powell2018-04-226-3/+35
| |
* | Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN.Gravatar Peter Powell2018-04-222-2/+2
| | | | | | | | | | | | There is no reason for these responses to have their own numerics when other modules do not. The only thing this does is make life harder for client developers.
* | Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-225-2/+49
|\|
| * Fix blank instead of empty PART message when a user is shunnedGravatar B00mX0r2018-04-111-1/+1
| |
| * Remove swhois messages set in the oper block on deoper.Gravatar Peter Powell2018-04-091-4/+33
| | | | | | | | Closes #1240.
| * Set User::host before calling ChangeIP()Gravatar Peter Powell2018-04-061-3/+3
| | | | | | | | | | | | ChangeIP() calls SetClientIP() which revalidates whether the user matches an ELine. However, because the hostname has not changed yet the user may incorrectly be marked as non-exempt.
| * Update the GeoIP ExtItem when CGI:IRC sets the real IP (#1471)Gravatar genius30002018-03-301-1/+8
| | | | | | | | | | | | | | | | | | Since CGI:IRC calls it's 'ChangeIP()' either from 'OnCheckReady()' or 'OnUserRegister()', both of which are called after the user has sent NICK/USER, we can safely skip re-setting the ExtItem prior to this point. This skips the first 'OnSetUserIP()' from 'User::AddUser()' as the 'OnSetConnectClass()' catch handles the initial setting.
| * m_ssl_openssl: Remove deprecated API members.Gravatar Wade Cline2018-03-021-3/+12
| | | | | | | | Backported from 2afc1af4639ae2bbef397f4f6acc834950017d91.
| * Revert std::set changes and add duplicate checking in m_banredirect instead, ↵Gravatar linuxdaemon2018-01-251-11/+18
| | | | | | | | as requested by @Adam-
| * Fix comparator logic for ordering by channelGravatar linuxdaemon2018-01-251-3/+3
| |