]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
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

17 years agoTypo
peavey [Wed, 10 Jan 2007 00:57:35 +0000 (00:57 +0000)]
Typo

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

17 years agoChange stats z to show volountary and involountary seperately
brain [Wed, 10 Jan 2007 00:16:06 +0000 (00:16 +0000)]
Change stats z to show volountary and involountary seperately

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

17 years agoComment on a lot of recently added stuff that wasnt properly documented (until now)
brain [Tue, 9 Jan 2007 22:31:19 +0000 (22:31 +0000)]
Comment on a lot of recently added stuff that wasnt properly documented (until now)

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

17 years agoSomeone forgot to make correct deps for timer.h. Fixed.
brain [Tue, 9 Jan 2007 19:15:30 +0000 (19:15 +0000)]
Someone forgot to make correct deps for timer.h. Fixed.
Added InspTimer::CancelRepeat(), we can use this within the Tick method to cancel a repeat so that the timer is deleted after the tick, as DelTimer isnt safe within the Tick method

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

17 years agoAdd a call to InvalidateCache() to fix this:
brain [Tue, 9 Jan 2007 17:21:26 +0000 (17:21 +0000)]
Add a call to InvalidateCache() to fix this:
[04:48] --- peavey is now known as PEAVEY
[04:48] --- peavey is now known as peavey
Second line should be PEAVEY -> peavey

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

