]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
brain [Fri, 28 Jul 2006 10:53:54 +0000 (10:53 +0000)]
Change chlist() to use a chained append
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4566
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 28 Jul 2006 00:19:35 +0000 (00:19 +0000)]
Make the error more obvious, still has 'not enough params' on the start now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4563
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 28 Jul 2006 00:17:40 +0000 (00:17 +0000)]
Re-order stuff so that users cant get syntax for commands they dont have access to
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4562
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 28 Jul 2006 00:13:41 +0000 (00:13 +0000)]
Add support for syntax of commands in place of the text 'Not enough parameters' in numeric 461, where supported.
To support this each derived class of command_t must set the value of command_t::syntax to a non-empty string.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4561
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 22:26:08 +0000 (22:26 +0000)]
Add VF_SERVICEPROVIDER
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4560
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 22:22:24 +0000 (22:22 +0000)]
Fix to allow +q/-q etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4559
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 22:18:38 +0000 (22:18 +0000)]
Allow SAMODE and remote users to set +qa without local-user checks (bug?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4558
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 19:40:47 +0000 (19:40 +0000)]
Change std::pair<bool,std::string> to neater typedef "ModePair"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4557
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 17:59:20 +0000 (17:59 +0000)]
Mode merging during FJOIN with ourts==theirts. Only +k and +l have CheckTimestamp methods atm, needs to be finished by me and TIDIED.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4556
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 11:56:08 +0000 (11:56 +0000)]
Fix the remote +k-k stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4554
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 11:44:11 +0000 (11:44 +0000)]
Allow freaky stuff with +k when coming from a server or remote user (allow +k when already a +k, or -k without correct key)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4553
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 11:41:20 +0000 (11:41 +0000)]
Fix crashbug when exiting a remote client with threaded dns on (oops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4552
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 11:32:59 +0000 (11:32 +0000)]
* Fix Server::SendMode to actually work again.
* In the 1.1 protocol we now use FMODE for everything, rather than MODE.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4551
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 27 Jul 2006 02:33:00 +0000 (02:33 +0000)]
commit remainder of new mode bouncing stuff for TS based modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4550
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 26 Jul 2006 21:54:36 +0000 (21:54 +0000)]
Add extra method to mode handler, ModeHandler::ModeSet().
Returns a std::pair<bool,string>.
if the bool is true, the mode is set, and the second item in the pair is the parameter set on it, if any
If the bool is false, the mode is not set, and the parameter given is returned as the second item of the pair
To be used in mode bouncing, to build a safe set of bounced modes (dont ask yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4549
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 26 Jul 2006 20:53:08 +0000 (20:53 +0000)]
Fix reiterpret_cast stuff that doesnt work right
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4548
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 26 Jul 2006 20:31:27 +0000 (20:31 +0000)]
Adapt m_spanningtree to use irc::tokenstream instead of its own irc-line-parser (that was teh sux)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4547
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Wed, 26 Jul 2006 15:17:43 +0000 (15:17 +0000)]
Migrate towards FMODE with TS, remove the SYNCTS command idea
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4546
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Tue, 25 Jul 2006 15:00:49 +0000 (15:00 +0000)]
Remove numeric which makes some clients (Xchat, more?) think their nick is in use. Apparently it's not needed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4544
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 25 Jul 2006 11:20:53 +0000 (11:20 +0000)]
Exclude LUSERS lines with zero counts (NO WE WONT CHANGE THE SPELLING OF connection(s)!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4543
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 25 Jul 2006 10:35:40 +0000 (10:35 +0000)]
Prevent notice loops on servermasks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4541
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 25 Jul 2006 10:30:54 +0000 (10:30 +0000)]
Allow PRIVMSG and NOTICE targets of $<servermask> to the module events (this wasnt trivial and is almost a damn feature)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4539
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 25 Jul 2006 09:34:38 +0000 (09:34 +0000)]
Correct static build
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4537
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 25 Jul 2006 09:22:04 +0000 (09:22 +0000)]
Fix NOTICE $* to go between servers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4536
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 16:22:50 +0000 (16:22 +0000)]
Change watchlist to a list of pointers, can operate and iterate much faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4534
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 15:57:30 +0000 (15:57 +0000)]
In the constructor which doesnt set Request::id, we set Request::id explicitly to '\0', which will prevent such a request accidentally breaking an id-supporting module with an uninitialized buffer :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4533
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 15:49:56 +0000 (15:49 +0000)]
Tidyup and bugfix, not copying the correct column names
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4532
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 15:47:08 +0000 (15:47 +0000)]
Change to use GetId() and ID rather than GetData() and data
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4531
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 15:46:13 +0000 (15:46 +0000)]
Fixed to dynamically allocate the fieldlist
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4530
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 15:32:22 +0000 (15:32 +0000)]
Add an ID field to Request and a GetId() method, takes const char* and returns it - Added new constructor to use it, all modules using ID should convert to the 'new' way of doing Requests, data is now theoretically depreceiated
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4529
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 11:02:19 +0000 (11:02 +0000)]
Move mysql_rpath into extra
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4527
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 10:58:21 +0000 (10:58 +0000)]
*boot* youuuuu're outta here - old blocking SQL API replaced with sexy new async one <3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4526
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 10:55:19 +0000 (10:55 +0000)]
Free, as they should be, fieldlist and/or fieldmap in destructor of PgSQLresult *if* they were allocated
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4525
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 10:45:06 +0000 (10:45 +0000)]
More stuff to return empty lists and maps when there are no more rows in the dataset
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4524
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 23 Jul 2006 10:30:33 +0000 (10:30 +0000)]
Adjust m_mysql to match the assumed behaviour of m_pgsql exactly, e.g. when there are now rows left return an empty row
Fix mistake which required a reference to be freed (?!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4523
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 03:16:09 +0000 (03:16 +0000)]
Tidyups, optimisations and make the log messages make sense...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4522
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 03:03:08 +0000 (03:03 +0000)]
simple logic error (check they already are +o before you set it), seems to fix +o issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4521
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 02:59:42 +0000 (02:59 +0000)]
Mostly updated to new API; Currently doesn't check config o:lines (should be tried before SQL ones); Doesn't seem to set UMODE +o properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4520
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 02:43:20 +0000 (02:43 +0000)]
Give SQLfield's constructor parameters default values (effectively giving it a default constructor), lets SQLfieldMap actually be useable..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4519
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sun, 23 Jul 2006 01:22:06 +0000 (01:22 +0000)]
Remove unused variable and assignment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4518
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 16:30:03 +0000 (16:30 +0000)]
Make m_pgsql return the number of affected rows for an UPDATE or INSERT query.
Make m_testclient do an INSERT and test this :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4517
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 16:11:28 +0000 (16:11 +0000)]
Added m_mysql.so and m_pgsql.so to docs, remove m_sql.so, RETAIN ALPHA ORDER.
*ALL OTHER DEVS* please add your modules to this config file when you have time, thanks ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4516
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 16:02:17 +0000 (16:02 +0000)]
Alter for Rows() == X, Cols() == 0 for 'X rows affected' queries
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4515
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 15:45:34 +0000 (15:45 +0000)]
Change to doxygen-friendly comments, and actually document the lot
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4514
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 14:56:35 +0000 (14:56 +0000)]
Change comment to actually be rightish
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4513
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 14:54:18 +0000 (14:54 +0000)]
Reorder a couple of constructor prototypes for consistency
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4512
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 14:51:42 +0000 (14:51 +0000)]
Add m_sqlutils - Currently provides ID->chan/user lookups
Update m_sqlauth to use m_sqlutils
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4511
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 13:30:34 +0000 (13:30 +0000)]
I hate the fucking mysql devs. Craq smoking bastards.
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
brain [Sat, 22 Jul 2006 13:00:07 +0000 (13:00 +0000)]
Allocate id properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4509
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 12:57:19 +0000 (12:57 +0000)]
Actually hook up the OnUnloadModule event >_<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4508
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 12:47:31 +0000 (12:47 +0000)]
This compiles, dont expect it to work yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4507
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 11:27:09 +0000 (11:27 +0000)]
Logic error, success is when the error ID *is* NO_ERROR :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4505
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 11:25:49 +0000 (11:25 +0000)]
Stop publishing MySQL feature - check for successful publishing of SQL feature
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4504
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 11:22:20 +0000 (11:22 +0000)]
Stop publishing the PgSQL feature ( :-'( )
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4503
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 11:08:00 +0000 (11:08 +0000)]
Fix -modupdate to not break inspircd_se_config.h (a configure-written header that contains an include for the socketengine header)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4502
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 10:53:17 +0000 (10:53 +0000)]
Make OnCheckReady safe against the user being killed, SO LONG AS THE MODULE WHICH D/C'S THE USER RETURNS FALSE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4501
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 10:52:02 +0000 (10:52 +0000)]
Explicitly return false after killing user in OnCheckReady() (theoretically no change, but just makes sure..)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4500
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 10:45:35 +0000 (10:45 +0000)]
* Change to use QREPLY_FAIL
* 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
om [Sat, 22 Jul 2006 10:42:11 +0000 (10:42 +0000)]
Handle queries failing properly, actually work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4498
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 10:41:38 +0000 (10:41 +0000)]
Set the SQLresult's error field properly when the query fails
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4497
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 10:41:08 +0000 (10:41 +0000)]
Add new QREPLY_FAIL error code (bad query syntax etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4496
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 09:38:55 +0000 (09:38 +0000)]
Add extra parameter to MySQLresult and SQLresult
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4495
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 09:29:37 +0000 (09:29 +0000)]
Fix test client error cheecking on result types
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4494
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 09:24:00 +0000 (09:24 +0000)]
Update to SQLv2 API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4493
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 09:23:40 +0000 (09:23 +0000)]
Set the ID in the request *before* we copy it by value why not..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4492
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 22 Jul 2006 08:33:15 +0000 (08:33 +0000)]
*hide*, I forgot to include the ID in the SQLresult *rehide*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 02:02:55 +0000 (02:02 +0000)]
Add back the auto reconnect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 01:09:57 +0000 (01:09 +0000)]
Test commit to sync after network outage
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4489
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 01:06:55 +0000 (01:06 +0000)]
Huge ass comment about how this works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4488
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 00:53:28 +0000 (00:53 +0000)]
Works with the m_testclient test program/suite!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4487
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 00:27:35 +0000 (00:27 +0000)]
Error checking and debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 00:25:41 +0000 (00:25 +0000)]
Works now (again, to a point)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4485
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 00:10:41 +0000 (00:10 +0000)]
Try and find out why stuff isnt working
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4484
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 22 Jul 2006 00:08:54 +0000 (00:08 +0000)]
Getting a bit further
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4483
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 23:27:47 +0000 (23:27 +0000)]
Added notification socket
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4482
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 22:28:42 +0000 (22:28 +0000)]
One mess and a half that compiles. To be tidied some day after it works (i dread that day.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4481
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 19:55:24 +0000 (19:55 +0000)]
Deal with ? substitution, we're at the point now where we can call the 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
brain [Fri, 21 Jul 2006 19:30:29 +0000 (19:30 +0000)]
Seems to work to a point (dont use it, it wont actually execute a query yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4479
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 18:39:05 +0000 (18:39 +0000)]
This now compiles, i gaurantee it doesnt work :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4478
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 17:56:07 +0000 (17:56 +0000)]
Change includes, use --libs_r rather than mysql_config --libs, we want re-enterant libs for pthreads
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 21 Jul 2006 17:48:46 +0000 (17:48 +0000)]
Move this to m_mysql.cpp - dont even bother reading this yet its unchanged from m_sql
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4476
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 21 Jul 2006 17:18:39 +0000 (17:18 +0000)]
Set the query string in the SQLquery to the copy with parameters substituted in.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 21 Jul 2006 12:39:42 +0000 (12:39 +0000)]
Implemenet parameter substitution (damn sexy if you ask me..)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4474
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 21 Jul 2006 12:05:05 +0000 (12:05 +0000)]
ParamL needs to be a deque rather than a vector *thwap*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4473
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 21 Jul 2006 11:42:55 +0000 (11:42 +0000)]
Add tiny perl script to detect version and pass an appropriate -D to gcc. 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
om [Fri, 21 Jul 2006 08:37:42 +0000 (08:37 +0000)]
API header and client module updates for new multi-parameter query request. Needs proper implementation in m_pgsql and documentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 21 Jul 2006 00:48:42 +0000 (00:48 +0000)]
Slight tidyup: type name = type(args); --> type name(args);
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4470
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 20 Jul 2006 19:06:31 +0000 (19:06 +0000)]
Make SQLexception inherit ModuleException
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4468
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 18:27:58 +0000 (18:27 +0000)]
Change formatting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4467
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 18:26:09 +0000 (18:26 +0000)]
Add comments, remove debug, alter message in ./configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4466
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 18:02:09 +0000 (18:02 +0000)]
Fixed, no longer a memory leak (Thread leak)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4465
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 20 Jul 2006 17:47:15 +0000 (17:47 +0000)]
Updates, should be able to safely unload client modules with queries in 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
om [Thu, 20 Jul 2006 17:19:16 +0000 (17:19 +0000)]
Okay, working PostgreSQL module, API header and example client module in /extra/, enjoy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4463
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 17:16:08 +0000 (17:16 +0000)]
Someone please take a look at this and tell me why a thread doesnt free itself like it should when it exits, freeing the ram
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4462
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 16:52:08 +0000 (16:52 +0000)]
Move a confusing debug message within its conditional
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 16:48:44 +0000 (16:48 +0000)]
Make threaded dns stable by placing some mutexes around some stl stuff (this really needs lots of testing now)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 16:11:50 +0000 (16:11 +0000)]
Threaded dns stuff - im going to try and make this stable in 1.1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4459
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Thu, 20 Jul 2006 16:08:00 +0000 (16:08 +0000)]
Extra sanity checks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4457
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 20 Jul 2006 13:15:43 +0000 (13:15 +0000)]
Okay, this is getting towards working now. It just needs the API 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
brain [Wed, 19 Jul 2006 21:46:00 +0000 (21:46 +0000)]
Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK WERE THE FIREDNS GUYS SMOKING)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454
e03df62e -2008-0410-955e-
edbf42e46eb7