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
attilamolnar
ecf7690813
m_channames Fix iteration in ValidateChans()
...
Spotted by @Adam-
2013-05-18 21:02:09 +02: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
attilamolnar
740539d620
m_httpd_acl Reread config on rehash
2013-05-18 16:05:08 +02:00
attilamolnar
b92f3e2032
m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULL
2013-05-18 16:04:10 +02:00
attilamolnar
67822c67e9
Initialize local_count
2013-05-18 16:03:17 +02:00
Adam
3f782d5cad
Fix m_randquote with 0 quotes
2013-05-16 19:57:53 -04: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
attilamolnar
bb962f92ac
Workaround for std::list::size() having linear complexity on some implementations
2013-05-16 20:51:12 +02:00
attilamolnar
0a8b0d317e
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
...
Most of these were detected by cppcheck
2013-05-16 20:33:46 +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
attilamolnar
712a0e5ff3
Get rid of strlcpy(), strlcat(), charlcat() and charremove()
2013-05-16 02:23:45 +02:00
attilamolnar
01a796e239
m_joinflood Make the code friendlier, unset +j when the module is unloaded
...
See 21c3232b8e0bb41727f2d65a0b2d5304587cf6be and fae560cddc389b88c9cd34afdccf9035f4d11c5b
2013-05-16 02:15:00 +02:00
attilamolnar
a2e9e2837d
irc::Spacify--
2013-05-16 01:57:09 +02:00
attilamolnar
c5a4658380
Allow spaces (and more) in oper types
...
The spaces are converted to '_' characters in OPERTYPE for 2.0 servers
Issue #533 suggested by @ankitkv
2013-05-16 01:56:06 +02:00
Attila Molnar
4b41feea83
Merge pull request #514 from SaberUK/master+virtual-cleanup
...
Remove virtual keyword from a ton of methods which don't need it, introduce CXX11_OVERRIDE.
2013-05-15 13:48:02 -07:00
Peter Powell
4ab1c43c1e
Tidy up keywords on module methods.
...
- 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-15 21:41:36 +01:00
Adam
e586aaab7c
Merge pull request #531 from SaberUK/master+snprintf-removal
...
Replace some C-isms with C++-isms.
2013-05-15 12:33:47 -07:00
attilamolnar
7fb10c11e4
Fix thread handle leak in threadengine_win32
2013-05-15 20:02:55 +02:00