aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert GenRandom to std::function.Gravatar Peter Powell2017-11-251-1/+1
|
* Convert IsChannel to std::function.Gravatar Peter Powell2017-11-251-1/+1
|
* Convert IsIdent to std::function.Gravatar Peter Powell2017-11-251-1/+1
|
* Convert IsNick to std::function.Gravatar Peter Powell2017-11-251-1/+1
|
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
|
* Switch the default datetime format to something easier to read.Gravatar Peter Powell2017-10-201-1/+1
|
* Move the OnCheckExemption hook out of the core.Gravatar Peter Powell2017-03-201-25/+0
|
* Fix InspIRCd::StripColor() stripping characters that shouldn't be strippedGravatar Attila Molnar2015-12-291-1/+1
|
* Strip all control codes except \001 in InspIRCd::StripColor()Gravatar Attila Molnar2015-12-081-1/+2
| | | | Fixes issue #1100 reported by @uecasm
* Deduplicate code in InspIRCd::FindNick()Gravatar Attila Molnar2015-12-071-8/+1
|
* Move InspIRCd::SendError() to cmd_dieGravatar Attila Molnar2015-05-171-19/+0
| | | | Fix multiple ERROR messages being sent to unregistered users by removing the "Exiting with status..." message
* Move OnWhois* events to core_whois, add Whois::ContextGravatar Attila Molnar2015-04-281-20/+0
| | | | Remove InspIRCd::SendWhoisLine()
* Prepend target user nick to whois numerics in InspIRCd::SendWhoisLine()Gravatar Attila Molnar2015-04-281-1/+3
|
* Access local user list via new UserManager::GetLocalUsers() and make ↵Gravatar Attila Molnar2014-07-191-1/+2
| | | | local_users private
* Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-1/+1
|
* Add parameter to InspIRCd::TimeString for UTC time formats.Gravatar Peter Powell2014-06-251-2/+2
| | | | Missing doc added by @attilamolnar
* Add formatting to InspIRCd::TimeString; switch all code to use it.Gravatar Peter Powell2014-06-251-2/+10
| | | | | | m_httpd also now uses the correct timestamp format. Windows-specific fixes by @attilamolnar, original PR #849
* Switch to std::string::compare() from substr() in a couple of placesGravatar Attila Molnar2014-05-261-1/+1
|
* Change allocation of UserManager::clientlist to be physically part of the ↵Gravatar Attila Molnar2014-03-151-4/+4
| | | | object containing it
* Change allocation of UserManager::uuidlist to be physically part of the ↵Gravatar Attila Molnar2014-03-141-2/+2
| | | | object containing it
* Change allocation of InspIRCd::chanlist to be physically part of the object ↵Gravatar Attila Molnar2014-03-141-2/+2
| | | | containing it
* Move server description field from TreeServer into Server; remove ↵Gravatar Attila Molnar2014-01-051-17/+0
| | | | OnGetServerDescription hook
* Introduce Server classGravatar Attila Molnar2014-01-051-17/+0
| | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* Clean up CoreExceptionGravatar Attila Molnar2013-12-181-2/+2
| | | | | - Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
* Fix issues discovered by CoverityGravatar Daniel Vassdal2013-12-181-0/+2
| | | | | - Fix resource leak in InspIRCd::Format() - Explicitly set NewServices to NULL before the object it points to goes out of scope
* Use WriteNumeric() everywhere we send numerics and include the user's nick ↵Gravatar Adam2013-11-121-1/+1
| | | | automatically
* Move prefix mode specific fields and getters into PrefixModeGravatar attilamolnar2013-09-111-1/+1
| | | | Add ModeHandler::IsPrefixMode()
* Merge insp20Gravatar attilamolnar2013-08-301-1/+20
|\
| * Fix crash caused by passing a large integer to ctime()Gravatar attilamolnar2013-08-271-1/+20
| | | | | | | | | | | | In addition to verifying the return value of localtime(), correct tm_year if it is out of bounds Reported by @JDowny
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-1/+1
| |
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
| |
* | Move a few trivial functions into headersGravatar attilamolnar2013-06-021-6/+0
| |
* | Some systems with whacky va_list implementations do undefined stuff when ↵Gravatar Adam2013-05-231-3/+15
| | | | | | | | vsnprintf is called multiple times with the same list, so have InspIRCd::Format va_copy the list before each call
* | Merge pull request #545 from SaberUK/master+logging-cleanupGravatar Attila Molnar2013-05-211-23/+1
|\ \ | | | | | | Clean up the logging system (part 1 of 2).
| * | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-1/+1
| | |
| * | Purge a ton of code related to non <log> related logging.Gravatar Peter Powell2013-05-191-22/+0
| | | | | | | | | | | | | | | | | | | | | - InspIRCd::OpenLog - ./inspircd --logfile [file] This is no longer needed now we have (since 1.2) custom logging.
* | | Fixup last commitGravatar Adam2013-05-201-1/+1
| | |
* | | Replaced vsnprintf with VAFORMAT pretty much everywhere.Gravatar Daniel Vassdal2013-05-181-7/+3
| | |
* | | Added macro to allow simpler logic in functions with the need to vsnprintfGravatar Daniel Vassdal2013-05-181-5/+8
|/ /
* | Remove the size argument from IsChannel and IsNick.Gravatar Peter Powell2013-05-181-4/+4
| | | | | | | | | | There was only one case (which was probably an error) where these methods were not set to their ServerLimits value.
* | Added a function to replace all the ugly sprintf-ing everywhereGravatar Daniel Vassdal2013-05-161-0/+13
| |
* | Add method for writing server notices.Gravatar Peter Powell2013-05-141-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | Remove const char* versions of ↵Gravatar attilamolnar2013-04-131-39/+0
| | | | | | | | InspIRCd::FindNick()/FindNickOnly()/FindUUID()/FindChan()
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-2/+2
| |
* | Convert ISUPPORT to use a map instead of a string.Gravatar Peter Powell2013-04-111-20/+0
| |
* | Convert InspIRCd::Duration() to be staticGravatar attilamolnar2013-04-031-1/+1
| |
* | Change IsNickHandler()/IsIdentHandler()/IsChannelHandler() to use C++ ↵Gravatar attilamolnar2013-04-011-27/+14
| | | | | | | | strings as arguments instead of C strings
* | Convert IsSID() to a static member function, modules shouldn't override itGravatar attilamolnar2013-04-011-1/+1
|/
* Remove ServerLimits::Finalise(), it's completely wrongGravatar attilamolnar2012-12-091-2/+2
| | | | Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-1/+1
|