summaryrefslogtreecommitdiff
path: root/src/modules
AgeCommit message (Collapse)Author
2006-07-22Add m_sqlutils - Currently provides ID->chan/user lookupsom
Update m_sqlauth to use m_sqlutils git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4511 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22I hate the fucking mysql devs. Craq smoking bastards.brain
Upon Insert, number of rows is the number of rows effected but the number of columns is 0????? Add check to MySQLreply::Rows() to ensure the user doesnt see N rows and 0 columns! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4510 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Allocate id properlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4509 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Actually hook up the OnUnloadModule event >_<om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4508 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22This compiles, dont expect it to work yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4507 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Logic error, success is when the error ID *is* NO_ERROR :Pom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4505 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Stop publishing MySQL feature - check for successful publishing of SQL featurebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Stop publishing the PgSQL feature ( :-'( )om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4503 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Explicitly return false after killing user in OnCheckReady() (theoretically ↵om
no change, but just makes sure..) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4500 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22* Change to use QREPLY_FAILbrain
* Adjust error message so that it appears in the format: "<errno>: <err message>" git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4499 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Handle queries failing properly, actually workom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4498 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Set the SQLresult's error field properly when the query failsom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4497 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add new QREPLY_FAIL error code (bad query syntax etc)om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4496 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add extra parameter to MySQLresult and SQLresultbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4495 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Fix test client error cheecking on result typesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4494 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Update to SQLv2 APIom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4493 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Set the ID in the request *before* we copy it by value why not..om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4492 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22*hide*, I forgot to include the ID in the SQLresult *rehide*om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add back the auto reconnectbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Test commit to sync after network outagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4489 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Huge ass comment about how this worksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4488 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Works with the m_testclient test program/suite!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4487 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Error checking and debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Works now (again, to a point)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4485 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Try and find out why stuff isnt workingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4484 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Getting a bit furtherbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4483 e03df62e-2008-0410-955e-edbf42e46eb7
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-16Update to new API - I think this is right, compiles...om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4422 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Change to a DIFFERENT HOOK for added goodness.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4417 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-15Removed GCC2 checks as we havent supported gcc2 for yearsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4394 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14Don't allow SAQUIT, SANICK, SAPART and SAJOIN on ulined clients :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4390 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14Tidyupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4389 e03df62e-2008-0410-955e-edbf42e46eb7