]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoRemove space indents
brain [Thu, 18 Jan 2007 21:02:10 +0000 (21:02 +0000)]
Remove space indents

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6386 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd all this crapola
brain [Thu, 18 Jan 2007 20:56:11 +0000 (20:56 +0000)]
Add all this crapola

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6385 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMuch more tidyup, and yes, tons more to go
brain [Thu, 18 Jan 2007 20:36:45 +0000 (20:36 +0000)]
Much more tidyup, and yes, tons more to go

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6384 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoStart of splitting up. WARNING: This is far from tidy or finished in terms of code...
brain [Thu, 18 Jan 2007 19:21:05 +0000 (19:21 +0000)]
Start of splitting up. WARNING: This is far from tidy or finished in terms of code uglyness. A lot of it is copy/pasted in nano and therefore space indented (will be fixed before b9) and theres much
more to be done yet.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6383 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhoops, and commit this :p
brain [Thu, 18 Jan 2007 19:06:42 +0000 (19:06 +0000)]
Whoops, and commit this :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6382 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMove some stuff into utils.h
brain [Thu, 18 Jan 2007 19:06:30 +0000 (19:06 +0000)]
Move some stuff into utils.h

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6381 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoChange stuff around
brain [Thu, 18 Jan 2007 18:56:47 +0000 (18:56 +0000)]
Change stuff around

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6380 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoYAY I FIXED IT!
brain [Thu, 18 Jan 2007 18:37:25 +0000 (18:37 +0000)]
YAY I FIXED IT!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6379 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoReverting this back to normality
brain [Thu, 18 Jan 2007 18:33:44 +0000 (18:33 +0000)]
Reverting this back to normality

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6378 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRevert this back to sanity, still doesnt work tho
brain [Thu, 18 Jan 2007 18:31:00 +0000 (18:31 +0000)]
Revert this back to sanity, still doesnt work tho

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6377 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agowhy wont this fucking thing find the includes?!
brain [Thu, 18 Jan 2007 18:20:12 +0000 (18:20 +0000)]
why wont this fucking thing find the includes?!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6376 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhoops, wrong include dir
brain [Thu, 18 Jan 2007 18:10:26 +0000 (18:10 +0000)]
Whoops, wrong include dir

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6375 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFolder -> Directory
brain [Thu, 18 Jan 2007 18:07:32 +0000 (18:07 +0000)]
Folder -> Directory

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6374 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd output to ./configure -update to show when it finds a directory in the modules...
brain [Thu, 18 Jan 2007 18:07:17 +0000 (18:07 +0000)]
Add output to ./configure -update to show when it finds a directory in the modules/ dir

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6373 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoStart of moving m_spanningtree into a dir so we can split it, cutting down ram use...
brain [Thu, 18 Jan 2007 18:04:21 +0000 (18:04 +0000)]
Start of moving m_spanningtree into a dir so we can split it, cutting down ram use during compile, and compile time

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6372 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoModule splitting now works!
brain [Thu, 18 Jan 2007 17:53:53 +0000 (17:53 +0000)]
Module splitting now works!
Heres how it works (and m_spanningtree will make use of it):
Create a directory in src/modules whos name starts m_, e.g. src/modules/m_spanningtree/
Inside it place .cpp files and headers.
When configure runs, it scans for dirs matching the pattern, goes into them (note: it does not recurse, it only reads that dir) and compiles a list of .cpp files within. (all other file types are
ignored).
It then queries each .cpp file for its 'configure macros' as found in other modules, on a file by file basis. The makefile will then build a set of rules that will
compile the whole lot together on a module by module basis, and "ar" the lot up then link the .a file (as in modes/)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6371 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFixes
brain [Thu, 18 Jan 2007 17:46:32 +0000 (17:46 +0000)]
Fixes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6370 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoStuff to detect split modules in dirs - not tested yet
brain [Thu, 18 Jan 2007 17:39:13 +0000 (17:39 +0000)]
Stuff to detect split modules in dirs - not tested yet

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6369 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMove QueryQueue class into m_sqlv2 to prevent flat-out duplication of identical code...
brain [Wed, 17 Jan 2007 21:20:32 +0000 (21:20 +0000)]
Move QueryQueue class into m_sqlv2 to prevent flat-out duplication of identical code in pgsql and mysql modules

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6368 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMass comment removal.
brain [Wed, 17 Jan 2007 21:14:26 +0000 (21:14 +0000)]
Mass comment removal.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove/fix unused variable warning
brain [Wed, 17 Jan 2007 19:06:16 +0000 (19:06 +0000)]
Remove/fix unused variable warning

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6366 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoIt says something about how excessive our debug output is when the ssl modules have...
brain [Wed, 17 Jan 2007 18:13:05 +0000 (18:13 +0000)]
It says something about how excessive our debug output is when the ssl modules have 'cascades' of 'if-then-else' whos job is ONLY to output debug!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6365 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove some debug here, cuts down boot output
brain [Wed, 17 Jan 2007 17:58:24 +0000 (17:58 +0000)]
Remove some debug here, cuts down boot output

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6364 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDebug the spoutmouth output
brain [Wed, 17 Jan 2007 17:55:41 +0000 (17:55 +0000)]
Debug the spoutmouth output

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6363 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake this more sensible
brain [Wed, 17 Jan 2007 17:47:43 +0000 (17:47 +0000)]
Make this more sensible

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6362 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoLog client output, so we can actually see what we're sending out, and make more sense...
brain [Wed, 17 Jan 2007 17:47:05 +0000 (17:47 +0000)]
Log client output, so we can actually see what we're sending out, and make more sense of stuff

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6361 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove a ton of inspsocket debug
brain [Wed, 17 Jan 2007 17:41:40 +0000 (17:41 +0000)]
Remove a ton of inspsocket debug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6360 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove tons of debug output from spanningtree as the first step in optimizing it...
brain [Wed, 17 Jan 2007 17:30:28 +0000 (17:30 +0000)]
Remove tons of debug output from spanningtree as the first step in optimizing it for release

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6359 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd O_NOFOLLOW to file write call, which prevents following of symlinks making our...
brain [Tue, 16 Jan 2007 21:40:14 +0000 (21:40 +0000)]
Add O_NOFOLLOW to file write call, which prevents following of symlinks making our temp file writing completely secure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6358 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemoving from here too.
brain [Mon, 15 Jan 2007 23:53:06 +0000 (23:53 +0000)]
Removing from here too.
The goal is to have basically only stuff of use left, e.g.:
BUG: xxx doodad shouldnt be NULL but it is
or raw socket i/o

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6357 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCrusade to remove debug from stable and tested parts of the core and base modules.
brain [Mon, 15 Jan 2007 23:49:24 +0000 (23:49 +0000)]
Crusade to remove debug from stable and tested parts of the core and base 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

