11317 Commits

Author SHA1 Message Date
attilamolnar
397dea782f CommandParser::ProcessCommand() and ProcessBuffer() cleanup
- Change return types to void
- Use a pointer to the command handler instead of an iterator
2013-06-01 22:57:59 +02:00
attilamolnar
84b40a76b8 Improve command parser logic when there are more params than Command::max_params 2013-06-01 22:55:37 +02:00
attilamolnar
dac63207aa Remove (non-functional) total_bytes counter from Command 2013-06-01 22:52:02 +02:00
Attila Molnar
a15d4c391b Merge pull request #551 from SaberUK/master+unused-configure
Remove unused code from configure.
2013-06-01 12:53:25 -07:00
Peter Powell
d9c1809b26 Remove unused code from configure. 2013-06-01 20:33:13 +01:00
attilamolnar
3406c7234a Simplify user mode removal via ModeHandler::RemoveMode()
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-27 01:07:30 +02:00
attilamolnar
9bb24d3f45 Deduplicate RemoveMode() implementations
The default (core) implementation can now remove prefix modes
The modestacker parameter is now mandatory
2013-05-27 01:07:29 +02:00
Peter Powell
244a65e855 Clean up the FileReader class and all of the modules that use it.
- Modules which use this class will now have to catch a
  CoreException when opening files if they wish to ignore
  the failed loading of a file.
- m_randquote has been cleaned up massively and the RANDQUOTE
  command has been removed as it was pretty much useless.
2013-05-27 00:15:30 +02:00
attilamolnar
ee641f3f22 LogManager cleanup 2013-05-24 18:38:55 +02:00
attilamolnar
1911857e3a Cache mode list that is sent in the 004 numeric
Deduplicate UserModeList(), ChannelModeList() and ParaModeList() code
2013-05-24 18:22:25 +02:00
attilamolnar
b8c1db4e90 Remove dead ModeParser code 2013-05-24 18:20:58 +02:00
Adam
f2dcf19923 Add a va_copy define for Windows 2013-05-23 13:26:11 -04:00
Adam
da69771af6 Some systems with whacky va_list implementations do undefined stuff when vsnprintf is called multiple times with the same list, so have InspIRCd::Format va_copy the list before each call 2013-05-23 13:19:12 -04:00
Adam
27f046550c Change CacheRefreshTimer tick time back to 5 minutes 2013-05-23 12:22:54 -04:00
Attila Molnar
b36ce84c7d Merge pull request #545 from SaberUK/master+logging-cleanup
Clean up the logging system (part 1 of 2).
2013-05-21 17:11:46 -07:00
Attila Molnar
4710844dca Merge pull request #522 from SaberUK/master+xline-displayable
Convert XLine::Displayable to return a std::string.
2013-05-21 17:09:56 -07:00
Peter Powell
48033e9b3a Convert XLine::Displayable to return a std::string. 2013-05-21 22:11:27 +01:00
Peter Powell
994787e907 Fix msvc detection of variadic template support 2013-05-20 23:51:45 -04:00
Adam
0d95204c98 Merge pull request #548 from SaberUK/master+variadic-templates
Add support for detecting C++11 variadic templates.
2013-05-20 18:55:49 -07:00
Peter Powell
b40f197f20 Add support for detecting C++11 variadic templates. 2013-05-21 02:34:10 +01:00
attilamolnar
7a67685bcb Remove OnUserPreNotice and OnUserNotice hooks, add MessageType argument to 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
2013-05-20 23:30:11 +02:00
Adam
06a606ea66 Fixup last commit 2013-05-20 14:20:08 -04:00
Attila Molnar
991a6a429b Merge pull request #542 from ShutterQuick/inspircd+printfcleanup
Replaced all the individual vsnprintfing with a macro
2013-05-20 11:05:05 -07:00
Peter Powell
3e105c6311 Fix spacing in calls to LogManager::Log. 2013-05-19 19:33:36 +01:00
Peter Powell
b180658962 Accept a LogLevel instead of an int in logging methods. 2013-05-19 17:11:57 +01:00
Peter Powell
5ad9b97fcf Purge a ton of code related to non <log> related logging.
- InspIRCd::OpenLog
- ./inspircd --logfile [file]

