summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-10-12Merge pull request #320 from ChrisTX/insp20+cleanupwinAdam
Windows: In-depth cleanup (see details)
2012-10-12Fix broken buildattilamolnar
2012-10-12Windows: In-depth cleanup (see details)ChrisTX
-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-12m_cgiirc, m_dnsbl Remove unnecessary includesattilamolnar
2012-10-12Remove superfluous std::string()sattilamolnar
2012-10-12Fix unregistered users getting global notices, also fix certain commands ↵attilamolnar
working on unregistered users, spotted by @Adam-
2012-10-11Add myself to the Other Contributors listAdam
2012-10-10Compare the result of ldap_search_ext_s to LDAP_SUCCESS....Adam
2012-10-08Move simple user and channel mode handlers into a single fileattilamolnar
2012-10-08Allows to use user->ident string instead of user->nick for NickServ.Boleslaw Tokarski
2012-10-07Release 2.0.9attilamolnar
2012-10-07m_spanningtree Fix undefined behavior caused by referencing the returned ↵attilamolnar
buffer by std::string::c_str() when the object is temporary
2012-10-06New module to support server-side topic locking and server-to-server ↵attilamolnar
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-04m_cban, m_rline, m_shun Broadcast these commands as some services ↵attilamolnar
implementations send them (even though they shouldn't)
2012-10-04Replace hardcoded paths with configurable onesChrisTX
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-03Fix (d)host starting with ':' for some IPv6 clientsattilamolnar
2012-10-03Check if the mask is long enough before accessing it when checking extbansattilamolnar
2012-10-03m_services_account Fix possible recursion when checking 'U' extbansattilamolnar
2012-10-03m_spanningtree Fill a parameterlist in OnAddLine/OnDelLineattilamolnar
2012-10-03m_spanningtree Simplify OnMode and OnSetAway handlersattilamolnar
2012-10-03m_spanningtree Remove empty RedoConfig()attilamolnar
2012-10-03m_spanningtree Utils: Remove unused functionsattilamolnar
2012-10-03m_spanningtree OPERTYPE handler: Return when finished processing instead of ↵attilamolnar
changing execution path with a flag
2012-10-03m_spanningtree Remote WHOIS handler: Find target with FindNickOnly (don't ↵attilamolnar
accept uids, like in cmd_whois)
2012-10-03m_spanningtree Netburst: Remove unused parameters and variablesattilamolnar
2012-10-03m_spanningtree Netburst: Prefix SERVER and VERSION lines with SIDs instead ↵attilamolnar
of server names
2012-10-02m_spanningtree Netburst: Remove unnecessary variables from DoBurst()attilamolnar
2012-10-02m_spanningtree Use iterators in CAPAB handler and when generating reply to ↵attilamolnar
spanningtree related /stats, use std::find() in TreeServer::DelChild()
2012-10-02m_spanningtree Only allow uuids in SVSJOIN, METADATA and OPERQUITattilamolnar
2012-09-30m_spanningtree Return const references from several TreeServer getter functionsattilamolnar
2012-09-30Make ConfigReader::GetSID() return a const reference to a string instead of ↵attilamolnar
a string
2012-09-30Fix more undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
2012-09-23m_httpd Accept POST requests only when the value for Content-Length is ↵attilamolnar
greater than zero
2012-09-23Fix undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary Thanks to @ChrisTX for pointing this out Fixes #257 reported by @helloall
2012-09-22m_regex_stdlib: A regex provider for the C++11 container std::regexChrisTX
For it to work you need a standards compliant implementation as for instance Visual C++ 2010 and 2012 deliver. GCC's libstdc++ does not implement this class yet.
2012-09-13m_blockamsg, m_sslinfo Don't convert the command name to irc::string in ↵attilamolnar
OnPreCommand() See 44e89aafb69fb266bdf780d12a31947bfff4e330
2012-09-13m_shun Convert enabled commands to uppercase so they match correctly even if ↵attilamolnar
they're lowercase in the config
2012-09-13Fixed crash in m_mysql if a module is unloaded while executingAdam
a query and there is only one query in the queue to be executed.
2012-09-13m_cgiirc Take actions after a successful WEBIRC in the OnCheckReady hook, ↵attilamolnar
stop using OnUserConnect
2012-09-13m_cgiirc Register the "waiting" extensionattilamolnar
2012-09-13m_dnsbl Display <unknown> as the user's nick when annoucing the dnsbl result ↵attilamolnar
and the user has an empty nick
2012-09-13m_dnsbl Switch to OnUserSetIP hookattilamolnar
2012-09-13Call OnUserSetIP() whenever the IP of a local user changes, set ↵attilamolnar
ident,host,dhost in LocalUser constructor
2012-09-13New OnUserSetIP() hookattilamolnar
2012-09-13m_knock Add support for sending a 710 numeric when a KNOCK succeeds, add a ↵attilamolnar
config option to choose between behaviors Fixes #287 reported by @ElementalAlchemist
2012-09-13Merge pull request #301 from Adam-/insp20+bindrehashAttila Molnar
Fix bug #291 - fix rehashing bind tags not changing them between servers/clients and ssl/nonssl
2012-09-13configreader: Replace ConfValue here with a ConfigTagList enumeration, as it ↵ChrisTX
isn't guaranteed that bind or link tags are unique which causes Issue #270 Original commit edited by @attilamolnar - fixed wrong line being displayed in generated messages - removed redundant ServerInstance->Config before ConfTags
2012-09-13Set errno to EINPROGRESS on Windows when the connect() call does not ↵attilamolnar
complete immediately, to simulate unix behavior This makes code that checks errno to determine whether connect() has succeeded or not work properly on Windows Fixes #298 reported by @butaman
2012-09-13Don't allow banned users to NOTICE a channel when ↵attilamolnar
security:restrictbannedusers is on Fixes #297 reported by @killerrabbit
2012-09-12Fix bug #291 - fix rehashing bind tags not changing them between ↵Adam
servers/clients and ssl/nonssl