8664 Commits

Author SHA1 Message Date
w00t
5217069a0e Implement masking and descriptions for module manager, thanks danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10429 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 03:27:54 +00:00
w00t
3e72c8cb7e Allow comments in sources.list and list files (thanks danieldg)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10428 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 02:27:43 +00:00
w00t
bff8412503 Add default sources.list for modulemanager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10427 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 02:25:47 +00:00
w00t
8424e1367b Add basic module manager, patch courtesy of danieldg.. still needs some work/review, but looks good
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10426 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 01:51:21 +00:00
w00t
42a28a83e5 Add (currently untested and undocumented) fantasy command (<alias:channelcommand>) support.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10425 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 22:15:11 +00:00
brain
04416cb33d Grr at windows exports
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10424 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:55:47 +00:00
w00t
ec8ad2737e Rename some member fields; add <alias:usercommand>, default true - whether or not the alias may be used as a /command. Also add (but don't yet implement) <alias:channelcommand>, default false, as to whether or not the command may be used as a fantasy command.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10423 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:49:46 +00:00
w00t
3fc82f6c87 Restructuring to m_alias, this will be used for (optional) fantasy commands.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10422 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:28:56 +00:00
brain
5e4b7f9c2c fixes so m_sqloper builds on win
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10421 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:27:15 +00:00
brain
8a14e1223d Auto update modules from src/modules/extra by recopying them in configure if they exist also in src/modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10420 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 20:42:36 +00:00
w00t
a41015121d Modify aliases to use a multimap rather than a vector for storage + a map for quick existance checking, this makes processing an alias that exists O(log n), while keeping checking for nonexistant aliases O(log n) also, as well as saving us a few bytes of memory.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10419 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 20:06:28 +00:00
brain
43240de39d Make ThreadEngine::Mutex() protected too, make the user use Lock() and Unlock()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10418 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 14:41:44 +00:00
w00t
66917d76f5 Document m_operinvex
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10417 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:41:03 +00:00
w00t
3fab57d9ec Add m_operinvex, adds first use for extended invex (added by Brain). Allows for +I O:opertypemask, +b O:opertype, +e O:opertype.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10416 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:36:44 +00:00
brain
26dd701174 Depends on: ../../include/u_listmode.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10415 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:36:09 +00:00
brain
3b83811fa9 Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10414 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:32:13 +00:00
brain
cc07a20aa2 Nope w00t it wasnt the last :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10413 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:30:45 +00:00
brain
0efd330721 Properly handle CIDR etc for user pointer extbans
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10412 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:29:24 +00:00
brain
7410e81e80 Make sure user is null when a literal is passed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10411 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:25:58 +00:00
brain
4fa581ea12 Optional use of user object
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10410 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:21:35 +00:00
brain
5cd6c1a4f0 Whoops left something out
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10409 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:08:23 +00:00
brain
e9f1fd175b Publish interface in chanfilter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10408 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:05:28 +00:00
brain
e853ec6473 Newer extban-supporting listmode api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10407 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:04:26 +00:00
brain
da011c2348 Stick Enable() in private, enhance comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10406 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 12:29:19 +00:00
brain
dc26487789 Use lock/unlock
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10405 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 12:16:19 +00:00
peavey
c038dc7514 use lock/unlock instead.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10404 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 11:53:08 +00:00
brain
0d6df83565 New methods in mutex purely for readability:
void Lock() { Enable(true); }
        void Unlock() { Enable(false); }


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10403 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 11:37:25 +00:00
brain
3426b12234 RegexFactoryRequest sets result to null on construction, so if you direct this Request at a module which doesnt implement it, you predictibly get NULL as a result from Create() rather than a random value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10402 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 03:52:34 +00:00
peavey
09262ea7e4 Now with threaded queries.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10401 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 22:29:45 +00:00
w00t
ff11847cea Fix unsafe cast (const char * -> char *). Doesn't really matter, though, as nothing currently uses this code. ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10400 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 22:18:10 +00:00
aquanight
2df56b811b TRE regex provider (the same engine used by Unreal 3.2)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10399 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 20:02:02 +00:00
aquanight
19406833a1 POSIX regular expression provider (basic/extended controlled by <posix extended=..>).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10398 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 19:33:49 +00:00
aquanight
14b198f5f6 Make it possible to retrieve the original string from a given regex object, so it can be displayed in, eg, /stats (for filter/rline for example)).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10397 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 18:58:55 +00:00
aquanight
b70bef06e7 Adjustments to regex creation, and add PCRE provider
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10396 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 18:53:07 +00:00
aquanight
1a1cdd989a Framework for central regex module, and a bare-bone implementation based on InspIRCd::Match().
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10395 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 17:37:02 +00:00
brain
739c665e2c mysql's windows build is utter hell to get working the way we wanted. The packaged libs provided by mysql AB are built against statically linked libraries and for vs2003. These dont work with inspircd using dynamically linked runtime and they dont work on vs2005 or 2008! Have had to roll my own MySQL on windows which was annoying as it wouldnt compile and was missing libraries and include files, we will have to bundle our own mysql dll built for the right visual studio and right runtimes. All the headers etc fixed to build in windows. Not tested with a real db connection yet, just compiles.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10394 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 11:22:50 +00:00
brain
d27af79ee0 sql api and m_mysql compile fixes for windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10393 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-05 08:42:41 +00:00
brain
bc9aa036ce Needs the .lib apparently
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10392 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:49:59 +00:00
brain
5f9e50e2fa This would be useful, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10391 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:47:30 +00:00
brain
77954a2e31 Of course, it DOES help to actually initialise the Mutex objects, and delete them on shutdown after the thread is gone
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10390 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:43:42 +00:00
brain
235718102e Update comment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10389 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:40:40 +00:00
brain
9ad665b632 Now uses Mutex class. No need for pthreads use directly in this lib. Needs testing.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10388 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:39:24 +00:00
brain
7ebfd3aa68 Thread is now a Thread derived class, now need to convert the mutexes. With the new Mutex class, should be pretty easy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10387 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 21:23:01 +00:00
brain
a8fa3da65e mutexengine -> mutexfactory
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10386 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 11:40:20 +00:00
brain
bc770c5388 MutexEngine -> MutexFactory, more sensible name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 11:03:58 +00:00
brain
2a0c6c52d0 initialise mutexengine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10384 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:50:53 +00:00
brain
7c42793a1e Fix silly compile errors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10383 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:28:21 +00:00
brain
02d4ad12a6 fix posix mutexes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:24:02 +00:00
brain
edd35ae3af ability to create mutexes (rather than just having one system wide mutex) in the threadengines, allows for migration of m_mysql etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10381 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:06:59 +00:00
brain
2cf32b0320 fix a warning. I am on a warning zapping crusade today.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10380 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 09:31:18 +00:00