aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_chanhistory.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-1/+1
| | | | GCCs warnings for this are much better than Clangs.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
|
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-1/+1
| | | | substr() returns a new string while erase() and assign() modify the existing one
* Add ParamModeBase and ParamMode, change all parameter modes to inherit from ↵Gravatar Attila Molnar2014-02-151-40/+39
| | | | | | | | | | 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
* Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-6/+0
|
* Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-3/+1
| | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* Option to select if chanhistory is on for botsGravatar Daniel Vassdal2013-08-241-1/+7
|
* Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
|
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
|
* Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() ↵Gravatar attilamolnar2013-07-011-1/+1
| | | | with ModeHandlers, part 1
* Call Channel::SetModeParam() from the mode parser when needed instead of ↵Gravatar attilamolnar2013-06-131-2/+0
| | | | requiring mode handlers to do it
* 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-5/+5
| | | | | - 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 some C-isms with C++-isms.Gravatar Peter Powell2013-05-151-5/+3
| | | | | | * 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask.
* Add method for writing server notices.Gravatar Peter Powell2013-05-141-2/+1
| | | | | | | | | 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.
* Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-1/+1
|
* m_chanhistory Fix durations containing 'S' being rejectedGravatar attilamolnar2013-01-271-2/+2
|
* Register a few extensions that weren't registeredGravatar attilamolnar2012-12-021-0/+1
|
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-1/+1
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* m_chanhistory Read the boolean config entry with getBool()Gravatar attilamolnar2012-07-121-1/+1
|
* m_halfop, m_chanhistory Remove redundant ModeParser::DelMode() calls, the ↵Gravatar attilamolnar2012-07-121-5/+0
| | | | modes are deleted automatically on unload
* m_chanhistory Keep history when changing parametersGravatar attilamolnar2012-06-171-1/+15
|
* m_chanhistory Don't allow durations that contain an invalid char or too longGravatar attilamolnar2012-06-171-4/+23
|
* m_chanhistory Add config setting to show/hide the informational notice ↵Gravatar attilamolnar2012-06-171-3/+14
| | | | before playing back history, don't playback to remote users
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+14
|
* Prevent setting mode -H if already unset, bug #74Gravatar Daniel De Graaf2010-08-281-0/+2
|
* Add <chanhistory:maxlines> to specify the maximum allowed size of channel ↵Gravatar danieldg2010-02-171-5/+19
| | | | | | history git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12488 e03df62e-2008-0410-955e-edbf42e46eb7
* Deny identical mode +H changeGravatar danieldg2010-02-151-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12466 e03df62e-2008-0410-955e-edbf42e46eb7
* Move chanhistory to PostJoin hookGravatar danieldg2010-02-091-2/+2
| | | | | | | While irssi is currently able to show the lines sent prior to join, it is better for this module to work on all clients without modification. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12407 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_COMMON from mode-provider modules (no longer needed due to better ↵Gravatar danieldg2010-01-151-1/+1
| | | | | | CAPAB checking) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12263 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to Duration for second paramGravatar danieldg2009-10-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11898 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix channel mode +H to allow maximum length and add explanatory message prefixGravatar danieldg2009-10-171-10/+25
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11897 e03df62e-2008-0410-955e-edbf42e46eb7
* Add m_chanhistory, mode +H <lines> to replay some lines of history on ↵Gravatar danieldg2009-10-171-0/+106
channel join git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11895 e03df62e-2008-0410-955e-edbf42e46eb7