194 Commits

Author SHA1 Message Date
brain
7721a4de67 Checks to make sure that WMI initialises, if it doesnt we return -1 for CPU percentage
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10180 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-20 10:27:46 +00:00
brain
1bdc61df77 WMI calls for getting cpu percentage of current process. This code was a biatch and a half.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10179 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-20 09:56:16 +00:00
brain
8e83ee21a6 Add support for uptime in win32 named pipe data
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10177 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-19 22:12:36 +00:00
brain
a52d0e44f4 add missing modules to the vc80 project files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10109 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-06 12:10:55 +00:00
brain
1ee5092d75 fix compile errors under debug profile in windows.
fix some warnings too.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10108 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-06 11:59:17 +00:00
brain
f88c6a71fc Update nsis installer scripts to new path of config files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10072 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-26 20:18:43 +00:00
brain
cef4be3dde Fixes to make win32 build again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10051 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-20 11:21:39 +00:00
brain
07c7b5b61b more fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-18 21:09:41 +00:00
brain
a5f65582fe more fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9921 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-18 20:51:22 +00:00
brain
a3802dee4b Measure bandwidth statistics from the socket engine (kiloBITS per second in, out, total) and display them in /stats z plus send them via the named pipe to the windows gui
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9918 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-18 20:27:47 +00:00
brain
ed6fcd4a50 Add the rest of the stuff for named pipe comms, including feedback information, and fix a bug in configreader that made it load the core commands every rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9913 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-18 18:54:25 +00:00
brain
874c398ad9 IPC now provides feedback via the named pipe, right now the data is just the server name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9912 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-15 20:29:10 +00:00
brain
97ab97c6fb IPC now works for receiving one-byte commands in the same manner as the mailslot.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9911 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-15 19:26:58 +00:00
brain
afe99da316 Base stuff for named pipe IPC
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9910 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-15 16:21:09 +00:00
brain
fc826b6f01 Fix m_shun as per bug #560 reported by Casey, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9905 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-14 23:08:11 +00:00
brain
b22124cbc3 Win32 compilation fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9904 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-13 17:52:11 +00:00
brain
bae9f69eaf Remove the limits from here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9803 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-25 17:32:57 +00:00
brain
2be353eece A few minor fixes, some copy constructor stuff, misnamed channelmanager constructor, add files to vc8 project, configreader tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9780 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-20 18:29:15 +00:00
brain
af30d19ff4 Make FD_SETSIZE larger. We wont ever have this many users via select() on windows, this is to test out some stuff mainly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9726 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-15 19:45:13 +00:00
brain
82bf46fa06 Microsoft, in their "infinite wisdom" decide to have no sensible naming convention at all for windows api structs so have taken the struct name 'ACL' in winnt.h. Therefore we have to rename ours to HTTPACL :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9720 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-13 15:53:12 +00:00
brain
03fe9de7ac Fix wildcard matching in win32, seems that incrementing an iterator dereferences it internally on win32, so iter++ when iter == container.end() drops an assert. YES, an assert. No fucking throw, making it a fucking pain to debug (no bt on assert, program exits)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9706 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-12 15:59:57 +00:00
brain
ddbc70ec8e Backport fix for stripcolour not stripping colour codes, reported by jackmcbarn - thanks. Also make rebasing neater, output to current console/output window of visual studio, not a new console
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9592 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-29 21:29:28 +00:00
brain
6f13968a6f Fix stray /MD that should be /MP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9569 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21 17:43:02 +00:00
brain
21212e448f Fix to use dll in debug build
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9568 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21 17:12:46 +00:00
brain
42c52f2a29 Set runtimes correctly, thanks :-)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9567 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21 17:11:14 +00:00
brain
69dd64199b Add VC9 projects. I cant maintain these, i will be reliant on patches from other users that do use this compiler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9566 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21 17:05:31 +00:00
brain
98659aa0dc Merge in large patchset from GreenReaper, useful fixes for freeing a ton of different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21 16:59:23 +00:00
brain
cd87c3d447 Add hand-crafted resource script, contains version information and icon definition
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9556 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-20 21:05:49 +00:00
brain
a44bcfbb11 Stray newline
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9551 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-19 19:30:24 +00:00
brain
4dec4d125b Extract and run the vs redistributable to $TEMP, not to install dir. saves us 2.6 megs on install space
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9549 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-19 18:45:44 +00:00
brain
02d9c24db7 Bundle vcredist_x86.exe here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9546 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-19 14:17:08 +00:00
brain
955dfd805d Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lots of thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-18 18:25:56 +00:00
brain
2b51823f8d Add operator new[] and delete[], otherwise we can and will get crashes on using a C++ allocated array outside the place where its allocated. Thanks for finding this (indirectly) GreenReaper :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9532 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-17 20:27:33 +00:00
brain
43376daa6c Revert back to /MT, this shit isnt working and its too late to think straight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9523 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16 23:48:12 +00:00
brain
18ca0935f1 /MT -> /MD
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9522 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16 23:00:08 +00:00
brain
024e7c12f5 Rebase modules a meg higher than command objects so they dont collide
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9520 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16 21:35:37 +00:00
brain
6ef9fba15a Automatic rebasing of load addresses for .so files on windows, thanks to GreenReaper for the hints and tips
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9519 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16 21:31:24 +00:00
brain
1fbb2fcbaa Correct indentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9486 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 16:54:51 +00:00
brain
fb596dfe94 Eliminate now-pointless label
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9483 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:45:02 +00:00
brain
fffca74820 Whack code duplication
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9481 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:35:51 +00:00
brain
a6d662108a Whack gotos here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9480 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:34:12 +00:00
brain
282236ab26 Fix 4-space indents :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9479 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 14:32:09 +00:00
brain
b925987b28 Windows fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9475 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13 09:47:45 +00:00
brain
5862157a08 Mapping for mkdir() to _mkdir() for windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9473 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-12 17:57:53 +00:00
w00t
621de565e1 Apply brain's patch for binary safety of hash providers, and remove rehash from windows project (manually applied that due to linefeed shit)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9441 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-09 10:17:28 +00:00
brain
1e740e019e Add protocolinterface.* and privmsg.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9369 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-05 21:42:38 +00:00
brain
82fb111759 Windows fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9368 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-05 21:39:55 +00:00
brain
04dbe9ccc5 Update sln
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9296 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-04 08:13:47 +00:00
brain
e66e07d53e Remove MAXCLIENTS, this is supported at runtime by the softlimit anyway.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9265 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:32:45 +00:00
special
977ebb080b Patch by brain; Fix crash when no parameters are given when introducing a remote client and add encap to the windows project
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9237 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-31 08:54:10 +00:00