aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_alias.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix aliases that resolve to messages echoing with echo-message.Gravatar Peter Powell2018-08-151-0/+15
| | | | Fixes #1459.
* Fix m_alias not reconstituting the RFC message properly.Gravatar Peter Powell2018-08-151-2/+2
|
* Implement IRCv3 message tag support.Gravatar Peter Powell2018-08-131-1/+1
| | | | Co-authored-by: Attila Molnar <attilamolnar@hush.com>
* Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.Gravatar Peter Powell2018-08-101-2/+2
| | | | | This simplifies the logic of irc::tokenparser considerably and removes all of the magic index guessing that was used previously.
* Remove the original line parameter of On{Pre,Post}Command.Gravatar Peter Powell2018-08-101-1/+16
| | | | | | | | | 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.
* Use CommandBase::Params instead of std::vector<std::string>.Gravatar Peter Powell2018-07-261-2/+2
| | | | | This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters.
* Rework message handling.Gravatar Peter Powell2018-01-061-7/+7
| | | | | | | | | | | | | - 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.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
|
* Hide User#host and User#dhost and use accessors to modify them.Gravatar Peter Powell2017-10-281-2/+2
| | | | | This removes the need to invalidate the cache after changing a user's hostname.
* Add support for length arguments in getString.Gravatar Peter Powell2017-09-031-2/+1
|
* Remove <alias:matchcase> and associated code.Gravatar Peter Powell2017-08-131-14/+2
| | | | This was never documented and seems pretty useless.
* Add CXX11_OVERRIDE to overridden members that lack it.Gravatar Peter Powell2017-07-121-1/+1
| | | | | This fixes a ton of warnings when building on compilers that default to C++11 or newer.
* Rework the example services aliases.Gravatar Peter Powell2016-11-161-3/+8
| | | | | | | - 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.
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-2/+2
| | | | parameters
* Fix some whitespace issuesGravatar Attila Molnar2015-12-281-1/+1
|
* Add support for channel alias prefixes with multiple characters.Gravatar Peter Powell2015-06-031-9/+9
|
* Convert mods calling the old compat wrapper of ModuleManager::SetPriority() ↵Gravatar Attila Molnar2015-02-151-1/+1
| | | | to use the current method, remove wrapper
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-2/+2
| | | | substr() returns a new string while erase() and assign() modify the existing one
* Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-1/+1
| | | | Extensible storage
* Change allocation of InspIRCd::Parser to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | containing it
* Switch to std::string::compare() from substr() in a couple of placesGravatar Attila Molnar2014-05-261-5/+5
|
* m_alias Remove duplicate checksGravatar Attila Molnar2014-01-271-7/+3
|
* m_alias Use equal_range() when searching for aliasesGravatar Attila Molnar2014-01-271-19/+6
|
* Merge insp20Gravatar Attila Molnar2014-01-211-2/+2
|\
| * m_alias Fix out of bounds string access that happened with certain replace ↵Gravatar Attila Molnar2014-01-191-2/+2
| | | | | | | | strings
* | Stop null checking pointers that are always validGravatar Attila Molnar2014-01-091-1/+1
| |
* | Introduce Server classGravatar Attila Molnar2014-01-051-1/+1
| | | | | | | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* | Add functor that does strict weak ordering based on ↵Gravatar Attila Molnar2014-01-041-16/+16
| | | | | | | | national_case_insensitive_map
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-2/+2
| | | | | | | | automatically
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-12/+2
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
| |
* | Replace hardcoded mode letters, part 3Gravatar attilamolnar2013-07-191-1/+7
| | | | | | | | This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Compare to ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
| |
* | Reserve ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
| |
* | Merge insp20Gravatar attilamolnar2013-06-061-1/+1
|\|
| * Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-161-1/+1
| | | | | | | | | | | | of size() == 0 Most of these were detected by cppcheck
* | Remove #define MAXPARAMETERS and "MAXPARA" 005 tokenGravatar attilamolnar2013-06-011-1/+1
| |
* | Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to ↵Gravatar attilamolnar2013-05-201-2/+2
| | | | | | | | | | | | 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
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-7/+7
| | | | | | | | | | - 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.
* | Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-8/+1
|/
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-3/+2
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* Attach to events and register services in init()Gravatar attilamolnar2012-12-021-1/+1
|
* Remove usage of the deprecated ConfigReaderGravatar attilamolnar2012-11-121-5/+3
|
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-2/+2
|
* Fix undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-231-1/+2
| | | | | | | std::string::c_str() when the object is temporary Thanks to @ChrisTX for pointing this out Fixes #257 reported by @helloall
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Fix incorrect default on <alias:channelcommand>Gravatar Daniel De Graaf2010-07-301-2/+2
|
* PreCommand/PostCommand are local-only hooksGravatar danieldg2010-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12291 e03df62e-2008-0410-955e-edbf42e46eb7