aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move Channel::UserList() from core to cmd_namesGravatar Attila Molnar2015-05-161-63/+0
| |
* | Move topic and NAMES sending on join from core into core_channelGravatar Attila Molnar2015-05-161-10/+0
| |
* | Fix miscalculation of maxlen in Channel::UserList() introduced by the ↵Gravatar Attila Molnar2015-02-271-1/+1
| | | | | | | | WriteNumeric() conversion
* | Verify that the chan in chanlist is in fact the same object as us in ↵Gravatar Attila Molnar2015-01-161-1/+1
| | | | | | | | Channel::CheckDestroy() before proceeding
* | Gracefully handle multiple Channel::CheckDestroy() calls on the same objectGravatar Attila Molnar2015-01-161-6/+5
| | | | | | | | Don't add the channel to the cull list more than once
* | Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-2/+2
| | | | | | | | substr() returns a new string while erase() and assign() modify the existing one
* | Merge insp20Gravatar Attila Molnar2014-10-271-0/+8
|\|
| * Reject parameters that begin with a colon in Channel::SetDefaultModes()Gravatar Attila Molnar2014-09-261-0/+5
| |
| * Don't try to set a mode in Channel::SetDefaultModes() if it needs a ↵Gravatar Attila Molnar2014-09-261-0/+3
| | | | | | | | | | | | parameter but does not have one Thanks to @docwhat for helping to track this down, fixes issue #924
* | Store Membership objects physically in the nodes of Channel::MemberMapGravatar Attila Molnar2014-09-271-4/+4
| |
* | Remove typedef UserMembIter, use Channel::MemberMap::iterator insteadGravatar Attila Molnar2014-07-141-10/+10
| | | | | | | | Remove the now unused UserMembList typedef too
* | Kill needless #includes in source filesGravatar Attila Molnar2014-06-141-2/+0
| |
* | Return the newly created Membership object from Channel::ForceJoin()Gravatar Attila Molnar2014-06-101-3/+4
| |
* | Change Channel::KickUser() to accept an iterator, add overload that accepts ↵Gravatar Attila Molnar2014-06-101-3/+3
| | | | | | | | | | | | a User Remove srcmemb parameter
* | Move pre-kick checks from core to cmd_kick (core_channel)Gravatar Attila Molnar2014-06-101-39/+0
| |
* | Remove needless checks from Invitation::Find()Gravatar Attila Molnar2014-05-061-2/+0
| |
* | Change the OnNamesListItem() hook to return ModResultGravatar Attila Molnar2014-04-201-3/+4
| | | | | | | | Return MOD_RES_DENY to exclude the user from the NAMES list
* | Kill <channels> in favour of <connect:maxchans> and <oper:maxchans>.Gravatar Peter Powell2014-04-111-17/+13
| | | | | | | | Remove channels/high-join-limit privilege
* | Avoid double Membership lookup in Channel::UserList()Gravatar Attila Molnar2014-04-091-6/+1
| | | | | | | | The user is always inside if UserList() is called from ForceJoin() and the HasUser() result obtained in the /NAMES handler can be reused
* | Move checks determining whether a user is allowed to view the NAMES list of ↵Gravatar Attila Molnar2014-04-091-6/+0
| | | | | | | | a channel from Channel::UserList() to cmd_names
* | Eliminate usage of has_one in Channel::UserList()Gravatar Attila Molnar2014-04-091-9/+2
| |
* | Merge insp20Gravatar Attila Molnar2014-04-071-1/+2
|\|
| * Fix NAMES list getting truncated on servers having an excessively long ↵Gravatar Attila Molnar2014-03-131-1/+2
| | | | | | | | server name
| * Backport "Refactor Channel::UserList() to use std::string"Gravatar Attila Molnar2014-03-131-25/+21
| | | | | | | | | | | | This gets rid of questionable snprintf() usage, reported by @hifi Backported commit: 8a06d54076551387f83a29360478ee6605e241b6
* | Check if Membership::GetPrefixChar() returns 0 before appending it to a stringGravatar Attila Molnar2014-03-311-1/+3
| | | | | | | | Spotted by @barosl
* | Change allocation of InspIRCd::chanlist to be physically part of the object ↵Gravatar Attila Molnar2014-03-141-4/+4
| | | | | | | | containing it
* | Index Channel::modes and User::modes with the id of the mode instead of its ↵Gravatar Attila Molnar2014-02-211-5/+3
| | | | | | | | letter
* | Add ParamModeBase and ParamMode, change all parameter modes to inherit from ↵Gravatar Attila Molnar2014-02-151-29/+6
| | | | | | | | | | | | | | | | | | | | ParamMode - Type of the extension used to store data is a template parameter - The extension is automatically unset when the mode is unset - Handlers inheriting from ParamMode have to provide OnSet() and SerializeParam(); may optionally provide OnUnset() - Transparently handle the case when OnSet() modifies the mode parameter - Remove Channel::custom_mode_params map; ask the mode handlers to serialize their parameters instead
* | Move GetAllPrefixChars() from Channel to MembershipGravatar Attila Molnar2014-02-141-9/+5
| |
* | Move GetPrefixChar() from Channel to MembershipGravatar Attila Molnar2014-02-141-14/+12
| |
* | Remove some dead codeGravatar Attila Molnar2014-01-311-1/+0
| |
* | Destroy Memberships of a quitting user in QuitUser() instead of in cull()Gravatar Attila Molnar2014-01-251-2/+0
| |
* | Convert InviteBase::invites to an intrusively linked listGravatar Attila Molnar2014-01-241-26/+8
| |
* | Remove classbase inheritance from InvitationGravatar Attila Molnar2014-01-241-2/+0
| |
* | Convert UserChanList to an intrusively linked listGravatar Attila Molnar2014-01-241-3/+3
| |
* | Merge insp20Gravatar Attila Molnar2014-01-211-2/+3
|\|
| * Fix some logically dead code which was found by Coverity.Gravatar Peter Powell2014-01-211-10/+2
| |
| * Show +i users on a channel to opers having the channels/auspex priv who do ↵Gravatar Attila Molnar2014-01-041-2/+4
| | | | | | | | | | | | /NAMES from outside of the chan Discovered by @Cronus89
| * Remove unused variables, avoid copies where possible, check empty() instead ↵Gravatar attilamolnar2013-05-161-1/+0
| | | | | | | | | | | | of size() == 0 Most of these were detected by cppcheck
* | Make various self contained methods static.Gravatar Peter Powell2013-12-151-1/+1
| | | | | | | | | | - InspIRCd::IsValidMask - InspIRCd::TimeString
* | Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-15/+14
| | | | | | | | automatically
* | Move prefix mode specific fields and getters into PrefixModeGravatar attilamolnar2013-09-111-11/+9
| | | | | | | | Add ModeHandler::IsPrefixMode()
* | Create a base class for prefix modesGravatar attilamolnar2013-09-111-16/+9
| | | | | | | | Move Channel::SetPrefix() into Membership
* | Fix a few problemsGravatar attilamolnar2013-08-221-1/+0
| | | | | | | | | | | | - Fix configuration issue on systems without both GnuTLS and OpenSSL. (@SaberUK) - Do not set Membership::modes in ForceJoin() incorrectly to privs - Fix crash when spanningtree detects a configuration error on load
* | Clean up a few constructorsGravatar attilamolnar2013-08-121-6/+1
| | | | | | | | Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead
* | Require privs given on initial join to be in <options:defaultmodes>.Gravatar Peter Powell2013-08-101-2/+5
| |
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-7/+7
| |
* | Replace hardcoded mode letters, part 3Gravatar attilamolnar2013-07-191-1/+2
| | | | | | | | This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
* | Replace hardcoded mode letters, part 2Gravatar attilamolnar2013-07-191-21/+21
| | | | | | | | This changes all remaining Channel::IsModeSet() and Channel::GetModeParameter() calls to use ModeReferences for modes that were created by other modules or the core
* | Seperate ModeReference into ChanModeReference and UserModeReferenceGravatar attilamolnar2013-07-191-1/+1
| |