9785 Commits

Author SHA1 Message Date
w00t
01ce98f274 win: Last part of support required for VS2010:
NEEDS COMPILE TESTING ON: gcc3 (if possible), gcc4, vs2008.
 - Check for vs2010 in hash_map.h
   - use unordered_map if it exists
 - change all map creations to:
    #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED)
       // old windows crap
    #else
       #if HASHMAP_DEPRECATED
           // tr1/gcc crap
       #endif
    #endif

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11524 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 11:32:49 +00:00
w00t
74a515a72f Bump version to rc5.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11522 e03df62e-2008-0410-955e-edbf42e46eb7
v1.2.0rc5
2009-08-15 11:27:13 +00:00
w00t
aefbcfd22f win: vs2010 requires this to link in process memory retrieval stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11521 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 05:16:26 +00:00
w00t
b50bf7a2ce win: don't define error constants on VS2009, they're defined for us (finally)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11520 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15 05:02:29 +00:00
special
fe97bfba2c Fix a compile error for IPv6 windows builds, discovered by Flo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11519 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 22:02:01 +00:00
w00t
0740e2b8e5 Make ident handling consistant: use ChangeIdent for all ident manipulation. This fixes cache bugs properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11518 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 20:43:46 +00:00
w00t
ff02ab2e93 Print line on empty prefix errors to track down a bug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11517 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 20:10:36 +00:00
w00t
5bac24a5b0 Set log to null on close and check for null loghandle on FileWriter::WriteLogLine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11516 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 20:06:42 +00:00
w00t
26e8190a37 Run modulemanager upgrade to check for updates to third party (and extras) modules on reconfigure.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11515 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 19:51:09 +00:00
psychon
32810ff62b (Hopefully) fix a issue with m_ident's result not being used for display.
The user class has a couple of caches for the user's hostmask. If one of those
caches is initialized before m_ident set the user's new ident it would stick
around until the cache was invalidated the next time. This patch fixes this by
using the proper API for setting a user's ident which also invalidates any
caches which might still have the old ident.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11514 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 19:50:53 +00:00
w00t
a9f3a0a0d4 Regenerate modules makefile if installing or uninstalling extras modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11513 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 19:45:30 +00:00
w00t
54e04fe36a Remove some very verbose debug that isn't really needed anymore
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11512 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 15:08:58 +00:00
w00t
7527d8dd95 Apply fake lag on garbage input to discourage crap
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11511 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14 15:08:15 +00:00
brain
1fb8a3f1b1 Merge patch from dKingston for missing TOPIC numeric, also replace the literal 331 with an RPL_* enum value, thanks!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11510 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-13 22:44:07 +00:00
brain
911e33e399 Point out that the dns server must be an ip, not a host
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11509 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 23:27:49 +00:00
danieldg
44c9a26c10 Fix printf format warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11508 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 21:46:21 +00:00
w00t
fcfc2f00c0 Comment out <dns:server> by default, and explain why.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11507 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 20:34:27 +00:00
danieldg
22a32e8fd8 Change to using read/write not send/recv on the ThreadSignalSocket pipe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11506 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 19:56:43 +00:00
danieldg
6cfd6ad816 Make rehash work more than once per run, and fix some uninitialized values in connect classes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11505 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 19:38:48 +00:00
danieldg
0036e3a70c Fixes for config reader
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12 18:03:52 +00:00
w00t
b33f836f1b Extra bracket on regex go away
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11503 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11 21:01:53 +00:00
danieldg
283563287b Fix module prioritization when a module asks to be after spanningtree, which asks to be last
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11502 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11 20:41:04 +00:00
danieldg
f07b960034 Fix double-free in ~SocketThread
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11501 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11 20:40:57 +00:00
danieldg
8235290c73 Fix thread join not working for subclasses of Thread because of C++ destructor ordering
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11500 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-10 19:55:07 +00:00
brain
5c4212ee9b Report the correct sizes as set in the config
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11499 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-06 17:29:10 +00:00
w00t
739a4448db First space stream seperator test.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11498 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-06 15:09:22 +00:00
w00t
157cd2d7c7 Add commasepstream test case.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11497 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-06 14:45:05 +00:00
w00t
4a78c7a786 Don't catch and rethrow, as with the mutexing here removed it's no longer required. Thanks Special for noticing.
This rethrow was also not best-practice, 'throw;' is the recommended C++ way to rethrow an exception.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11496 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-05 12:31:25 +00:00
danieldg
e808012628 How about we abort if there were errors, not if there weren't any? Great idea...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11494 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-05 00:31:29 +00:00
danieldg
834994a7ce Fix config errors being detected even if there were none
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11493 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-05 00:16:28 +00:00
w00t
690690ecdc Write .modulemanager after everything has finished, not in a loop.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11492 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 22:10:21 +00:00
w00t
a8f599ab2d Dependancies need string version support too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11491 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 22:10:18 +00:00
w00t
ce262fcaaf Provide some kind of output so it doesn't look like it's doing nothing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11490 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 21:49:39 +00:00
w00t
818a53e13a Track installed module versions, so we can do upgrades properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11489 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 21:49:35 +00:00
w00t
eb0fb52418 Allow for string comparison of git IDs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11488 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 19:55:26 +00:00
w00t
f2f4bf26ce Use string versions in "module" line instead of numerical versions.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11487 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 19:55:23 +00:00
w00t
8a92502932 Exit if there were errors reading configuration on startup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11486 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 16:09:30 +00:00
w00t
8c6aa61518 Apparantly modulemanager can't handle empty lines.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11485 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 09:46:42 +00:00
peavey
32c1365046 Missed removing m_testcommand.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11484 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 01:00:57 +00:00
peavey
0df46f5b4e Updates for added/removed files.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11483 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 00:58:16 +00:00
w00t
c120298c83 Remove m_testcommand too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11482 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 00:19:03 +00:00
danieldg
72d33e500e Fix non-interactive configure asking SSL certificate generation question, patch from satmd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11481 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-04 00:03:44 +00:00
w00t
90ea385688 Hooray unused variables. Thanks MSVC.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11480 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 22:47:39 +00:00
danieldg
235d1581ab Now that the official repository is on gitorious, remove my redundant repository
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11479 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 22:44:27 +00:00
w00t
4a97566a61 Change link of official third party repo to point to gitorious repo.
This isn't quite working yet, but it will be shortly.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11478 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 22:00:53 +00:00
w00t
cdb8a029dc Comment on what looks like incorrect behaviour in User::Oper().
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11477 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 21:44:12 +00:00
w00t
9c5fa4bd60 Revert "Don't do all the oper gubbins if the opertype doesn't exist. I've absolutely no idea why we did this before but it's definitely not good."
This reverts commit d8ee5433eab5c67e9094d9114e3696728f1cab2a.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11476 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 21:44:10 +00:00
w00t
f956a4cc6c Revert "Find the right variable so it actually works, too."
This reverts commit a245aa22076e17e72c84e5a0f5699209cdf62727.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11475 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 21:44:07 +00:00
w00t
a245aa2207 Find the right variable so it actually works, too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11474 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 21:19:03 +00:00
w00t
d8ee5433ea Don't do all the oper gubbins if the opertype doesn't exist. I've absolutely no idea why we did this before but it's definitely not good.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11473 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03 21:11:46 +00:00