This is no longer needed now we have (since 1.2) custom logging.
2013-05-19 17:11:53 +01:00
Peter Powell
ad0828aa64 Move LogHeader to LogStream. 2013-05-19 03:22:54 +01:00
Peter Powell
ac726c8896 Move LogLevel enum from filelogger to logger. 2013-05-19 03:22:41 +01:00
Daniel Vassdal
4e40ee49bb Replaced vsnprintf with VAFORMAT pretty much everywhere. 2013-05-18 14:01:21 -07:00
Daniel Vassdal
42ae479081 Added macro to allow simpler logic in functions with the need to vsnprintf 2013-05-18 14:01:21 -07:00
attilamolnar
3ce33ee0e6 Change the signature of User::ForceNickChange() to accept const std::string& instead of const char* 2013-05-18 21:24:22 +02:00
attilamolnar
f3d134a5b6 Get rid of the NICKForced extension
Don't run OnUserPreNick when the nick change is forced
2013-05-18 21:23:52 +02:00
attilamolnar
b0d652a15f Remove unused UserManager::ServerPrivmsgAll() 2013-05-18 21:09:44 +02:00
attilamolnar
801af5b473 irc::tokenstream and irc::sepstream cleanup
irc::sepstream does not require virtual methods
2013-05-18 21:09:31 +02:00
attilamolnar
21eba8e86b irc::stringjoiner cleanup
- Get rid of unused constructors
- signed -> unsigned
- return const ref from GetJoined()
2013-05-18 21:08:25 +02:00
attilamolnar
780757cbc1 Deduplicate hex string creation code 2013-05-18 21:07:42 +02:00
Attila Molnar
8f27fefa75 Merge pull request #543 from SaberUK/master+sizeparam-removal
Remove the size argument from IsChannel and IsNick.
2013-05-18 12:03:55 -07:00
Attila Molnar
143b2b0818 Merge pull request #541 from SaberUK/master+chanlog
Purge the old chanlog code from the module file.
2013-05-18 11:12:44 -07:00
Peter Powell
5c9427cde0 Remove the size argument from IsChannel and IsNick.
There was only one case (which was probably an error) where these
methods were not set to their ServerLimits value.
2013-05-18 19:11:07 +01:00
Peter Powell
c775be0c82 Purge the old chanlog code from the module file. 2013-05-18 17:21:48 +01:00
Daniel Vassdal
6153822a2d Added a function to replace all the ugly sprintf-ing everywhere 2013-05-16 21:34:45 +02:00
attilamolnar
842245a8d4 Fix padding bug in GenerateSID(), spotted by @ShutterQuick 2013-05-16 21:34:45 +02:00
Adam
f79e9a3e80 Merge pull request #538 from SaberUK/master+silence-gcc
Fix GCC warnings about using C++11 features when not in C++11 mode.
2013-05-16 08:47:07 -07:00
Peter Powell
8e9abaaa73 Fix GCC warnings about using C++11 features when not in C++11 mode. 2013-05-16 16:43:35 +01:00
Adam
55fea4a010 Merge pull request #537 from SaberUK/master+fix-poll
Fix the poll socket engine.
2013-05-16 08:31:46 -07:00
Peter Powell
fe6ac0f2d6 Fix the poll socket engine. 2013-05-16 16:18:54 +01:00
Adam
c69ebbb96f Merge pull request #536 from SaberUK/master+fix-kqueue-test
Fix kqueue test on non-Apple BSDs.
2013-05-16 07:55:08 -07:00
Peter Powell
f393534da7 Fix kqueue test on non-Apple BSDs. 2013-05-16 15:10:26 +01:00
Adam
fc07147dee Merge pull request #521 from SaberUK/master+configure-tests
Improve feature detection in configure.
2013-05-16 06:37:24 -07:00
Peter Powell
a9ca786a6a Improve feature detection in configure. 2013-05-16 14:34:07 +01:00