summaryrefslogtreecommitdiff
path: root/src/modules/m_alias.cpp
AgeCommit message (Collapse)Author
2019-01-09Fix m_alias not initialising 'active' before use.Peter Powell
2018-12-19Make more modules rehash atomically (#1535)linuxdaemon
Have each module validate the values it loads before setting them, so any errors don't result in partial application of the configs
2018-08-15Fix aliases that resolve to messages echoing with echo-message.Peter Powell
Fixes #1459.
2018-08-15Fix m_alias not reconstituting the RFC message properly.Peter Powell
2018-08-13Implement IRCv3 message tag support.Peter Powell
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-10Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.Peter Powell
This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously.
2018-08-10Remove the original line parameter of On{Pre,Post}Command.Peter Powell
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.
2018-07-26Use CommandBase::Params instead of std::vector<std::string>.Peter Powell
This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
2018-01-06Rework message handling.Peter Powell
- Move all message-related types to their own header to make moving them to a cross-module events easier. - Rename OnUserMessage to OnUserPostMessage. - Rename OnText to OnUserMessage. - Replace the dest, target_type, and status parameters with the MessageTarget class. - Replace the text, exempt_list, and msgtype parameters with the MessageDetails struct. - Add echooriginal and originaltext to the MessageDetails struct to allow spam filtering to not be broken by cap echo-message.
2017-11-17Fix a ton of -Wsign-conversion warnings.Peter Powell
2017-10-28Hide User#host and User#dhost and use accessors to modify them.Peter Powell
This removes the need to invalidate the cache after changing a user's hostname.
2017-09-03Add support for length arguments in getString.Peter Powell
2017-08-13Remove <alias:matchcase> and associated code.Peter Powell
This was never documented and seems pretty useless.
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-11-16Rework the example services aliases.Peter Powell
- Split common stuff into a generic configuration file. - Reserve all nicknames used by services by default. - Exempt all services clients from filtering. - Add missing aliases for services pseudoclients.
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2015-12-28Fix some whitespace issuesAttila Molnar
2015-06-03Add support for channel alias prefixes with multiple characters.Peter Powell
2015-02-15Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Attila Molnar
to use the current method, remove wrapper
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
2014-12-15Change type of some associative containers to their flat versions, including ↵Attila Molnar
Extensible storage
2014-06-13Change allocation of InspIRCd::Parser to be physically part of the object ↵Attila Molnar
containing it
2014-05-26Switch to std::string::compare() from substr() in a couple of placesAttila Molnar
2014-01-27m_alias Remove duplicate checksAttila Molnar
2014-01-27m_alias Use equal_range() when searching for aliasesAttila Molnar
2014-01-21Merge insp20Attila Molnar
2014-01-19m_alias Fix out of bounds string access that happened with certain replace ↵Attila Molnar
strings
2014-01-09Stop null checking pointers that are always validAttila Molnar
2014-01-05Introduce Server classAttila Molnar
- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
2014-01-04Add functor that does strict weak ordering based on ↵Attila Molnar
national_case_insensitive_map
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-08-30Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵attilamolnar
and on rehash This eliminates the need for calling OnRehash() in init()
2013-08-04Automatically attach modules to eventsattilamolnar
2013-07-19Replace hardcoded mode letters, part 3attilamolnar
This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-06Compare to ServerLimits::MaxLine instead of MAXBUF.Peter Powell
2013-06-06Reserve ServerLimits::MaxLine instead of MAXBUF.Peter Powell
2013-06-06Merge insp20attilamolnar
2013-06-01Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenattilamolnar
2013-05-20Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵attilamolnar
OnUserMessage and OnUserPreMessage All modules (except m_nonotice) that perform filtering on messages have common logic for handling PRIVMSGs and NOTICEs and most of them run the exact same code in both cases
2013-05-16Remove unused variables, avoid copies where possible, check empty() instead ↵attilamolnar
of size() == 0 Most of these were detected by cppcheck
2013-05-15Tidy up keywords on module methods.Peter Powell
- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
2013-04-10Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()attilamolnar
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2012-12-02Dynamically determine the size of the eventlist[] passed to Attach()attilamolnar
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-12-02Attach to events and register services in init()attilamolnar
2012-11-12Remove usage of the deprecated ConfigReaderattilamolnar
2012-10-12Remove superfluous std::string()sattilamolnar
2012-09-23Fix undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary Thanks to @ChrisTX for pointing this out Fixes #257 reported by @helloall
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-