17 years agoMade the real name value for /admin optional (line isn't displayed if not specified)
special [Tue, 9 Jan 2007 13:43:12 +0000 (13:43 +0000)]
Made the real name value for /admin optional (line isn't displayed if not specified)

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

17 years agoWhoever added clearcache must have been asleep; they left the definition of it as...
special [Tue, 9 Jan 2007 13:39:47 +0000 (13:39 +0000)]
Whoever added clearcache must have been asleep; they left the definition of it as cmd_admin::Handle

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

17 years agoMade m_denychans support wildcards
special [Tue, 9 Jan 2007 13:21:17 +0000 (13:21 +0000)]
Made m_denychans support wildcards

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

17 years agoHave ConvNumeric correctly convert 0 to 0 instead of an empty string.
peavey [Tue, 9 Jan 2007 04:15:10 +0000 (04:15 +0000)]
Have ConvNumeric correctly convert 0 to 0 instead of an empty string.

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

17 years agoRevert repeat timer to old one, to make sure it only runs if list was actually being...
peavey [Tue, 9 Jan 2007 02:58:43 +0000 (02:58 +0000)]
Revert repeat timer to old one, to make sure it only runs if list was actually being called by a user.

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

17 years agoAdd specialization for ConvToStr on a single char, return std::string(in,1) :p
brain [Tue, 9 Jan 2007 02:09:36 +0000 (02:09 +0000)]
Add specialization for ConvToStr on a single char, return std::string(in,1) :p

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

17 years agoThis is better, and proved working
brain [Tue, 9 Jan 2007 02:05:01 +0000 (02:05 +0000)]
This is better, and proved working

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

17 years agoThis is a bit better
brain [Tue, 9 Jan 2007 01:36:51 +0000 (01:36 +0000)]
This is a bit better

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

17 years agoOverloaded template classes for mucho improved ConvToStr speed
brain [Tue, 9 Jan 2007 01:30:51 +0000 (01:30 +0000)]
Overloaded template classes for mucho improved ConvToStr speed

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

17 years agoTimeSyncTimer now uses repeat timer.
peavey [Tue, 9 Jan 2007 01:21:47 +0000 (01:21 +0000)]
TimeSyncTimer now uses repeat timer.

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

17 years agoAssigning a std::string var initially to "" is pointless.
brain [Tue, 9 Jan 2007 01:14:39 +0000 (01:14 +0000)]
Assigning a std::string var initially to "" is pointless.

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

17 years agoMake safelist use repeat timer.
peavey [Tue, 9 Jan 2007 01:12:14 +0000 (01:12 +0000)]
Make safelist use repeat timer.

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

17 years agoTidy up (optimize, improve) chanrec::WriteChannelWithServ
brain [Tue, 9 Jan 2007 00:49:40 +0000 (00:49 +0000)]
Tidy up (optimize, improve) chanrec::WriteChannelWithServ

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

17 years agoTidy up an if/then/else chain into a switch
brain [Tue, 9 Jan 2007 00:31:52 +0000 (00:31 +0000)]
Tidy up an if/then/else chain into a switch

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

17 years agoCache channel max bans value to save an O(n) loop of match() on every ban (etc) add
brain [Tue, 9 Jan 2007 00:25:18 +0000 (00:25 +0000)]
Cache channel max bans value to save an O(n) loop of match() on every ban (etc) add

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

17 years agocmd_whowas now uses the shiny new repeating timer.
peavey [Mon, 8 Jan 2007 19:58:16 +0000 (19:58 +0000)]
cmd_whowas now uses the shiny new repeating timer.

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

17 years agoTweaks to mode parser
brain [Mon, 8 Jan 2007 19:13:48 +0000 (19:13 +0000)]
Tweaks to mode parser

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

17 years agoAdd repeating timers, and make an hourly prune of the dns cache, otherwise a cache...
brain [Mon, 8 Jan 2007 18:42:13 +0000 (18:42 +0000)]
Add repeating timers, and make an hourly prune of the dns cache, otherwise a cache entry might not be cleared until a user with that ip comes back!

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

17 years ago user->WriteServ( "371 %s :. o O ( The Inspire Internet Relay Chat Server...
brain [Mon, 8 Jan 2007 17:07:08 +0000 (17:07 +0000)]
    user->WriteServ( "371 %s :. o O ( The Inspire Internet Relay Chat Server  ) O o .", user->nick);
        user->WriteServ( "371 %s :      ( Putting the ricer into ircer since 2007 )", user->nick);

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

17 years agoSomeone forgot to add clearcache to the makefile install (thanks AnMaster)
special [Mon, 8 Jan 2007 10:37:57 +0000 (10:37 +0000)]
Someone forgot to add clearcache to the makefile install (thanks AnMaster)

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

17 years agogetpidfile was not working at all. Fix it to work as intended.
peavey [Mon, 8 Jan 2007 04:13:23 +0000 (04:13 +0000)]
getpidfile was not working at all. Fix it to work as intended.

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

17 years agoMove whowas containers into whowas class to avoid all cpp files including cmd_whowas...
peavey [Mon, 8 Jan 2007 04:07:04 +0000 (04:07 +0000)]
Move whowas containers into whowas class to avoid all cpp files including cmd_whowas.h to try and destroy the containers on fork exit.\nThis would cause a segfault when forking due to the containers destroy being called multiple times, but still allow the server to fork it's child and leave the server running.

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

17 years agoAdd /CLEARCACHE, oper only command which completely purges the DNS cache -- useful...
brain [Mon, 8 Jan 2007 00:18:52 +0000 (00:18 +0000)]
Add /CLEARCACHE, oper only command which completely purges the DNS cache -- useful if you just want to cut down on ram use at any point.

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

17 years agoNow even less leakage on add.
peavey [Mon, 8 Jan 2007 00:10:19 +0000 (00:10 +0000)]
Now even less leakage on add.

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

17 years agoOh, this tweak is for w00t -- rehash will remove expired items from the dns cache
brain [Mon, 8 Jan 2007 00:05:55 +0000 (00:05 +0000)]
Oh, this tweak is for w00t -- rehash will remove expired items from the dns cache

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

17 years agoUpdate a comment, and touch a header just to make people rebuild stuff >:)
brain [Sun, 7 Jan 2007 22:36:42 +0000 (22:36 +0000)]
Update a comment, and touch a header just to make people rebuild stuff >:)

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

17 years agoIf the result is cached, dont bother waiting for the dns timeout, release them at...
brain [Sun, 7 Jan 2007 22:11:18 +0000 (22:11 +0000)]
If the result is cached, dont bother waiting for the dns timeout, release them at the next timer tick if all modules are satisfied

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

17 years agoDocument dns caching, add a "bool cached" to OnLookupComplete method in Resolver...
brain [Sun, 7 Jan 2007 22:01:00 +0000 (22:01 +0000)]
Document dns caching, add a "bool cached" to OnLookupComplete method in 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

17 years agoAnd its all done and working!
brain [Sun, 7 Jan 2007 21:37:06 +0000 (21:37 +0000)]
And its all done and working!
(note, we still need to test cache expiry)

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

17 years agoDNS caching stuff (almost done)
brain [Sun, 7 Jan 2007 21:35:25 +0000 (21:35 +0000)]
DNS caching stuff (almost done)

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

17 years agoTidy up old MaintainWhoWas.
peavey [Sun, 7 Jan 2007 21:17:41 +0000 (21:17 +0000)]
Tidy up old MaintainWhoWas.

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

17 years agoDNS Stuff - this wont work right yet, it will soon (tm)
brain [Sun, 7 Jan 2007 21:16:03 +0000 (21:16 +0000)]
DNS Stuff - this wont work right yet, it will soon (tm)

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

17 years agoMove all /WHOWAS related out of core and into cmd_whowas.
peavey [Sun, 7 Jan 2007 21:14:17 +0000 (21:14 +0000)]
Move all /WHOWAS related out of core and into cmd_whowas.

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

17 years agoFix m_testcommand which tries to use an undefined pointer as ServerInstance
brain [Sun, 7 Jan 2007 20:08:49 +0000 (20:08 +0000)]
Fix m_testcommand which tries to use an undefined pointer as ServerInstance

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

17 years agoAdd TTL stuff to dns system (pass it to inherited objects)
brain [Sun, 7 Jan 2007 20:01:11 +0000 (20:01 +0000)]
Add TTL stuff to dns system (pass it to inherited objects)

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

17 years agoRename all the classes in m_httpd to be HttpServer etc,
brain [Sun, 7 Jan 2007 17:27:11 +0000 (17:27 +0000)]
Rename all the classes in m_httpd to be HttpServer etc,
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

17 years agoMake this use the newer format of class Request (this module was still using the...
brain [Sun, 7 Jan 2007 17:16:30 +0000 (17:16 +0000)]
Make this use the newer format of class Request (this module was still using 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

17 years agoMake this compile.
peavey [Sun, 7 Jan 2007 16:47:28 +0000 (16:47 +0000)]
Make this compile.

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