summaryrefslogtreecommitdiff
path: root/src/modules
AgeCommit message (Collapse)Author
2006-12-30If a user has a QUIT message matching a KILL type filter, we cant KILL ↵brain
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
2006-12-30Make filters work on PART and QUIT messages too.brain
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
2006-12-30Make it safe to lose connection to sql server.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6183 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Remove a line of debug that could crash Log.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6180 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30This is a longshot, pls test AnnMaster.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30The world is coming to an end!!! RUN AWAY!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6175 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Fix typo in warning, and make it sound less like the world is coming to an end.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6174 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Now REHASH checks for same and old connections, same as the DNS resolver. So ↵peavey
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
2006-12-30Majorly funk around with this, still needs check for config change on REHASH.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6168 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30That should make it load/unload, still needs REHASH done proper.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6167 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Fixed search and replace, code pilfered from m_alias (i think someone ↵brain
misread the help for std::string::replace...) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6162 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29A few fixes, but i cant see why the reverse check doesnt workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6161 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Oops slippy fingers.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6160 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Less debug.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6159 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Fix for rehash/load/unload.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6158 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Fix desync (modes not being pushed to remote servers with send_mode event)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6157 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Majorly rewrite to totally funk up SQL logging module. Works well with both ↵peavey
MySQL and PostGres now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6156 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. ↵peavey
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
2006-12-29Should fix bug #183 (rconnect issues), thanks Brickerspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6154 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. ↵peavey
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
2006-12-29Forgot to init it, clean up mem leakage too and log X-Lines proper.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6151 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Also using new interface methods, and maybe less crashage.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6150 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Change the SQLutils and SQL providers to also use interfaces for proper ↵peavey
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
2006-12-28Copyright header added.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6148 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Fix mem leakage in reading in and connecting to databases and have ↵peavey
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
2006-12-28Tidy up indenting in here and remove a ^Mbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6138 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Reasonably sized fix - when adding modes in modules, be sure to check the ↵brain
return value so we dont load two modules with conflicting modes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6137 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Add support for LOCKSERV/UNLOCKSERV to block/open for new connections. ↵peavey
Thanks to LeaChim for first version too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6136 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Tidyup and is now a vendor module.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6134 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Whoops unused variable.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6133 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Add cleanup of objects on readconf and in destructor.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6132 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Remove an extra delete that caused a segfault.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6131 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26Fix deprotectself=no not working.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6130 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26Change to use std::string::iterator rather than making a copy of the pointer ↵brain
and using .c_str() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6124 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26Just a little tweak so trigger values makes more sense.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6123 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26Add support for config option for percent and minimum string length +P will ↵peavey
trigger on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6121 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-25Fix m_httpd always crashing in destructor if no active Timeout.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6112 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Fix broken +G for AnMaster (thanks for pointing out the bug)brain
Also: MAJOR speed increase for *any network that loads m_censor*! It seems that this was looping all the censor items (not attempting a replace though) for all channels and users, even those that WERE NOT +G! Fixed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6109 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Double whoopsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Whoops!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6106 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24SQLQuery operator% and operator, now support any data typebrain
(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
2006-12-24Relatively small typo fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6088 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Hash rehashing changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix bug in m_dnsbl, a condition is always matched because someone was using ↵brain
unsigned int to check a return val that can be -1 *slap w00t* Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Refactored /RESTART (and added InspIRCd::Restart(reason))brain
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
2006-12-22Fix for alias var names within aliasesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6059 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-21Fix for bug #180, logging is not threadsafe, mutex it (ew, luckily we dont ↵brain
log much) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6056 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-21This should fix the issue with unsetting +Jspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6050 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-19Fix server prefix on JOIN.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6048 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-18Fix bug in m_dnsbl: Only the first <dnsbl> tag would be processed.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6041 e03df62e-2008-0410-955e-edbf42e46eb7