summaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
AgeCommit message (Collapse)Author
2021-05-14Update copyright headers.InspIRCd Robot
2021-05-08Send ERR_BADCHANMASK when trying to OJOIN/SAJOIN an invalid channel.Sadie Powell
2020-05-29Use ChanModeReference for finding the op mode in ojoin.Sadie Powell
2020-04-10Update the module descriptions using mkversion.Sadie Powell
2020-03-09Fix unnecessary inlining in command handler constructors.Sadie Powell
2020-01-31Update copyright headers.InspIRCd Robot
2020-01-29Add Channel::WriteRemoteNotice and revert WriteNotice changes.Sadie Powell
This is a partial reversion of 687778b72e. See also: #1749.
2020-01-11Update copyright headers.InspIRCd Robot
2019-11-17Allow Channel::WriteNotice send to other servers and status ranks.Peter Powell
2019-04-28Some more text fixes and improvements (#1618).Robby
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.
2017-11-21Add the override keyword in places that it is missing.Peter Powell
GCCs warnings for this are much better than Clangs.
2017-11-06Add support for setting the unset rank in ModeHandler.Peter Powell
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-12-30Penalize commands that had 0 penaltyAttila Molnar
2016-08-30Change Membership:hasMode() to accept a PrefixModeAttila Molnar
2016-03-05Send NOTICEs to local channel members with Channel::WriteNotice()Attila Molnar
2016-02-25Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Attila Molnar
parameters
2014-09-03Replace irc::modestacker usage with the new ModeParser::Process()Attila Molnar
2014-08-06m_ojoin Change allocation of NetworkPrefix to be physically part of the ↵Attila Molnar
object containing it
2014-08-06m_ojoin Leave it to the core throw an exception if the prefix char is in useAttila Molnar
2014-08-06Pass prefix rank and prefix char to PrefixMode constructorAttila Molnar
2014-07-25Merge insp20Attila Molnar
2014-04-13m_ojoin Remove pointless FindChan() callAttila Molnar
Found by Coverity, CID: 1135649
2013-11-12Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Adam
automatically
2013-09-11Create a base class for prefix modesattilamolnar
Move Channel::SetPrefix() into Membership
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
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-08Fix a couple of issuesattilamolnar
- Wrong doc for Snomask::GetDescription() - Incorrect idle time when WHOISing remote users - String + int = garbage - Remote MODE commands (user mode changes) being broadcast in addition to being forwarded - Incorrect revision being shown
2013-08-04Automatically attach modules to eventsattilamolnar
2013-07-19m_ojoin Stop hardcoding +Y, move global vars into a class, move ↵attilamolnar
initialization code into init()
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-13Remove TR_END, remove TRANSLATEx() from commands that do not need itattilamolnar
2013-06-13Introduce ModeProcessFlags, can be passed to ModeParser::Process() to ↵attilamolnar
indicate local only mode changes and mode merges Change ProtocolInterface::SendMode() to take source and destination parameters, and call it from the mode parser whenever the mode change is global This deprecates the ambiguous InspIRCd::SendMode() and InspIRCd::SendGlobalMode() interface (the latter sent mode changes originating from local users twice, etc.)
2013-06-06Store prefix rank in a ModeHandler field, change ↵attilamolnar
ModeHandler::GetPrefixRank() to be non-virtual
2013-05-27Simplify user mode removal via ModeHandler::RemoveMode()attilamolnar
The function does not need to be virtual because the core can remove any user mode using the default logic The optional modestack parameter was always NULL, so remove it
2013-05-27Deduplicate RemoveMode() implementationsattilamolnar
The default (core) implementation can now remove prefix modes The modestacker parameter is now mandatory
2013-05-18Remove the size argument from IsChannel and IsNick.Peter Powell
There was only one case (which was probably an error) where these methods were not set to their ServerLimits value.
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-05-14Add method for writing server notices.Peter Powell
This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name.
2013-04-13Channel::JoinUser() and Channel::ForceChan() changesattilamolnar
Convert static Channel::ForceChan() to non-static Channel::ForceJoin() that joins a user to a channel, no permission checks The (static) Channel::JoinUser() now has a LocalUser parameter, and no longer have TS and bursting parameters. If the channel doesn't exist, it is created using current time as TS
2013-04-13OnUserPreJoin is a local-only hook, change User* parameter to LocalUser*attilamolnar
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-04-01Purge references to the deprecated GetStackedLine method.Peter Powell
2013-04-01Change channel name parameter of Module::OnUserPreJoin() and ↵attilamolnar
Channel::JoinUser() to std::string from char*
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-11-19ServerConfig::ServerName is a std::string, don't call .c_str() on it when ↵attilamolnar
passing it to Channel::WriteChannelWithServ, etc.
2012-10-24m_ojoin Fix giving +Y only instead of +Yo when <ojoin:op> is on and the user ↵attilamolnar
is already in the channel
2012-10-12Remove superfluous std::string()sattilamolnar
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-