summaryrefslogtreecommitdiffstats
path: root/src/modules
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-0143-75/+73
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Make sure that if an oper opers up and has an swhois in their opertype or ↵Gravatar brain2007-01-011-8/+8
| | | | | | oper tag, the swhois is sent out as metadata git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6206 e03df62e-2008-0410-955e-edbf42e46eb7
* This should fix it on two fronts: missing Implements() value, and OnWhois ↵Gravatar brain2007-01-011-6/+13
| | | | | | doesnt work for remote, so instead we hook OnWhoisLine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6205 e03df62e-2008-0410-955e-edbf42e46eb7
* This is it, i thinkGravatar brain2007-01-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6204 e03df62e-2008-0410-955e-edbf42e46eb7
* BlahGravatar brain2007-01-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6203 e03df62e-2008-0410-955e-edbf42e46eb7
* Debug stuff, pay it no attentionGravatar brain2007-01-011-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6202 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, forgot to put something back that i took out during testing!Gravatar brain2007-01-011-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6201 e03df62e-2008-0410-955e-edbf42e46eb7
* Again, dont use this yetGravatar brain2007-01-011-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6200 e03df62e-2008-0410-955e-edbf42e46eb7
* Do not use these tweaks yetGravatar brain2007-01-011-6/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6199 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix odd desync in FJOIN (this was some hax we put in, and forgot to take out)Gravatar brain2007-01-011-14/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6198 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
* Fix broken LOLCODEGravatar brain2006-12-312-12/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6192 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
* Casting for concisenessGravatar brain2006-12-311-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6190 e03df62e-2008-0410-955e-edbf42e46eb7
* Make this new idea O(1) instead of O(x*y)Gravatar brain2006-12-312-11/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6189 e03df62e-2008-0410-955e-edbf42e46eb7
* Thanks AnMasterGravatar brain2006-12-311-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6188 e03df62e-2008-0410-955e-edbf42e46eb7
* <hostname:charmap> defines the valid characters in a hostmask (this is for ↵Gravatar brain2006-12-312-28/+55
| | | | | | you webs to obsolete your patch :p) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6186 e03df62e-2008-0410-955e-edbf42e46eb7
* If a user has a QUIT message matching a KILL type filter, we cant KILL ↵Gravatar brain2006-12-301-1/+4
| | | | | | someone whos already quitting (what will they care) so treat it as BLOCK and filter their quit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6185 e03df62e-2008-0410-955e-edbf42e46eb7
* Make filters work on PART and QUIT messages too.Gravatar brain2006-12-301-4/+78
| | | | | | | | NOTE: If you use the type 'block' on a PART or QUIT, the text of their part or quit message will be replaced with 'Reason filtered', as we cant block the entire line without breaking clients. Satsifies request in bug #184 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6184 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
* Fixed search and replace, code pilfered from m_alias (i think someone ↵Gravatar brain2006-12-291-4/+5
| | | | | | misread the help for std::string::replace...) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6162 e03df62e-2008-0410-955e-edbf42e46eb7
* A few fixes, but i cant see why the reverse check doesnt workGravatar brain2006-12-291-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6161 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
* Fix desync (modes not being pushed to remote servers with send_mode event)Gravatar brain2006-12-291-1/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6157 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
* Should fix bug #183 (rconnect issues), thanks BrickerGravatar special2006-12-291-6/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6154 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
* Copyright header added.Gravatar peavey2006-12-281-0/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6148 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
* Tidy up indenting in here and remove a ^MGravatar brain2006-12-281-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6138 e03df62e-2008-0410-955e-edbf42e46eb7