summaryrefslogtreecommitdiff
path: root/src/modules
AgeCommit message (Collapse)Author
2007-01-15Crusade to remove debug from stable and tested parts of the core and base ↵brain
modules. Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Remove some debug (im on a crusade to make debug mode useful, but at the ↵brain
same time tolerable for longer term usage on larger nets) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6355 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15delete -> DELETE()om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6352 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Activate final stage of world-domination plan...d...o...n...om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6351 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Fix some differences between how this expands partial banmasks with how the ↵om
core does it. (Obviously my way was right and the core was silly ;[) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6350 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Convert all redirecting bans to non-redirecting ones when the module unloads.om
Stop the module allowing bans which will immediately be blocked by the core for exceeding the ban limit. Fix something else, I think, I forget what it was... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6348 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Fix possible segfault if sql query failed. Using a free'd char is probably ↵peavey
not a good thing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6347 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-15Prepend nick to user->MakeHostIP().om
Maybe we should have a GetFullIPHost() or something to match GetFullHost() and GetFullRealHost? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6346 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Hook qlite3_update_hook to queries to also catch affected rows on ↵peavey
UPDATE/INSERT/DELETE. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6344 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Why are we doing append() craq here, when theres a nice cached ↵brain
userrec::GetHostIP() to use? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6342 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Initial commit of the ban redirection module. Docs, additional testing and ↵om
probably a few tweaks to follow git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6340 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14I forgot to exec("gnutls-config --libs") in the configure macrosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6337 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Remove some old destroy code not needed with InpSocket.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6336 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Make REHASH work.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6335 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Dont need to send anything on the notifier socket.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6334 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Remove DOS newlines.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6333 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Now with SQLite3 support. Fully functional and (hopefully) working.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6332 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Added interface 'ChannelBanList' that these two modules implement. Send a ↵brain
request class ListModeRequest to the module to check if a user is matched on a channel: const char* ismatched = ListModeRequest(this, targetmodule, someuser, somechan).Send(); ismatched will be NULL if theyre not matched by the modules list, or will contain the mask if they are matched. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6325 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14OMG SQLITE3 support, almost there now =)peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6321 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Add alias:matchcase config setting (per-alias, determines wether to match ↵brain
case on format string) and ability for case sensitive match() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6319 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Make m_sqlv2.h::SQLquery extend 'classbase', for easy passing as deque ↵peavey
parameter. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6318 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Allow aliasing of anything to anything, removing the need for tons of ↵brain
non-programmer tweaks to be modules. Also speed up matching of aliases by storing a map so we dont need to loop if we dont have an alias that looks like the current command (when allowing aliasing of ANYTHING this is required otherwise this module would be major cpu suck) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6317 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Bang! Gone due to new buildsystem.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6315 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Add eval() and exec() macros, that evaluate perl and execute commands at ↵brain
configure time, rather than delaying them with backticks till compile time. This picks up any errors sooner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6311 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Extra stuff to improve buildsystem, calculate lib and include dirs at ↵brain
configure time rather than at build time. This means that we can also throw errors at configure time if we cant find the libraries, rather than erroring at buildtime like we used to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Tidy up the buildsystem a lot by encapsulating repeated detection routines ↵brain
for lib dirs and header dirs in make/utilities.pm. See the pl files in src/modules/extra for how to use the functions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6305 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Get flags for sqlite3.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6304 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Change this to use our md5 provider rather than MD5() in the querybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6303 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Test fix for breakage with IPv6om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-12Improve handling of backend server being down. Also decraq some debug output ↵peavey
that was really confusing me. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6301 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11More tidyup.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11Only use force if necessary! Tidy up debug output.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6296 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11pgsql should now work thx to added posibility to force a fd out of the ↵peavey
socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11Closer now, but somehow libpq invalidates the file descriptor on server ↵peavey
shutdown leaving us in limbo. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6294 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10reconnects still broken, but getting there.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6293 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10SQLConn rewritten to use EventHandler instead of InspSocket. This is much ↵peavey
neater and gives total control of destroy and delete of resources. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6292 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10Also, if the line already existed, dont OR the value in, so that if all the ↵brain
say, glines we receive already exist, dont bother to apply glines :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6290 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10Clever stuff for applying lines (this needs testing);brain
When bursting, we clear a bitmask to 0. When we receive glines etc, we OR bits in the bitmask to values of APPLY_GLINES, APPLY_KLINES etc depending on what we've received, e.g. is it ADDLINE G, or ADDLINE K. When we ENDBURST at the end of the burst, pass the bitmask to apply_lines, rather than APPLY_ALL :) NOTE: While not bursting, the bitmask is flushed after each gline, but this is still faster as only the line type we just added will be ORed in. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6289 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09Made m_denychans support wildcardsspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6279 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09Revert repeat timer to old one, to make sure it only runs if list was ↵peavey
actually being called by a user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6277 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09TimeSyncTimer now uses repeat timer.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6272 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09Make safelist use repeat timer.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6270 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09Cache channel max bans value to save an O(n) loop of match() on every ban ↵brain
(etc) add git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6267 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Document dns caching, add a "bool cached" to OnLookupComplete method in ↵brain
Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS caching stuff (almost done)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS Stuff - this wont work right yet, it will soon (tm)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Fix m_testcommand which tries to use an undefined pointer as ServerInstancebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Add TTL stuff to dns system (pass it to inherited objects)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Rename all the classes in m_httpd to be HttpServer etc,brain
Make a copy of the request in the http client so we dont need to leave pointers hanging around in the requestor module git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Make this use the newer format of class Request (this module was still using ↵brain
the old cast-data-to-char*-and-use-getdata-method) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6245 e03df62e-2008-0410-955e-edbf42e46eb7