summaryrefslogtreecommitdiff
path: root/src/modules/extra
AgeCommit message (Collapse)Author
2006-07-21Added notification socketbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4482 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21One mess and a half that compiles. To be tidied some day after it works (i ↵brain
dread that day.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4481 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Deal with ? substitution, we're at the point now where we can call the ↵brain
mysql_real_query function (mysql_real_query takes char* and length params, mysql_query just takes char*, and cant deal with NULLs) TODO after this: signal the main ircd thread that theres a result ready on a given db id, and to fetch that result and post it back to the caller git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4480 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Seems to work to a point (dont use it, it wont actually execute a query yet)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4479 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21This now compiles, i gaurantee it doesnt work :Pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4478 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Change includes, use --libs_r rather than mysql_config --libs, we want ↵brain
re-enterant libs for pthreads git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Move this to m_mysql.cpp - dont even bother reading this yet its unchanged ↵brain
from m_sql git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4476 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Set the query string in the SQLquery to the copy with parameters substituted in.om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Implemenet parameter substitution (damn sexy if you ask me..)om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4474 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21ParamL needs to be a deque rather than a vector *thwap*om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4473 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Add tiny perl script to detect version and pass an appropriate -D to gcc. ↵om
Make m_pgsql #ifdef around PQescapeStringConn() which is only available in PostgreSQL >= 8.1.4 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4472 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21API header and client module updates for new multi-parameter query request. ↵om
Needs proper implementation in m_pgsql and documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Slight tidyup: type name = type(args); --> type name(args);om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4470 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Make SQLexception inherit ModuleExceptionom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4468 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Updates, should be able to safely unload client modules with queries in ↵om
progress now... Ideas on how to test this welcome ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4464 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Okay, working PostgreSQL module, API header and example client module in ↵om
/extra/, enjoy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4463 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Okay, this is getting towards working now. It just needs the API ↵om
finishing...everything in the backend part seems to be working okay git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4456 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fixes/codes of the query queue, various prototypes and stuff...mostly ↵om
commited so I can do other stuff without typing the paths out manually git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4401 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12A few updates to the API headerom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4363 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Fixedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4321 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Inherit just about everything from classbasebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4299 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Making lots of stuff inherit from classbase so we can use it as a holdall ↵brain
class that we can throw around with dynamic_cast<> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4297 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10GetExt conversionbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4289 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Templated GetExt()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4288 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Support for systems without stdint.h (we make a guess at sizeof(unsigned ↵brain
int) == 32... if youre running an outdated OS its your own fault) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4261 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Okay..updates to u_listmode, general cleanups and add some virtual methods ↵om
which subclasses can override to alter behaviour..all looking much nicer and more flexible now. Update m_chanfilter to use u_listmode, demonstrates most or all of the new features of it and looks a hell of a lot prettier :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4201 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08Refactored user modes to work like the channel modes - core and module data ↵brain
now the same storage format without ::modebits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07More stuff for m_pgsql in, provider-side API stuff semi-doneom
Add m_sqlv2 header for the new API git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4122 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07modules.*: Put some void* back to char*, sorry if they were only like that ↵om
because of me... :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4119 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-03Change InspSocket's private members to only be protected, I couldn't find ↵om
any other way to do this before we get around to rewriting the socket engine. Commit very first, very alpha, not-very functional version of the PostgreSQL module. It compiles..and that's..err..about it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4112 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-28Added SQLQuery::GetError() and removed a lot of space indentingspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4078 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-16Fix for m_ssl_openssl dying if the DH params file doesn't exist, compiles ↵om
but untested cause I'm sleepy :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4014 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15Now uses mysql_config and mysql_rpath.plbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4007 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-15Nicer SQLQuery::Sanitisebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4006 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-01Fixed logic for OnWhois "is using SSL" numeric. Was broken: required the ↵brain
user to have the 'ssl' extensible AND be in the listen ports, so it didnt work on remote users which didnt have the listen port. Now properly checks to display by using: if(dest->GetExt("ssl") || (IS_LOCAL(dest) && isin(dest->port, listenports))) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3984 e03df62e-2008-0410-955e-edbf42e46eb7
2006-05-30Apply mirq's optimization patchesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3977 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-30change to ability for QueryCount to return -1 for both of the 1.1 sql api'sbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3921 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-30In 1.1, we return a negative value when QueryCount has a downed connection - ↵brain
not changed in 1.0 for backwards compatibility git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3920 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-30Merge of peaveydk's diff (at last)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3918 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-20Include paths changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3899 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵om
going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-17Tidy up around the ex AMD64 'fix'om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3727 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-17Did the same thing here :/om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3726 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-17Giving printf formats and not giving it arguments for them != cunningom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3725 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-17AMD64 warning 'fix' which tested fine when I added it seems to now...stop ↵om
things connecting...which is just cunning imo git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3724 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-14Experimental change to avoid warning on 64bit systems, this is a simple ↵om
one-line rollback if anyone has trouble (but it fixes the warning bugging me ;p) - Works on AMD64 Linux git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3712 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-13*hits eggy with a stick*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3710 e03df62e-2008-0410-955e-edbf42e46eb7