summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-02-02Move some stuff to usermanager, remove a little header insanity, remove ↵w00t
trace because it's still less useful than a chocolate fireman. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8790 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02Check for empty prefixes, and close server connections attempting to use themw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8788 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02Patch: /rehash (not /rehash ssl) will now rebind SSL ports, but not dh ↵w00t
params etc. Closes #391. Thanks dz. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8786 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-01fixed getsockopt parameter 4, removed sys/select.h on windows platformfez
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8780 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-31applink.c should be included in the link command, not #included in the sourcefez
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8773 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-30Move fez to developers (a lot of movement for one day :p)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8772 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-30Move fez to regular contributors sectionw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8771 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-30Merge in patches to fix bug #487, submitted by dz, thanks :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8769 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-27Forward port bug #484 patch from John, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8760 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-27You left out the module name in the command, aquanight ;)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8756 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-27Change API OnOperCompare to OnPassCompare, password hashing is now available ↵aquanight
for <connect:allow>, <power die= restart=>, <title> (m_customtitle.so), <vhost> (m_vhost.so), this works the same was as for <oper>: load m_password_hash.so (after all hasher modules, of course), and add hash="md5/sha256/whatever" to the relevant tag. Also fix m_callerid.cpp crashing on unload. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8755 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26ANNOUNCENENT -> ANNOUNCEMENTbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8754 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26Fix for bug found by eLement, when an oper is on a notify list and the oper ↵brain
sets +Q, then the watch list for that user goes into an undefined state due to the metadata not being correctly cleared from the user in m_watch OnUserQuit. Thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8752 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26Tweaksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8751 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26Whoops, should have test compiled thisbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8750 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-26macgyverdgi asked for this :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8749 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-25Fix a typo in an m_callerid error message, and add m_callerid and m_filter ↵aquanight
<exemptfromfilter> to example conf. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8748 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21win32 compile error fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8747 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21win32 compilation errors: shadowing of variable 'i' isnt a good ideabrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8746 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21win32 compile error fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8745 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-21Win32 compilation fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8743 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-20Update m_filter* to 1.2 API (it was still using Implements()), also ↵aquanight
implement <exemptfromfilter channel="#blah"> to exclude channels from filtering. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8742 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19Fix m_callerid not adding the usermode.aquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8738 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19Add aquanight to developers sectionw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8736 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19Initial implementation of callerid, provided by aquanight. Untested as of ↵w00t
yet. Probably could use a little of the /watch love to speed up removals in the future. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8735 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Remove a redundant method here, call the mode manager directlyw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8732 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17The outer if (socket > -1) check in AddClient is obsolete and this is ↵brain
already checked in socket.cpp. We can remove and just have the inner check. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8730 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Fix.. snomask O is already taken (ffs) so use A insteadw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Remove InspIRCd::WriteOpers in favour of snomask Ow00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8728 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Start converting WriteOpers calls into snomask 'O' -- generic oper notices.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8727 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Move a number of methods from class InspIRCd to class UserManagerw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8726 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17Add logger.(cpp|h), will eventually hold implementation of logging managerw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8725 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Make the sid exception message more descriptive so a user knows what a valid ↵brain
SID is git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8722 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Validate <server:id> on startup if provided, thx Brainw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8721 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Add a warning about quitting a user twice, and fix a minor brainfartw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8718 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Remove an O(log n) in favour of an O(1) operation, and tidy up culllist some ↵w00t
more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8717 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Two stage commit: don't set user->muted except in QuitUser (duplicate ↵w00t
setting), also, change muted to drop all socket operations instead of just not reading the user's buffer if muted is set (no point wasting time - they're going away). Also revert culllist back to once per mainloop iteration now it is much cheaper than previously. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8716 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Re-add support for silent quits (note: we also remove an O(n) doing it this way)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8715 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Hacked-up culllist: stores user pointers rather than CullItem, as creating ↵w00t
them seems to be very expensive and wasteful. Doesn't support silent quits (yet), and User::QuitUser seems to trigger *many* times per user before they are removed (socketengine getting write events to closed socket perhaps). It's still much quicker than the old way (NO perceptible lag AT ALL :)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8714 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15Someone forgot to delete what they new :Pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8713 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15CullList -> CullItem *w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8712 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15CullList: Don't try quit everyone. Speed/resource use enhancement on netsplits..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8711 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-15Fix a stupid crash on unknown commands caused by me blindly applying a 1.1 ↵w00t
patch.. doesn't affect 1.1 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8710 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-14IPv6 fix, thanks to danieldg. Doesn't affect 1.1.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8709 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13New timer code. This may be a tiny fraction slower (though I think it will ↵w00t
be acceptable given that we no longer need to tick old timers etc), but it is a lot simpler (about half the codesize of the old + no allocation of new timergroups etc), and should (I hope) always tick timers and never 'lose' them. Performs okay under 3500 connection attempts (0:00 CPU time :)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8708 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13Undo my constructor playing, I'm pretty sure it will break stuff. This will ↵w00t
require thinkings. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8707 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13Move User::AddClient to UserManager::AddClient. WARNING: I assure you this ↵w00t
is currently WRONG as I was playing with moving a few bits to the constructor. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8706 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13First UserManager overhaul: Move clone counts out of InspIRCd & User.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8705 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-13Add a channel manager class while I'm at it.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8704 e03df62e-2008-0410-955e-edbf42e46eb7