brain
c01b8aab83
OpenSSL gets certs and populates the ssl_cert* now!
...
(NOTE: This is not finished by a long shot, because openssl and gnutls generate slightly different format of DN - although, the fingerprint will always match if its the same user :))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5126 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 20:20:51 +00:00
brain
d4af574074
We now have a test module that can dump someones certificate information: /sslinfo <nick>
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5125 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 18:57:16 +00:00
brain
5ec6f86169
Certificate stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5124 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 18:26:34 +00:00
brain
b02af8b2a9
Obtaining of ssl cert in gnutls module and placing it into a class which is extended to the user, type ssl_cert.
...
In a while the openssl module will also populate this same high level class with data
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5123 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 17:29:29 +00:00
brain
13aeb82ad2
Proper error checking on loading cmd_*.so files
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5122 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 00:58:09 +00:00
brain
1c4abcfda1
Remove the shared object pointer from the hash after each reload
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5121 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 00:48:12 +00:00
brain
77f5fb9f0b
Forgot to copy cmd_mode.so
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5120 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 00:46:26 +00:00
brain
540f3bd9da
Add /RELOAD and move cmd_mode into its own command.
...
/RELOAD is the only thing you cant reload (ahem)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5119 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 00:44:11 +00:00
brain
1b7c615062
Auto loading of commands as shared objects via dlsym (very lightweight interface, just expects a command_t* pointer)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5118 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-03 00:09:38 +00:00
brain
f5a50a0b6d
cmd_* files are now shared object. This lets make -j optimize the build process a little better (it doesnt have to wait for the cmd_ files to finish so it can link commands.cpp against them), and it makes libIRCDcommands.so not be 20mb in size (which might hit file size limits on some shell hosters)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5117 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 23:06:14 +00:00
brain
2084f88109
Give this module VF_COMMON, as services depend on it
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5116 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 20:47:03 +00:00
brain
4d27530c80
Only VF_COMMON modules are sent in CAPAB now, not VF_STATIC
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5115 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 18:04:09 +00:00
brain
d66e596b4e
Doesnt need VF_STATIC
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5114 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 18:03:02 +00:00
brain
70b19fe6c1
Comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5113 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 17:41:36 +00:00
brain
26e4582c2e
Actually make +ovhk removable with DelMode (just in case somebody wants to, or we have need to in the future)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5112 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 17:40:33 +00:00
brain
e7c31868d1
Because these modes take no parameter when being removed, they need no special code for ModeHandler::RemoveMode()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5111 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:53:01 +00:00
brain
d1af89a55c
Actually let it be unloaded would be a start (remove VF_STATIC)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5110 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:45:40 +00:00
brain
4c48adf203
Allow unloading of +qa
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5109 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:44:38 +00:00
brain
f82e1e9de4
And this (i guess it once tested mode stuff)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5108 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:34:45 +00:00
brain
0201e28fc3
So was this...
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5107 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:34:16 +00:00
brain
187211cade
For some reason this was VF_STATIC
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5106 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:33:18 +00:00
brain
2208edf6ff
Don't try and delete from the item list whilst iterating it - make a copy instead
...
All modules using u_listmode.h are now unloadable (thats 3 more down)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5105 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:31:59 +00:00
brain
2b96ff2ed9
Don't use oncleanup to remove listmode lists
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5104 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:27:02 +00:00
brain
687531999c
banexception, chanfilter and inviteexception should now be unloadable :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5103 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:13:01 +00:00
brain
40e990ed06
All modules which implement simplemodes (no parameters, not a list mode) can now be UNLOADED O_o
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5102 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 16:02:35 +00:00
brain
5c3df6d82d
Any modules which were using VF_STATIC to indicate they implement a mode should change this to VF_COMMON once they have the correct unload code
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5101 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 15:51:29 +00:00
brain
7f9c5d0bb0
Allow unloading of modules which implement modes!
...
The default implementation of the new system will remove simplemodes so any mode handler which is just a simple mode (no params and not a list mode) does not need to add much more than one line of code and remove its VF_STATIC flag.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5100 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 15:50:29 +00:00
brain
29fd51d6f7
Add chanrec::IsBanned() so that we dont have to keep walking the banlist in various modules and using match()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5099 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02 14:09:45 +00:00
brain
423aa7ba0e
Exception handling in most of userrec... not too fine grained yet however
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5098 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-01 11:11:07 +00:00
brain
3a373e653e
Add snomask f (flood)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5097 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-01 10:46:57 +00:00
brain
74b5dabce2
Made CountChannels faster. We use it in quite a few places. It's now O(1) rather than O(n)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5094 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 22:50:56 +00:00
brain
3eb54dca41
Put some client quit stuff in cmd_quit into the Qq snomasks properly
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5093 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 22:27:54 +00:00
brain
76550ea8a9
Make ban override notice only trigger when they actually match a ban :P
...
Alter all to use snomask O (oper override) which this module enables
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5092 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 22:04:54 +00:00
brain
008850b6f3
Fix for bug #134 reported by mixx941: When user connects to ircd with no usermodes set on themselves, an m_spanningtree std::string throws a range exception because we try and substr npos.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5091 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 21:47:57 +00:00
brain
134e29c6b7
Forwardport fix from stable (bug#133 reported by insurgent): configuring a link block with the same name as the local server (?!) then linking to it causes segfault
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5090 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 16:43:35 +00:00
om
f33f516fef
Remove extra/wrong qualifications, makes GCC 4.1 (at least) die
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5088 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 13:00:21 +00:00
brain
7ce952d2b8
*thwap* om for not fixing the bugs he finds :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-31 11:00:35 +00:00
brain
4c233483f0
In this instance find is faster than rfind
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5086 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 19:57:51 +00:00
brain
de452c57b3
And make it work here
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5085 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 19:54:30 +00:00
brain
f01ac8b896
Fix for parameters which contain a colon (which is not the first char in the string)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5084 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 19:53:45 +00:00
brain
d20dd9a5c3
Remove -v argument from install (openbsd doesnt like it) - thanks wyleniauy
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5082 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 11:55:15 +00:00
brain
5b8d2c4cab
Remove a ton of <typeinfo>, <iostream>, <sstream> etc that we usually never use
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5081 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 09:51:50 +00:00
brain
d54fd9b1e6
Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-30 09:03:03 +00:00
brain
88315e8f8f
Annnd, get the fix right.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5079 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 21:45:27 +00:00
brain
c6e47f748c
Fix for correct display when removing snomask
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5078 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 21:41:30 +00:00
brain
f24aca48ff
Put servername in remote quits
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5077 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 20:45:28 +00:00
brain
7015eeaa33
Document SnomaskManager
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5076 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 20:28:42 +00:00
brain
6b81c85084
Only send 008 when MODE Oper
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5075 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 20:14:32 +00:00
brain
c88225e88e
Clarify message
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5074 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 19:57:16 +00:00
brain
8ef140900d
Don't silently drop modes that are oper only when a non-oper tries to set them - give a 481
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5073 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-29 19:52:02 +00:00