6770 Commits

Author SHA1 Message Date
special
68dc3792ee Renamed the needs_unsigned parameter of ConfigReader::ReadInteger to need_positive to better reflect what it does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8025 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-12 11:06:36 +00:00
special
639a462ea4 Fixed the order of signon/signoff messages in m_watch (bug #410)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8023 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-11 02:55:44 +00:00
w00t
cff411663d Forward port r8021: fixes bug #408 reported and patched by Switch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8022 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-08 00:27:09 +00:00
special
b0e07f5e9c Fixed IPv6 resolving on big-endian machines (bug #403). Patch by Stric.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8019 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-05 03:30:57 +00:00
burlex
a7c5efea4a * Fixed connection messages in ModuleSpanningTree::HandleConnect (reported by HiroP)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8017 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-04 13:17:38 +00:00
burlex
e51c8a5cf6 * Fixed some incorrect declarations in IOCPEngine
* Fixed the virtual socket wrapper functions in IOCPEngine {these should really be inlined on unix}
* Fixed several compilation issues under Win32
* Fixed calls to close() which should've been changed to SE->Close()
+ Added a crashdump saving system to Win32 builds. Dumps are saved in the format of dump-<exename>-<year>-<month>-<day>-<hour>-<minute>-<second>.dmp in the working directory. Enabled by default, undefine ENABLE_CRASHDUMPS to disable.
+ Added m_operflood, this is a module I've had lying around for some time but some users may like it as it allows unreal-like behaviour without increasing flood limits for non-opers.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8015 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-04 12:36:05 +00:00
special
4c83624ed8 Fixed an issue that could cause empty parameters in module commands to not be sent to other servers properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8012 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-02 05:33:10 +00:00
special
8bcec56a93 Completely rewrote m_ident; the old one was written long ago and had a history of being very buggy (and still had quite a few bugs)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8009 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-02 05:16:08 +00:00
w00t
4a1c3817e7 Unbreak the compile.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8008 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-31 19:39:49 +00:00
w00t
b2b7bfd5e9 This may not compile, I'll test it on my desktop. Waiting 20 minutes for a build is unacceptable.
- Move UUID initialisation to InspIRCd::InitialiseUID()
- Call it if we run out of existing UUIDs
- Call it on startup

Just a small cleanup.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8007 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-31 19:37:22 +00:00
special
46a4409b75 Fixed a double free in m_ident. Found by AnMaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8005 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-31 07:42:09 +00:00
special
bd18fd54c0 Fixed a bug introduced in r7827 (does not affect 1.1.12) that would cause an infinite loop for some spanningtree link errors. Found by danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8003 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-31 01:11:58 +00:00
peavey
56838d603d I lose for being slow. also tidyup a bit, still needs to fix that sizeof..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8001 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:38:42 +00:00
w00t
6e5ddb41ff Hah, I win *hide*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8000 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:36:14 +00:00
w00t
f8001a0302 Reformat this pointlessly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7999 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:35:52 +00:00
brain
31c80e939c Add a pointless WriteOpers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7998 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:35:03 +00:00
peavey
f67a543628 Add name.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7995 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:23:58 +00:00
brain
b8b4a102be Add duplicate UID error in ParseUID(), seems pippijn was triggering it and it was falling through the empty catch into _new = NULL :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7994 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 21:09:39 +00:00
brain
fb29f9c44a Make IsSID completely strict: Must be [digit][A-Zdigit][A-Zdigit], nothing else.
Use it to sanity check SID given on link


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7993 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 20:31:52 +00:00
brain
73b3109193 This needs to be sent in burst too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7992 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 19:59:42 +00:00
brain
79dcf2134c Some modules forgotten for conversion to ModuleManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7991 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 19:55:54 +00:00
peavey
9ae6c6e311 Fix to compile with new module api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7990 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 19:55:18 +00:00
brain
fdd0f45ee3 We really should SEND it too, if we're looking for it... :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7989 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 19:46:22 +00:00
brain
645d9e7838 IMPORTANT: UID command now takes TEN parameters in 1.2. We never had a signon time seperate from the TS in the UID command (or 1.1's NICK command) because in 1.1 this timestamp never updated
and was therefore useful for both values. This is no longer the case and we must pass both seperately


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7988 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 19:45:03 +00:00
brain
d10e9cce47 Swap around ERROR and SNONOTICE in SendError() so that the server doesnt try and send SNONOTICE to a connection that just closed on it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7987 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 18:07:10 +00:00
om
c311f11493 A few more minor cleanups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7986 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29 09:45:20 +00:00
om
8394be69a0 Move everything module-related out of InspIRCd and into ModuleManager, there is a ModuleManager instantiated as InspIRCd::Modules. Several of the function names have changed slightly as well. e.g. Instance->FindModule(m_foobar.so); is now Instance->Modules->Find(m_foobar.so);
All modules in the core distribution should also be updated in line with these changes.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7985 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 23:32:41 +00:00
brain
aa95391259 Tidy up here, same tidyup cannot go back to stable as it involves uids
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7984 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 21:48:56 +00:00
brain
b3961a3e36 Add SVSPART at request of the Anope team - You can tell if the server has SVSPART by the presence of SVSPART=1 in the CAPAB.
No, we will NOT be enforcing this network-wide, its a server-origin command so it wont cause disconnects if it doesnt exist somewhere.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7982 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 21:44:10 +00:00
brain
584a75ab05 If we see a NICK message without a timestamp on it, squit the server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7980 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 20:34:26 +00:00
brain
5d453a3265 Remove unneeded debug from previous tests
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7979 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 20:30:59 +00:00
brain
316e19f10c If the user's nick is just a case change, the TS is NOT updated (thanks jilles)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7978 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 20:27:16 +00:00
brain
ab7bad9d87 Note: NICK now takes two params, a nickname and a timestamp of the change.
When a nick change occurs this must update the users timestamp, so that the users nick is marked to a newer TS.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7977 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 20:21:27 +00:00
brain
7593f77b99 When a server sends a SERVER command with <5 params, dont just close the connection without error. Give the error "Protocol violation -- Missing SID"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7974 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 19:46:54 +00:00
w00t
0549fb4156 DELETE() -> delete
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7973 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 19:27:19 +00:00
w00t
2ccbc50453 (Om, this commit is safe): remove references to DELETE() macro, revert back to delete. Nobody used this most of the time, it had no real purpose, etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7972 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 19:06:15 +00:00
om
b37ec974ee First step on the road of module loader rewriting. So far this only really removes module factories. Any modules not updated to use MODULE_INIT() yet will now fail to compile \o/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7971 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:47:55 +00:00
w00t
f1087b785d Use MODULE_INIT here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7970 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:43:15 +00:00
w00t
609261cf05 No idea why this wasn't using MODULE_INIT. Thanks Om.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7969 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:37:44 +00:00
w00t
07d406fb39 Damn strict typing to hell
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7968 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:33:43 +00:00
brain
51d6e82d98 Last raft of compile fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7967 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:31:13 +00:00
w00t
5308302269 Oops. We were missing a param on this SVSNICK for remote TS.. that probably was blasting client TS on nick collision, which isn't good
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7966 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:31:01 +00:00
brain
2016705318 Fixes 2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7965 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:29:53 +00:00
brain
b2c7c614bd Fixes 1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7964 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:27:51 +00:00
brain
bb544f9584 Convert yet more to ServerConfig::GetSID() - this is the last of the obvious stuff.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7963 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:25:36 +00:00
w00t
d0179661d7 Make the notes on not using the two services modules at the same time bigger :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7962 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:19:57 +00:00
brain
144f168729 First round of servername->sid stuffs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7961 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:14:26 +00:00
brain
b0ff106095 Use it here, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7960 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:02:28 +00:00
brain
f83322c938 Tidy up duplicate code, provide GetSID() method on ServerConfig which returns the SID always 3 digits long
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7959 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 18:02:01 +00:00
w00t
02b2c0ac2b Rice it up, biatch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7958 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 17:56:41 +00:00