10921 Commits

Author SHA1 Message Date
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
attilamolnar
be4f9eccdf Update .gitignore 2012-10-06 14:26:22 +02:00
Attila Molnar
048ebe3ed7 Merge pull request #317 from ChrisTX/insp20+fixwinbuild
Windows: Fix broken build
2012-10-05 05:39:36 -07:00
ChrisTX
9b4a2a939b Windows: Fix broken build
Resolves a mistake made in c2f7fc047c2e5bbb899c820590ce07fee593b28f
2012-10-05 13:14:53 +02:00
attilamolnar
dbab621129 m_cban, m_rline, m_shun Broadcast these commands as some services implementations send them (even though they shouldn't) 2012-10-04 23:45:51 +02:00
Adam
73977e660f Merge pull request #314 from ChrisTX/insp20+DnsQueryConfig
Windows: Replace the old DNS server find mechanism with the proper one, the appropriate API
2012-10-04 14:12:30 -07:00
attilamolnar
1331962081 Windows: Remove modules.conf.charybdis and modules.conf.unreal with the uninstaller 2012-10-04 16:15:47 +02:00
ChrisTX
c2f7fc047c Replace hardcoded paths with configurable ones
This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario.

Changes in detail:
configure: Add the options --log-path and --data-path
m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro
m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be
changed using the configuration files.
2012-10-04 15:14:04 +02:00
ChrisTX
84b187eace Windows: Use the WinAPI for DNS server retrieval 2012-10-04 13:49:34 +02:00
Adam
6f5414e1bf Merge pull request #313 from ChrisTX/insp20+explicittemps
Windows: Replace the unused function hack with explicit instantiation
2012-10-03 23:59:56 -07:00
ChrisTX
b6fccd1052 Windows: Replace the unused function hack with explicit instantiation 2012-10-04 08:31:38 +02:00
attilamolnar
4f9cc281d5 Fix (d)host starting with ':' for some IPv6 clients 2012-10-03 20:36:20 +02:00
attilamolnar
13b7084eae Change User::SetClientIP() to be virtual 2012-10-03 20:36:20 +02:00
attilamolnar
6b14ac1562 Check if the mask is long enough before accessing it when checking extbans 2012-10-03 03:22:22 +02:00
attilamolnar
b5b17f22e9 m_services_account Fix possible recursion when checking 'U' extbans 2012-10-03 03:22:14 +02:00
attilamolnar
c25fc2cacc m_spanningtree Fill a parameterlist in OnAddLine/OnDelLine 2012-10-03 00:30:03 +02:00
attilamolnar
62c54789a4 m_spanningtree Simplify OnMode and OnSetAway handlers 2012-10-03 00:30:03 +02:00