6336 Commits

Author SHA1 Message Date
pippijn
6f59e7a0a0 publish "JSON-RPC" interface
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7465 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 14:50:33 +00:00
pippijn
801fca4042 Now, json-rpc _ONLY_ supports member function pointers. An example is given in
ModuleRpcJson::ModuleRpcJson. I must admit that it is kind of ugly but it is
the only way I can see right now.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7464 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 14:39:18 +00:00
pippijn
c3c50e8943 #ifdeffed out gnu extension
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7463 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 13:38:46 +00:00
pippijn
eb8fbc12e2 provide feedback to the user if json throws an exception
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7462 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 13:04:36 +00:00
pippijn
6274504ba3 Ignore all exceptions for now.. m_rpc_json is rather willing to throw
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7461 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 13:02:02 +00:00
pippijn
5bf8b9e7e9 Added a JSON-RPC module that can be used by other modules to provide a remote
procedure call interface. This should work in theory, but does not for me.
But then, neither does m_httpd_stats so it's probably me...


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7460 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 12:53:49 +00:00
special
49a4bc6311 Module directories now use the concatenated linker flags from every cpp file, instead of just the last (which was rather unpredictable)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7459 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 09:53:35 +00:00
special
0b72c64a03 Added the execruntime() function for Compile/Linker flags - executes shell commands at compile time rather than during configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7458 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 08:26:25 +00:00
peavey
0c34148b26 Don't hide from me! set LF eol-style on hidden files too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7457 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 18:18:03 +00:00
peavey
f2acdbc382 OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:30:04 +00:00
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