aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
Commit message (Collapse)AuthorAgeFilesLines
* Remove a TODO comment. Also added support for <database:port> option since ↵Gravatar peavey2007-01-021-1/+0
| | | | | | r6213 so we can now connect to other ports than the standard mysql 3306 port. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6216 e03df62e-2008-0410-955e-edbf42e46eb7
* m_mysql can now do REHASH proper. Detects any changes made to config and ↵Gravatar peavey2007-01-021-14/+81
| | | | | | loads/removes as needed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6215 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix: If sql user and pass matched, but not operclass or host, conf based ↵Gravatar peavey2007-01-021-0/+8
| | | | | | command would NOT be called and request would die quietly without notifying the user or send SNOtice of failed attempt. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6214 e03df62e-2008-0410-955e-edbf42e46eb7
* Also use SQLhost for host config.Gravatar peavey2007-01-021-19/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6213 e03df62e-2008-0410-955e-edbf42e46eb7
* Use SQLhost from m_sqlv2.h and tidyup some code. Plus throw less module ↵Gravatar peavey2007-01-021-88/+36
| | | | | | exceptions and warn instead. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6212 e03df62e-2008-0410-955e-edbf42e46eb7
* Add class SQLhost that represents a <database> config line.Gravatar peavey2007-01-021-0/+39
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6211 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to allow for OnRehash to know what user initiated the rehashGravatar brain2007-01-018-14/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix this so it works properly, and removes the descriptions on unload (when ↵Gravatar brain2007-01-012-2/+12
| | | | | | the sockets revert back to plaintext) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6197 e03df62e-2008-0410-955e-edbf42e46eb7
* Add port type identifiersGravatar brain2007-01-012-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6196 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup a bit, get rid of some valgrind warnings.Gravatar peavey2006-12-311-157/+143
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6191 e03df62e-2008-0410-955e-edbf42e46eb7
* Make it safe to lose connection to sql server.Gravatar peavey2006-12-301-36/+84
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6183 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove a line of debug that could crash Log.Gravatar peavey2006-12-301-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6180 e03df62e-2008-0410-955e-edbf42e46eb7
* This is a longshot, pls test AnnMaster.Gravatar peavey2006-12-301-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7
* The world is coming to an end!!! RUN AWAY!Gravatar brain2006-12-301-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6175 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix typo in warning, and make it sound less like the world is coming to an end.Gravatar peavey2006-12-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6174 e03df62e-2008-0410-955e-edbf42e46eb7
* Now REHASH checks for same and old connections, same as the DNS resolver. So ↵Gravatar peavey2006-12-301-35/+95
| | | | | | that the connections are only reset if things were changed. \o/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6173 e03df62e-2008-0410-955e-edbf42e46eb7
* Majorly funk around with this, still needs check for config change on REHASH.Gravatar peavey2006-12-301-182/+190
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6168 e03df62e-2008-0410-955e-edbf42e46eb7
* That should make it load/unload, still needs REHASH done proper.Gravatar peavey2006-12-301-1/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6167 e03df62e-2008-0410-955e-edbf42e46eb7
* Oops slippy fingers.Gravatar peavey2006-12-291-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6160 e03df62e-2008-0410-955e-edbf42e46eb7
* Less debug.Gravatar peavey2006-12-291-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6159 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for rehash/load/unload.Gravatar peavey2006-12-291-14/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6158 e03df62e-2008-0410-955e-edbf42e46eb7
* Majorly rewrite to totally funk up SQL logging module. Works well with both ↵Gravatar peavey2006-12-291-148/+72
| | | | | | MySQL and PostGres now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6156 e03df62e-2008-0410-955e-edbf42e46eb7
* Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. ↵Gravatar peavey2006-12-291-1/+1
| | | | | | Fix it by actually doing the +1 mentioned in the comment above, but lacking from the actual code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6155 e03df62e-2008-0410-955e-edbf42e46eb7
* Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. ↵Gravatar peavey2006-12-291-1/+1
| | | | | | Fix it by actually doing the +1 mentioned in the comment above, but lacking from the actual code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6152 e03df62e-2008-0410-955e-edbf42e46eb7
* Forgot to init it, clean up mem leakage too and log X-Lines proper.Gravatar peavey2006-12-291-10/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6151 e03df62e-2008-0410-955e-edbf42e46eb7
* Also using new interface methods, and maybe less crashage.Gravatar peavey2006-12-291-16/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6150 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the SQLutils and SQL providers to also use interfaces for proper ↵Gravatar peavey2006-12-285-85/+97
| | | | | | unload order, taking away the need for a static m_sqlutils. Depend order: m_sqlutils -> sql providers (m_mysql m_pgsql) -> sql modules (m_sqlauth m_sqloper). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6149 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix mem leakage in reading in and connecting to databases and have ↵Gravatar peavey2006-12-281-1/+13
| | | | | | destructor call mem cleanup too and end the endless loop too so /RESTART and /DIE works with no segfault. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6144 e03df62e-2008-0410-955e-edbf42e46eb7
* SQLQuery operator% and operator, now support any data typeGravatar brain2006-12-241-4/+4
| | | | | | | (these are templated, and pass the type through ConvToStr()) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6105 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored /RESTART (and added InspIRCd::Restart(reason))Gravatar brain2006-12-231-1/+1
| | | | | | | Fixed bug in m_ziplinks, assigning instead of testing a var (gcc 4.1.1 picked up on this, 3.4 didnt) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6067 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #180, logging is not threadsafe, mutex it (ew, luckily we dont ↵Gravatar brain2006-12-211-11/+6
| | | | | | log much) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6056 e03df62e-2008-0410-955e-edbf42e46eb7
* Still more massive commit fun. Headers in include/ still to be done, else ↵Gravatar w00t2006-12-1515-87/+77
| | | | | | that's it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7
* Reverted om's commit so we can keep laughing at him for never doing anythingGravatar special2006-12-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5962 e03df62e-2008-0410-955e-edbf42e46eb7
* I yell 'LIES' in the face of anyone who says I don't commitGravatar om2006-12-121-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5961 e03df62e-2008-0410-955e-edbf42e46eb7
* AnMaster thinks im not committing enough, so heres a pointless commit for him.Gravatar brain2006-12-121-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5960 e03df62e-2008-0410-955e-edbf42e46eb7
* More commentsGravatar brain2006-12-121-1/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5959 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix trivial broken stat counterGravatar brain2006-12-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5958 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, forgot to unpublish the interface!Gravatar brain2006-12-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5957 e03df62e-2008-0410-955e-edbf42e46eb7
* Just commentsGravatar brain2006-12-111-8/+36
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5955 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up a loop a bit so it isnt for(;;) with a breakGravatar brain2006-12-111-28/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5954 e03df62e-2008-0410-955e-edbf42e46eb7
* And fix the typos in it.Gravatar brain2006-12-111-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5953 e03df62e-2008-0410-955e-edbf42e46eb7
* Attempt another speedupGravatar brain2006-12-111-8/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5952 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix kinda stupid whoopsieGravatar brain2006-12-111-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5951 e03df62e-2008-0410-955e-edbf42e46eb7
* Faster, stronger, ...err no, not the million dollar man.Gravatar brain2006-12-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5950 e03df62e-2008-0410-955e-edbf42e46eb7
* Change how assembling of multiple lines works, avoid data copiesGravatar brain2006-12-111-12/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5949 e03df62e-2008-0410-955e-edbf42e46eb7
* Better handling of write() failure, but this might still not be exactly right.Gravatar brain2006-12-111-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5946 e03df62e-2008-0410-955e-edbf42e46eb7
* This is better now.Gravatar brain2006-12-111-23/+23
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5945 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone forgot to add the copyright headers here :pGravatar brain2006-12-113-0/+48
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5943 e03df62e-2008-0410-955e-edbf42e46eb7
* And give it error checking... whoops.Gravatar brain2006-12-111-2/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5942 e03df62e-2008-0410-955e-edbf42e46eb7
* Pinch simple output buffering from m_ssl_opensslGravatar brain2006-12-111-1/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5941 e03df62e-2008-0410-955e-edbf42e46eb7