11237 Commits

Author SHA1 Message Date
attilamolnar
59cafb70e6 m_operlog Add tosnomask config option, to log all oper actions to snomask 'r'
If enabled, the commands can be logged to channels with m_chanlog and also other +s +r opers can see them
Fixes #325 reported by @SeLEct-
2012-10-28 15:23:38 +01:00
attilamolnar
1357ed09cc Fix warnings in configreader.cpp on FreeBSD
Fixes #348 reported by @netkurd
2012-10-28 14:58:32 +01:00
Adam
df2ee078aa Issue #346 - fix m_permchannels.cpp and m_xline_db.cpp saving their databases on Windows due to rename() failing if the destination file exists 2012-10-27 09:09:33 -04:00
Peter Powell
3f4349f54a Fix configure system loading cache file too late. 2012-10-26 15:23:58 +02:00
attilamolnar
9fe15c5988 m_ojoin Fix giving +Y only instead of +Yo when <ojoin:op> is on and the user is already in the channel 2012-10-24 17:19:16 +02:00
attilamolnar
c244b6686c m_ircv3 Attach to OnRehash 2012-10-23 22:13:38 +02:00
attilamolnar
d9d0d1b6a9 m_ircv3 Fix away-notify not sending AWAY messages when somebody joins who is away 2012-10-23 22:13:38 +02:00
attilamolnar
91bf556dbd m_nicklock Fix typo 2012-10-23 16:16:34 +02:00
attilamolnar
77266a4a5d m_topiclock Prefix ModDesc with $ 2012-10-23 16:12:32 +02:00
attilamolnar
16fad76feb m_nickflood Fix a case when channels were locked regardless of elapsed time since the last nick change
Fixes #330 reported by @Shawn-Smith
2012-10-21 18:06:24 +02:00
attilamolnar
2d7d62dfd2 m_nickflood Make code more readable, unset +F when the module is unloaded
See 21c3232b8e0bb41727f2d65a0b2d5304587cf6be and fae560cddc389b88c9cd34afdccf9035f4d11c5b
2012-10-21 18:04:48 +02:00
attilamolnar
bf320518c6 Fix /RESTART not closing file descriptors
Fixes issue #262 reported by @MistrX
2012-10-21 16:47:53 +02:00
attilamolnar
569a742b94 Make better use of User::GetFullRealHost() 2012-10-21 15:10:44 +02:00
attilamolnar
ab9de30e77 Fix KILL accepting SIDs, get rid of potentially unsafe snprintf and strlcpy 2012-10-21 15:05:33 +02:00
Adrien Bustany
9451b734ff m_ldapauth Allow filtering on arbitrary LDAP attributes
This commit implements filtering on LDAP attributes, in a similar way
to what Apache Httpd does with "Require ldap-attribute".
2012-10-19 20:40:16 +02:00
attilamolnar
a4ea01a767 m_filter More cleanup and optimizations
Fix a typo
2012-10-19 20:05:51 +02:00
attilamolnar
330bbfe0a7 m_filter Don't move the filter to the beginning of the vector when a match occurs 2012-10-19 19:22:03 +02:00
attilamolnar
96917a414a m_filter Remove redundant flags field from FilterResult
Change FillFlags() to return the character it did not understand, 0 if all ok
2012-10-19 19:12:30 +02:00
attilamolnar
0694d647be m_filter Change exemptfromfilter to be a set 2012-10-19 18:43:45 +02:00
attilamolnar
52ee43ca1d m_filter Use an enum for filter actions instead of a string 2012-10-19 18:36:22 +02:00
attilamolnar
b5ce066cc2 m_filter Cleanup, remove empty and useless functions 2012-10-19 18:11:40 +02:00
Peter Powell
3479532178 Fix for #268.
- Move color stripping code to helperfuncs.
- Strip color codes before matching filters.
2012-10-19 17:50:08 +02:00
attilamolnar
aa1f468858 m_ident Allow the usage of an overriden IsIdent() instead of using a hardcoded version of it
Fix long idents being accepted regardless of Limits.IdentMax
2012-10-18 15:53:37 +02:00
Attila Molnar
12c0e5d763 Merge pull request #340 from ChrisTX/insp20+clangwarningsfix
Resolve two warnings clang complains about
2012-10-14 15:04:43 -07:00
ChrisTX
90aa5811d1 Resolve two warnings clang complains about
No newline at end of file in consolecolors.h
String plus int in snomasks
2012-10-14 23:58:20 +02:00
Attila Molnar
78a6d62732 Merge pull request #274 from ChrisTX/insp20+gnutlsdeprecation
m_ssl_gnutls: Resolve deprecation warnings properly
2012-10-14 13:39:54 -07:00
Attila Molnar
336e30f61f Merge pull request #338 from ChrisTX/insp20+iostream
Replace printf(_c) with iostream
2012-10-14 12:40:52 -07:00
ChrisTX
ac7a52b738 m_ssl_gnutls: Resolve deprecation warnings properly 2012-10-14 04:03:35 +02:00
ChrisTX
ebdaf368e1 Replace printf(_c) with iostream 2012-10-14 02:13:49 +02:00
attilamolnar
81e644a40b Remove IncreaseOSBuffers() completely 2012-10-14 01:44:18 +02:00
attilamolnar
272208502c m_chancreate Fix snonotices not being sent when remote users create channels
Fixes #318
2012-10-13 16:13:12 +02:00
attilamolnar
4857bf4771 Remove no-op call to IncreaseOSBuffers() from BufferedSocket::BeginConnect() 2012-10-13 16:01:39 +02:00
attilamolnar
daa9f89183 m_ssl_gnutls Cast pointer difference to an unsigned int before displaying it 2012-10-13 15:56:11 +02:00
Adam
c05ad37bfd Merge pull request #320 from ChrisTX/insp20+cleanupwin
Windows: In-depth cleanup (see details)
2012-10-12 14:50:05 -07:00
attilamolnar
e496d321ef Fix broken build 2012-10-12 23:08:44 +02:00
ChrisTX
5b9682275e Windows: In-depth cleanup (see details)
-Fix x64 builds for Windows. Now all configurations compile.
-Remove the non-working rebase stuff.
-Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now.
-Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2
-Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need.
-Enable optimizations for release builds.
-De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure
-Add the VC++ specific bad files in .gitignore
-Disable PID writing on Windows. This is only making sense for *nix builds.
-Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working)
-Removed certain unused functions and variables
-Remove stdint defines from the windows wrapper
-Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds.
-Re-evaluated the warnings list, commented it.
-Moved inspircd_config/_version to include/ to match *nix
-Removed the creation of inspircd_se_config, as it isn't used at all.
-Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out)
-Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly.
-Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down)
-Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded.
-Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways)
-Removed the unused ClearConsole()
-Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate.
-Made inet_aton an inline function for increased performance
-C4800, performance warning about bool forcing, resolved at all occurrences.
-C4701, uninitialized variable 'cached', resolved at all occurrences.
-dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance.
-Removed the wrong CRT debug flags. This drains a lot of performance.
-Removed the clock_gettime/gettimeofday wrappers
-Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function.
-Added a block of C4355 for < VS2012
-Update project files for c870714
2012-10-12 22:31:38 +02:00
attilamolnar
152bf4946c m_cgiirc, m_dnsbl Remove unnecessary includes 2012-10-12 18:51:53 +02:00
attilamolnar
c8b41aa5d2 Remove superfluous std::string()s 2012-10-12 03:57:39 +02:00
attilamolnar
5961493368 Fix unregistered users getting global notices, also fix certain commands working on unregistered users, spotted by @Adam- 2012-10-12 03:46:19 +02:00
Adam
ba6f7fe42f Add myself to the Other Contributors list 2012-10-11 21:15:00 -04:00
Adam
cad8e26a8f Compare the result of ldap_search_ext_s to LDAP_SUCCESS.... 2012-10-10 21:32:11 -04:00
attilamolnar
c8707149b2 Move simple user and channel mode handlers into a single file 2012-10-08 16:58:42 +02:00
attilamolnar
d77540142f Update modules.conf.example with m_ircv3 2012-10-08 16:47:12 +02:00
Attila Molnar
9fc6f1eac5 Merge pull request #321 from ballock/insp20
Allows to use user->ident string instead of user->nick for NickServ.
2012-10-08 07:42:31 -07:00
Boleslaw Tokarski
428a5e3d0f Allows to use user->ident string instead of user->nick for NickServ. 2012-10-08 15:09:09 +02:00
attilamolnar
bf002b8ee0 Release 2.0.9 v2.0.9 2012-10-07 00:29:07 +02:00
Adam
a1f823fdab Fix c2f7fc047c2e5bbb899c820590ce07fee593b28f 2012-10-06 18:25:58 -04:00
attilamolnar
ed21362c47 Update modules.conf.example with m_topiclock 2012-10-07 00:24:59 +02:00
attilamolnar
00ec79d1ad m_spanningtree Fix undefined behavior caused by referencing the returned buffer by std::string::c_str() when the object is temporary 2012-10-07 00:24:59 +02:00
attilamolnar
56629ceb7e New module to support server-side topic locking and server-to-server SVSTOPIC command
SVSTOPIC can either set the topic, the topic setter and the topic timestamp to the given parameters or can nuke the topic entirely on a channel (like it was never set)
It is for ulines only
2012-10-06 19:46:32 +02:00