6326 Commits

Author SHA1 Message Date
peavey
387f54199e Set EOL to WINDOWS-style always for Visual Studio files.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7455 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:24:00 +00:00
peavey
bab14f0dd2 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are auto skipped by svn.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:14:45 +00:00
peavey
3abff3a375 Add flags to /STATS s output, and nuke some ^M
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7453 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 16:09:56 +00:00
peavey
f60aa68ee9 Ok windows.. YOU WIN :< .. but at least I can use MAXBUF now and configure will have to endure the fixed 500 limit :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7452 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 15:39:31 +00:00
peavey
1cb674495d formatting and ^M
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7451 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 14:43:30 +00:00
peavey
c2b9f9201d Oops, the (*p) check was meant for the inner loop, I blame the vs editor :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7450 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:39:15 +00:00
peavey
22f03b43c5 Begone evil DOS format :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7449 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:35:59 +00:00
peavey
68e7d996ea And add colour.h to wrapper resource instead of the source.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7448 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:29:12 +00:00
peavey
f1c1633eb9 Use wrapper include instead of colour.h.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7447 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:27:14 +00:00
peavey
01d29c38ca Tide this up and fix possible buffer overflow. Cannot use MAXBUF since inspircd_config.h may not be generated yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7446 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:25:03 +00:00
special
110d85009e Little tweak to fix the output when directory modules execute programs for cflags
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7445 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:16:59 +00:00
peavey
ff5db0ed1e Use colours.h in win_wrapper and also add __COLOURS_H define.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7444 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 11:53:15 +00:00
peavey
6a48a6cc9b Remove printf_c from wrapper, this code also segfaulted when it was used.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7443 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 11:49:18 +00:00
peavey
2b38cad977 Use vsnprintf instead of vsprintf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7442 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 11:47:47 +00:00
special
c773dc8d0c Made m_ssl_gnutls throw an exception when unable to load the certificate (since SSL won't work at all without one)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7441 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 08:35:23 +00:00
brain
42105f07dd Fix for bug #349: NOTE there is important caveat about this in the example config, MAKE SURE TO READ IT.
When you connect a cgi:irc client two different connect classes are checked at two different times (first the one
that the website they are cgi'ing from, then later one for the user's real ip). READ THIS AND UNDERSTAND IT!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7440 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-15 13:18:28 +00:00
brain
4b5ae9645f Fix for minor memory leak on unloading module, bug #340
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7439 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-15 12:34:30 +00:00
brain
d7ac76bed1 Explicitly disallow mode prefixes > 126, to prevent excess muppetry by 3rd party module devs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7438 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-13 17:26:45 +00:00
brain
47a4c36063 Implement a way to disable options:maxwho, bug #348
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7437 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-12 18:42:17 +00:00
peavey
caafe7737c Apply patch from lain to fix multiple cgihosts not being read correctly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7436 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-12 15:13:44 +00:00
brain
c36ea00019 Backport patch from stskeeps for checking success of gnutls cert generation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7435 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-11 19:50:26 +00:00
brain
e93cdf5a66 Fix for bug #347.
WARNING: QA PEOPLE, THIS NEEDS TESTING!!!!
Test this with lots of squits and connects, and i mean lots and lots in all different ways you can think of, /squit, pingout, closing the connection with a firewall etc.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7434 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-11 16:59:10 +00:00
brain
bf517cb0ad Clarifying comment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7433 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-10 18:00:35 +00:00
brain
f0235432d1 This should fix the rest of remote kill nick hiding
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7432 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-10 17:59:07 +00:00
brain
2f3ba31bae First part of fix for bug #344
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7431 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-10 17:46:03 +00:00
brain
89712710a8 Implement /dalinfo, as a joke. Consider this an easter egg.
More debug logging in m_ssl_openssl, still not fixed


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7430 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-07 21:13:12 +00:00
special
297c720dae Added some missing parameter checking in m_swhois
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7429 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-07 19:58:16 +00:00
brain
a53da00bce Warning: Loads of craq logging in here atm. /connect with openssl is broken, gnutls seems fine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7428 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-06 17:31:44 +00:00
brain
28da041573 SSL buffering tweaks. NOTE this is not a complete fix till i say so, don't use this in production yet unless youre a masochist.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7427 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-06 16:14:24 +00:00
special
bca1756458 And fixed a race condition I introduced in the previous commit that could've caused the exact same error I was fixing. This is one of those commits that never happened
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7426 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-06 06:42:00 +00:00
special
8583a707d6 Fixed the handling of the CTCP TIME reply in m_antibear - it could generate random client errors. Bug #341
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7425 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-06 06:39:45 +00:00
peavey
f7489c88c6 Init the sequence indicator to avoid undefined behaviour. Thx owine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7424 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-04 16:22:23 +00:00
pippijn
2b8ce39c6e Removed superfluous semicolons
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7423 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03 16:40:09 +00:00
w00t
56b7bad4f2 Revert a changed file I didn't want to commit ..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7422 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03 13:21:26 +00:00
w00t
c8c3eaf9f7 Fix off-by-one reported by Darom in bug #339
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7421 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03 11:44:35 +00:00
brain
9ab3cd8903 We know this worked... i think.
std::string::reserve might not work the same as this.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7420 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-02 22:53:31 +00:00
special
0b304e377d std::string does not need a null terminator..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7419 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-02 22:45:48 +00:00
brain
b9b7a3a2cf Add -Wno-deprecated to prevent an annoyingly stupid gcc4.2 error which stops you passing a literal string to a char* parameter:
void a(char* foo); ->  a("test") == WARNING on gcc4.2!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7418 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-01 12:36:37 +00:00
brain
651936d904 Compile fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7417 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-01 12:22:11 +00:00
brain
8199f4dd3e Optimizations and code tidyups. QA please check that svsnick and other forced nick changes still work right after this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7416 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-01 12:06:15 +00:00
peavey
9ec0ed03e6 Split hostmask with XLines::IdentSplit then re-inject into check for proper detection. Thx owine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7415 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-30 19:47:46 +00:00
special
04b820b329 Fixed a bug that caused classes with passwords to instantly disconnect any users (thanks Darom). Needs QA
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7414 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-28 17:29:41 +00:00
special
e4c1ae81ef Made all of the error messages in chg* and set* a bit more uniform, and added a few that were missing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7413 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 06:33:41 +00:00
special
ee6208dc8f Added checks for empty ident/host/gecos in the chg* and set* commands. Patch by Stskeeps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7412 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 06:15:14 +00:00
special
97590f9239 Added a prompt for certificate expiry time to openssl cert generation. Patch by yell0w
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7411 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 06:05:39 +00:00
special
ed7912c90f Fixed the order of fields in openssl certificate generation; this would make really broken certificates. Thanks to yell0w
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7410 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 05:22:03 +00:00
special
3c084000e2 Fixed sunos 5.11 support, and a header issue with the ports socketengine. Patch by Stskeeps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7409 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-25 12:09:24 +00:00
brain
a7091e0ea4 Fix undocumented windows behaviour where multiple dns servers are packed into one registry key seperated by commas
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7408 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-24 20:51:22 +00:00
w00t
5758cbbd8e These should not be oper only. Thanks Jobe.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7407 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-24 19:10:10 +00:00
brain
ebce54dc1f Check for TS==0 in FJOIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7406 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-24 10:27:35 +00:00