17 years agoRemove some debug (im on a crusade to make debug mode useful, but at the same time...
brain [Mon, 15 Jan 2007 23:09:24 +0000 (23:09 +0000)]
Remove some debug (im on a crusade to make debug mode useful, but at the 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

17 years agoChange the format of some debug
brain [Mon, 15 Jan 2007 23:04:50 +0000 (23:04 +0000)]
Change the format of some debug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6354 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove some debug
brain [Mon, 15 Jan 2007 23:02:56 +0000 (23:02 +0000)]
Remove some debug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6353 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agodelete -> DELETE()
om [Mon, 15 Jan 2007 21:46:26 +0000 (21:46 +0000)]
delete -> DELETE()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6352 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoActivate final stage of world-domination plan...d...o...n...
om [Mon, 15 Jan 2007 21:40:11 +0000 (21:40 +0000)]
Activate final stage of world-domination plan...d...o...n...

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6351 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix some differences between how this expands partial banmasks with how the core...
om [Mon, 15 Jan 2007 21:27:30 +0000 (21:27 +0000)]
Fix some differences between how this expands partial banmasks with how the 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

17 years agoMake this use true and false, not MODEACTION_DENY
brain [Mon, 15 Jan 2007 21:19:18 +0000 (21:19 +0000)]
Make this use true and false, not MODEACTION_DENY

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6349 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoConvert all redirecting bans to non-redirecting ones when the module unloads.
om [Mon, 15 Jan 2007 21:09:42 +0000 (21:09 +0000)]
Convert all redirecting bans to non-redirecting ones when the module unloads.
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

17 years agoFix possible segfault if sql query failed. Using a free'd char is probably not a...
peavey [Mon, 15 Jan 2007 20:17:06 +0000 (20:17 +0000)]
Fix possible segfault if sql query failed. Using a free'd char is probably not a good thing.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6347 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoPrepend nick to user->MakeHostIP().
om [Mon, 15 Jan 2007 08:11:34 +0000 (08:11 +0000)]
Prepend nick to user->MakeHostIP().
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

17 years agoRename all these so that the names reflect the database server theyre used with more...
brain [Mon, 15 Jan 2007 00:45:23 +0000 (00:45 +0000)]
Rename all these so that the names reflect the database server theyre used with more accurately -- for example, the old mysql ones were just .schema.sql, and
the postgres ones were .pgschema.sql.
Theyre now .mysql.sql, .postgresql.sql and .sqlite3.sql

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6345 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoHook qlite3_update_hook to queries to also catch affected rows on UPDATE/INSERT/DELETE.
peavey [Sun, 14 Jan 2007 23:14:23 +0000 (23:14 +0000)]
Hook qlite3_update_hook to queries to also catch affected rows on UPDATE/INSERT/DELETE.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6344 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSQLite3 schema for sql logging module.
peavey [Sun, 14 Jan 2007 23:12:17 +0000 (23:12 +0000)]
SQLite3 schema for sql logging module.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6343 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhy are we doing append() craq here, when theres a nice cached userrec::GetHostIP...
brain [Sun, 14 Jan 2007 22:53:03 +0000 (22:53 +0000)]
Why are we doing append() craq here, when theres a nice cached userrec::GetHostIP() to use?

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6342 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoIf you have a broken config, rerun full configure to fix
brain [Sun, 14 Jan 2007 22:17:00 +0000 (22:17 +0000)]
If you have a broken config, rerun full configure to fix

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6341 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoInitial commit of the ban redirection module. Docs, additional testing and probably...
om [Sun, 14 Jan 2007 22:01:02 +0000 (22:01 +0000)]
Initial commit of the ban redirection module. Docs, additional testing and probably a few tweaks to follow

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6340 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSQLite3 schema for sqloper.
peavey [Sun, 14 Jan 2007 21:39:09 +0000 (21:39 +0000)]
SQLite3 schema for sqloper.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6339 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd SQLite3 module to example config.
peavey [Sun, 14 Jan 2007 21:28:58 +0000 (21:28 +0000)]
Add SQLite3 module to example config.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6338 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoI forgot to exec("gnutls-config --libs") in the configure macros
brain [Sun, 14 Jan 2007 21:02:25 +0000 (21:02 +0000)]
I forgot to exec("gnutls-config --libs") in the configure macros

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6337 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove some old destroy code not needed with InpSocket.
peavey [Sun, 14 Jan 2007 20:40:22 +0000 (20:40 +0000)]
Remove some old destroy code not needed with InpSocket.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6336 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake REHASH work.
peavey [Sun, 14 Jan 2007 20:35:32 +0000 (20:35 +0000)]
Make REHASH work.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6335 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDont need to send anything on the notifier socket.
peavey [Sun, 14 Jan 2007 20:19:56 +0000 (20:19 +0000)]
Dont need to send anything on the notifier socket.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6334 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove DOS newlines.
peavey [Sun, 14 Jan 2007 20:16:10 +0000 (20:16 +0000)]
Remove DOS newlines.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6333 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoNow with SQLite3 support. Fully functional and (hopefully) working.
peavey [Sun, 14 Jan 2007 20:14:55 +0000 (20:14 +0000)]
Now with SQLite3 support. Fully functional and (hopefully) working.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6332 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix the code that nobody tested :p
brain [Sun, 14 Jan 2007 19:08:54 +0000 (19:08 +0000)]
Fix the code that nobody tested :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6331 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAnd take the return out again to stop w00t throwing a tantrum
om [Sun, 14 Jan 2007 19:05:32 +0000 (19:05 +0000)]
And take the return out again to stop w00t throwing a tantrum

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6330 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd return statement at the end of the special-case block for listing listmodes.
om [Sun, 14 Jan 2007 19:02:28 +0000 (19:02 +0000)]
Add return statement at the end of the special-case block for listing listmodes.
Make ModeWatchers get called (with an empty parameter and adding = true) if their mode is a listmode and it gets listed

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6329 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSomeone left the colon off the 'end of list' numeric in u_listmode.h. I dont know...
brain [Sun, 14 Jan 2007 18:46:16 +0000 (18:46 +0000)]
Someone left the colon off the 'end of list' numeric in u_listmode.h. I dont know what clients this might break

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6328 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix this so that if the beforemode clears the parameter, and it was supposed to have...
brain [Sun, 14 Jan 2007 18:33:02 +0000 (18:33 +0000)]
Fix this so that if the beforemode clears the parameter, and it was supposed to have one, we abort

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6327 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix BeforeMode to have the parameter available, if there are enough parameters for...
brain [Sun, 14 Jan 2007 18:30:44 +0000 (18:30 +0000)]
Fix BeforeMode to have the parameter available, if there are enough parameters for the mode and the mode parameter is valid

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6326 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdded interface 'ChannelBanList' that these two modules implement. Send a request...
brain [Sun, 14 Jan 2007 18:25:56 +0000 (18:25 +0000)]
Added interface 'ChannelBanList' that these two modules implement. Send a 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

17 years agog++ is picky about default params with overloading
brain [Sun, 14 Jan 2007 17:26:04 +0000 (17:26 +0000)]
g++ is picky about default params with overloading

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMove showhelp() into make/configure.pm
brain [Sun, 14 Jan 2007 17:07:09 +0000 (17:07 +0000)]
Move showhelp() into make/configure.pm

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6323 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSlightly decraqed configure
brain [Sun, 14 Jan 2007 16:46:24 +0000 (16:46 +0000)]
Slightly decraqed configure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6322 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoOMG SQLITE3 support, almost there now =)
peavey [Sun, 14 Jan 2007 16:45:51 +0000 (16:45 +0000)]
OMG SQLITE3 support, almost there now =)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6321 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoStarting tidying up the configure script, and moving a lot of stuff into functions...
brain [Sun, 14 Jan 2007 16:26:30 +0000 (16:26 +0000)]
Starting tidying up the configure script, and moving a lot of stuff into functions in the make/ dir

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6320 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd alias:matchcase config setting (per-alias, determines wether to match case on...
brain [Sun, 14 Jan 2007 13:30:43 +0000 (13:30 +0000)]
Add alias:matchcase config setting (per-alias, determines wether to match 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

17 years agoMake m_sqlv2.h::SQLquery extend 'classbase', for easy passing as deque parameter.
peavey [Sun, 14 Jan 2007 13:26:22 +0000 (13:26 +0000)]
Make m_sqlv2.h::SQLquery extend 'classbase', for easy passing as deque parameter.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6318 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAllow aliasing of anything to anything, removing the need for tons of non-programmer...
brain [Sun, 14 Jan 2007 13:11:57 +0000 (13:11 +0000)]
Allow aliasing of anything to anything, removing the need for tons of 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

17 years agoFix broken ./configure macros broken by introduction of an eval
brain [Sun, 14 Jan 2007 02:19:27 +0000 (02:19 +0000)]
Fix broken ./configure macros broken by introduction of an eval

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6316 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoBang! Gone due to new buildsystem.
peavey [Sun, 14 Jan 2007 01:00:01 +0000 (01:00 +0000)]
Bang! Gone due to new buildsystem.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6315 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoOutput which module is executing the macro
brain [Sun, 14 Jan 2007 00:54:04 +0000 (00:54 +0000)]
Output which module is executing the macro

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6314 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFormatting glitch
brain [Sun, 14 Jan 2007 00:49:16 +0000 (00:49 +0000)]
Formatting glitch

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6313 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoImproved detail in configure, and two new functions exec() and eval() are more accoun...
brain [Sun, 14 Jan 2007 00:48:22 +0000 (00:48 +0000)]
Improved detail in configure, and two new functions exec() and eval() are more accountable

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6312 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd eval() and exec() macros, that evaluate perl and execute commands at configure...
brain [Sun, 14 Jan 2007 00:39:29 +0000 (00:39 +0000)]
Add eval() and exec() macros, that evaluate perl and execute commands at 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

17 years agoTake out unneccessary chomp()
brain [Sun, 14 Jan 2007 00:15:28 +0000 (00:15 +0000)]
Take out unneccessary chomp()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6310 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake the rpath() macro handle lines with multiple -L in them
brain [Sun, 14 Jan 2007 00:15:09 +0000 (00:15 +0000)]
Make the rpath() macro handle lines with multiple -L in them

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6309 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoOutput for 'using defaults' when nothing of interest found
brain [Sun, 14 Jan 2007 00:03:50 +0000 (00:03 +0000)]
Output for 'using defaults' when nothing of interest found

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6308 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoColour coding, tidying, and more verbose output to configure
brain [Sat, 13 Jan 2007 23:58:51 +0000 (23:58 +0000)]
Colour coding, tidying, and more verbose output to configure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6307 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoExtra stuff to improve buildsystem, calculate lib and include dirs at configure time...
brain [Sat, 13 Jan 2007 23:53:08 +0000 (23:53 +0000)]
Extra stuff to improve buildsystem, calculate lib and include dirs at 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

17 years agoTidy up the buildsystem a lot by encapsulating repeated detection routines for lib...
brain [Sat, 13 Jan 2007 23:29:40 +0000 (23:29 +0000)]
Tidy up the buildsystem a lot by encapsulating repeated detection routines 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

17 years agoGet flags for sqlite3.
peavey [Sat, 13 Jan 2007 23:07:14 +0000 (23:07 +0000)]
Get flags for sqlite3.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6304 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoChange this to use our md5 provider rather than MD5() in the query
brain [Sat, 13 Jan 2007 22:40:30 +0000 (22:40 +0000)]
Change this to use our md5 provider rather than MD5() in the query

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6303 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoTest fix for breakage with IPv6
om [Sat, 13 Jan 2007 10:07:05 +0000 (10:07 +0000)]
Test fix for breakage with IPv6

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoImprove handling of backend server being down. Also decraq some debug output that...
peavey [Fri, 12 Jan 2007 05:19:50 +0000 (05:19 +0000)]
Improve handling of backend server being down. Also decraq some debug output that was really confusing me.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6301 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUpdate inline documentation for DelFd() so the doxygen docs will be correct.
peavey [Fri, 12 Jan 2007 00:35:19 +0000 (00:35 +0000)]
Update inline documentation for DelFd() so the doxygen docs will be correct.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6300 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAnyway the reason for this discussion - i wanted to do a test commit :p (insert a...
brain [Thu, 11 Jan 2007 21:09:01 +0000 (21:09 +0000)]
Anyway the reason for this discussion - i wanted to do a test commit :p (insert a blank line here for it)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6299 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoQuick tweak before work, set the default force=false in these (im not keen on 'force...
brain [Thu, 11 Jan 2007 06:20:06 +0000 (06:20 +0000)]
Quick tweak before work, set the default force=false in these (im not keen on 'force' at all, its major ugly hax, but *shrug* :( how does it even know we're
using epoll or kqueue etc???)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6298 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMore tidyup.
peavey [Thu, 11 Jan 2007 04:49:22 +0000 (04:49 +0000)]
More tidyup.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoOnly use force if necessary! Tidy up debug output.
peavey [Thu, 11 Jan 2007 04:39:51 +0000 (04:39 +0000)]
Only use force if necessary! Tidy up debug output.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6296 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agopgsql should now work thx to added posibility to force a fd out of the socketengine...
peavey [Thu, 11 Jan 2007 04:24:37 +0000 (04:24 +0000)]
pgsql should now work thx to added posibility to force a fd out of the 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

17 years agoCloser now, but somehow libpq invalidates the file descriptor on server shutdown...
peavey [Thu, 11 Jan 2007 03:34:22 +0000 (03:34 +0000)]
Closer now, but somehow libpq invalidates the file descriptor on server shutdown leaving us in limbo.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6294 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoreconnects still broken, but getting there.
peavey [Wed, 10 Jan 2007 23:33:17 +0000 (23:33 +0000)]
reconnects still broken, but getting there.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6293 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoSQLConn rewritten to use EventHandler instead of InspSocket. This is much neater...
peavey [Wed, 10 Jan 2007 21:00:37 +0000 (21:00 +0000)]
SQLConn rewritten to use EventHandler instead of InspSocket. This is much 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

17 years agoIf we have a bitmask of 0 in apply_lines, dont even bother to run the function!
brain [Wed, 10 Jan 2007 17:54:43 +0000 (17:54 +0000)]
If we have a bitmask of 0 in apply_lines, dont even bother to run the function!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6291 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAlso, if the line already existed, dont OR the value in, so that if all the say,...
brain [Wed, 10 Jan 2007 17:47:39 +0000 (17:47 +0000)]
Also, if the line already existed, dont OR the value in, so that if all the 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

17 years agoClever stuff for applying lines (this needs testing);
brain [Wed, 10 Jan 2007 17:46:38 +0000 (17:46 +0000)]
Clever stuff for applying lines (this needs testing);
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

17 years agoOnly send snotice if the eline doesnt exist yet
brain [Wed, 10 Jan 2007 17:36:05 +0000 (17:36 +0000)]
Only send snotice if the eline doesnt exist yet

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6288 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoImprove speed of these, and only send out snotice if the gline doesnt already exist
brain [Wed, 10 Jan 2007 17:34:57 +0000 (17:34 +0000)]
Improve speed of these, and only send out snotice if the gline doesnt already exist

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6287 e03df62e-2008-0410-955e-edbf42e46eb7