brain
f0e0cb4da6
mmmm dinner break, oh and document and make use of modestacker.
...
Someone test this, i cant as im at work.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5395 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-02 12:59:55 +00:00
brain
4ae42b33e6
Add more features to modestacker so that we can stack +, -, and parameterless modes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5391 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-02 09:24:49 +00:00
brain
bd0413a193
More efficient modestacker
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5390 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-02 08:51:45 +00:00
brain
02fe4a3085
modestacker class, stacks modes and returns a string list of up to MAXMODES modes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5389 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-02 08:47:14 +00:00
brain
4b0f6c610f
Now with binary versioning goodness
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01 14:59:38 +00:00
special
2d86278096
Added OnPostJoin, which is (at the moment) almost exactly identical to OnUserJoin but called after, so you can play with linking
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5361 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01 00:19:36 +00:00
brain
27199ee710
make OnPostConnect global
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5339 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-26 17:16:42 +00:00
w00t
cae372d1eb
Remove deprecated -nolimit and -notraceback options
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5338 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-26 17:04:39 +00:00
brain
990c308a95
Whoops, patch
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5324 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-25 17:43:28 +00:00
special
e71fa7cc6b
Speaking of misleading comments, 'Delete and InspTImer' isn't particularly descriptive
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5313 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-24 08:44:24 +00:00
brain
8ed63fe681
Make the check against z/k/q/e/g methods return a pointer to the whole object rather than just the reason string
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5305 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-19 18:24:07 +00:00
brain
066e5ca366
Fix crashes, and in the process make xline even faster!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5304 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-19 18:12:43 +00:00
brain
89dc9ab198
Make xline more memory-efficient and faster/neater. Eliminate a mass of fixed-size buffer and strlcpy
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5300 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-19 13:44:09 +00:00
brain
0e21e5b642
Turn irc::commasepstream into a base class, irc::sepstream, inherit two classes from it: irc::commasepstream and irc::spacesepstream, to be used for the most common token seperators "," and " "
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5266 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-17 14:08:03 +00:00
brain
3a7dd5b129
Add const std::string &original_command to OnPreCommand and OnPostCommand, which gives the entire untouched command string and params in all its colon-ny glory
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5265 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-17 14:01:53 +00:00
brain
383caa90d5
Add timeouts to the http module. Two seperate timeouts, 60 seconds to receive headers, and 60 seconds after receipt of headers and sending of page, in which to time out the connection if the client doesnt close() as it should
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5260 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 18:36:38 +00:00
brain
2e2f1e98a6
Fix for bug noticed by dotslasher (?) where SAJOIN can desync
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5258 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 17:17:30 +00:00
brain
946bff6371
Annotations
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5257 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 15:06:51 +00:00
brain
c3f221fcbb
Annotations
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5256 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 14:59:22 +00:00
brain
b45e7cfebb
Annotations
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 10:59:36 +00:00
brain
ea483e4972
Remove ExemptItem and InviteItem, these were never used
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5253 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 10:29:22 +00:00
brain
5c53f05f76
If inspircd crashes in std::string destructor in CommandParser::ProcessCommand, take away all std::string's to make the bug manifest elsewhere, so maybe we can spot it
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5232 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-13 20:29:53 +00:00
brain
c06d4197af
Special check in cmd_quit and cmd_kill and special return value CMD_USER_DELETED, to prevent theoretical segfault (this isnt the bug youre trying to find, pip)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5230 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-13 20:07:19 +00:00
w00t
83562ac4df
Fix for picky compilers (see, I work sometimes ;p)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5218 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-11 19:34:28 +00:00
brain
1a3297e974
* Fix ChanModes::ModeString to not try and set a key as a user mode ;)
...
* Tweak the way cyclehosts works, so that mode change is not echoed back to user who changes their host/ident
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5208 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10 19:48:30 +00:00
brain
a9c93027da
Split hostmasks into ident and host pairs for matching as g/k/e lines. This allows them to be matched faster and more efficiently
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5203 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10 17:51:03 +00:00
brain
52aec3dd2a
Match IP's with klines, glines and exceptions, as well as hosts
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5201 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10 17:18:58 +00:00
brain
ba5a5b345c
Move Spacify() into irc:: namespace as multiple modules use it now
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5200 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10 17:03:50 +00:00
brain
8f9d81063c
Spacify() the oper types
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5199 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10 16:59:10 +00:00
brain
d91de4ee7a
ModuleFactories are not being deleted, this means that updates arent loaded
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5191 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-09 21:29:08 +00:00
brain
be60fccc6c
Make SAMODE oper output tidier
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5184 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-09 15:29:42 +00:00
brain
38456992a3
Fix 'item not on list' output
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5162 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-08 15:02:12 +00:00
brain
78a41fc6e4
Allow QUIT to be used before we fully register the connection. This stops mirc from closing the connection thinking it has quit when inspircd has denied their QUIT command,
...
in theory the ghosts w00t and i saw would have timed out after 60 secs?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5158 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-08 13:28:17 +00:00
brain
ecd5b4082a
Finish off the fix for bug #136 (a biggie for such a simple thing)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5151 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-06 18:20:02 +00:00
brain
4cf0ae1308
Command result codes. This isnt finished yet, still got to do most of the modules, and alter CallCommandHandler
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5149 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-06 17:21:59 +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
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
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
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
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
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
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
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
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