5234 Commits

Author SHA1 Message Date
brain
16e251d74a g++ is picky about default params with overloading
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 17:26:04 +00:00
brain
3446072b3e Move showhelp() into make/configure.pm
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6323 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 17:07:09 +00:00
brain
5ecbb6f80f Slightly decraqed configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6322 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 16:46:24 +00:00
peavey
f9f475b090 OMG SQLITE3 support, almost there now =)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6321 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 16:45:51 +00:00
brain
4b508594ae 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
2007-01-14 16:26:30 +00:00
brain
0c828ad6d4 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
2007-01-14 13:30:43 +00:00
peavey
b3685095cd 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
2007-01-14 13:26:22 +00:00
brain
cd211dbaf1 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
2007-01-14 13:11:57 +00:00
brain
f6f45af59e 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
2007-01-14 02:19:27 +00:00
peavey
a3134fbaaa Bang! Gone due to new buildsystem.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6315 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 01:00:01 +00:00
brain
72b28ac3df Output which module is executing the macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6314 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:54:04 +00:00
brain
55f4198a35 Formatting glitch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6313 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:49:16 +00:00
brain
4f08be1ae8 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
2007-01-14 00:48:22 +00:00
brain
f9d43fcd9f 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
2007-01-14 00:39:29 +00:00
brain
fdabab1b82 Take out unneccessary chomp()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6310 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:15:28 +00:00
brain
3b98fdf9f3 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
2007-01-14 00:15:09 +00:00
brain
7e014c9b8c 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
2007-01-14 00:03:50 +00:00
brain
2e9951e823 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
2007-01-13 23:58:51 +00:00
brain
4f0e6377e8 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
2007-01-13 23:53:08 +00:00
brain
ad4d207905 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
2007-01-13 23:29:40 +00:00
peavey
568018bdbd Get flags for sqlite3.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6304 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13 23:07:14 +00:00
brain
5adff9af1b 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
2007-01-13 22:40:30 +00:00
om
f9c08a2906 Test fix for breakage with IPv6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13 10:07:05 +00:00
peavey
557de97a72 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
2007-01-12 05:19:50 +00:00
peavey
76ef4a17de 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
2007-01-12 00:35:19 +00:00
brain
bd178c8172 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
2007-01-11 21:09:01 +00:00
brain
68fe463c84 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
2007-01-11 06:20:06 +00:00
peavey
6fe5a1d79b More tidyup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11 04:49:22 +00:00
peavey
300b27d0bb 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
2007-01-11 04:39:51 +00:00
peavey
c662a37341 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
2007-01-11 04:24:37 +00:00
peavey
0392e44ac5 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
2007-01-11 03:34:22 +00:00
peavey
84b11d497c reconnects still broken, but getting there.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6293 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10 23:33:17 +00:00
peavey
be8a96afed 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
2007-01-10 21:00:37 +00:00
brain
0489438111 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
2007-01-10 17:54:43 +00:00
brain
2ba3cb83d6 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
2007-01-10 17:47:39 +00:00
brain
1e3c3d2008 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
2007-01-10 17:46:38 +00:00
brain
b55d5722c5 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
2007-01-10 17:36:05 +00:00
brain
425ab67e76 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
2007-01-10 17:34:57 +00:00
peavey
16e8b383c5 Typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6286 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10 00:57:35 +00:00
brain
e339a87eb4 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
2007-01-10 00:16:06 +00:00
brain
49e34a508d 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
2007-01-09 22:31:19 +00:00
brain
d569a50e74 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
2007-01-09 19:15:30 +00:00
brain
65dedc3bc1 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
2007-01-09 17:21:26 +00:00
special
c2c963813b 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
2007-01-09 13:43:12 +00:00
special
59bff82d23 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
2007-01-09 13:39:47 +00:00
special
3282cf07a1 Made m_denychans support wildcards
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6279 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09 13:21:17 +00:00
peavey
f1d7e1e544 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
2007-01-09 04:15:10 +00:00
peavey
d3472e07a1 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
2007-01-09 02:58:43 +00:00
brain
190815df67 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
2007-01-09 02:09:36 +00:00
brain
11c5695f29 This is better, and proved working
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6275 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-09 02:05:01 +00:00