summaryrefslogtreecommitdiff
path: root/src/users.cpp
AgeCommit message (Collapse)Author
2009-09-01Change IP address storage in User to use more IPv4/IPv6 common codedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11575 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Strip SUPPORT_IP6LINKS #definedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Remove some very verbose debug that isn't really needed anymorew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11512 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Make rehash work more than once per run, and fix some uninitialized values ↵danieldg
in connect classes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11505 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Fixes for config readerdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03Comment on what looks like incorrect behaviour in User::Oper().w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11477 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03Revert "Don't do all the oper gubbins if the opertype doesn't exist. I've ↵w00t
absolutely no idea why we did this before but it's definitely not good." This reverts commit d8ee5433eab5c67e9094d9114e3696728f1cab2a. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11476 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03Revert "Find the right variable so it actually works, too."w00t
This reverts commit a245aa22076e17e72c84e5a0f5699209cdf62727. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11475 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03Find the right variable so it actually works, too.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11474 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-03Don't do all the oper gubbins if the opertype doesn't exist. I've absolutely ↵w00t
no idea why we did this before but it's definitely not good. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11473 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-01Check that the <connect> block actually specifies a host before checking ↵w00t
whether the user matches it. Allows for <connect> blocks on other criteria, like ports - fixes bug #797. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11449 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14Fix r11381 checking HideWhoisServer incorrectlydanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11384 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Hide server sources if HideWhoisServer is set, noticed by Braindanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11381 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Use Utils->ServerUser instead of ServerInstance->FakeClient in m_spanningtreedanieldg
This makes it possible to determine which server initiated a mode change, instead of having only a flag saying that some server did. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11379 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Create subclass of User for FakeClient, to allow for use as command sourcedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11375 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17Fix memory leak on rehash: opertype used char* instead of std::stringdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16Convert snomask 'A' into snomask 'a' for local announcements, add snomask ↵w00t
'A' for remote announcements. Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822, reported by Taros We really need a wrapper to use these, but, for now it's usable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-18Fix for bug #788, set user->quitting before writing error to users socket, ↵brain
and allow appending to sendq for quitting users (just don't check sendq's on quitting users) This allows the ERROR message to reach the user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11231 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15Update all wiki links to point to the new wiki. This was done automatically ↵psychon
with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-09Fix bug #751 (wallops are not being processed remotely), reported by Taros.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11191 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-02Fix +P channels being deleted when the final user /QUITs, thanks SnoFoxdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11161 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-15Also Extend user with FORCENick when calling the actual command handler for ↵peavey
NICK in User::ForceNickChange to avoid serverwide desyncs. Fixes bug #733 reported by SnoFox. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11109 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-14Nuke trailing spacespeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-04Allow SANICK, SVSNICK, NICKLOCK, etc to override +bN N:. Fixes bug #607 and ↵w00t
#644, reported by SnoFox and others. Based on patch by Phoenix in bug #702. Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11029 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-22Tone down some logging to make debugging a tiny bit easier.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-03Remove +o from users on deoper, plausible fix for bug #653 reported by ↵w00t
Ankit. Let me know if it's still b0rked, please :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10940 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-01Remove lines_in and reset_due flood protection mechanism, recvq/sendq on ↵w00t
their own now fill this role, as we have proper penalties. This tidies up *a lot* of code, and also saves a further sizeof(time_t) + sizeof(unsigned int) per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10838 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-01Remove m_operflood, add privs: users/flood/no-throttle & ↵w00t
users/flood/increased-buffers. This also saves another sizeof(bool) per user. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10837 e03df62e-2008-0410-955e-edbf42e46eb7
2008-12-01Remove OverPenalty, saves sizeof(bool) per user.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10836 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-02Remove +s when no snomasks are set.. bug found (indirectly) by jackmcbarn.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10793 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Second attempt at time() -> SI->Time(), now problems with the original were ↵w00t
fixed. (SI::TIME was not initialised). Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Remove now-unneeded 4in6 hacks [danieldg]w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10781 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Merge commit 'ddg/out-12'w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10778 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-28Fix 4in6 IP resolution hack now that the leading ::ffff: is stripped from ↵w00t
the IP [danieldg] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10745 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-28Remove one (now unneeded) 4in6 hack.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10744 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this ↵w00t
makes more sense, and also means we can call OnChangeHost for remote clients too, making it actually match it's documentation for the first time ever! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25(sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove ↵w00t
dupe checking on connect classes. Now, we just delete ones with refcount 0 on rehash, and add new ones. Connection can only match a non-disabled class, so most of the braindamage should be gone from here, without causing wild pointer fun.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10701 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵w00t
dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Patch from Namegduf converting all instances (where possible) of time() -> ↵w00t
ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Working privs implementation, and example usage in NOTICE for mass messaging.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Migrate oper commands to an std::set, add a set for privs also. Change the ↵w00t
API a bit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10661 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18Add skeleton of HasPrivPermission.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10660 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-17Remove space indenting. (Brain, *smack* :P)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10655 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-17Remove the duplicate checking/disabled setting of <connect> craq, there is a ↵w00t
(better) way to do this, which is to hunt for a new connect class on all users once /rehash happens. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10654 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-03Whooops! thanks psychonbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10619 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-02Fix for bug #601brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-29Replace the IP (in addition to hostname) for CGIIRC clients; fixes glines ↵special
and zlines on IPs affecting cgiirc users. Thanks to Saz|Laptop git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10607 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-18Reinvert order of insert/erase into user hash_map to avoid a lil crash :)peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10557 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-14Patch by dz to remove the one usage of strdup/strtok_r, which is very un-C++ ↵special
behavior (and silly, since we have sepstream) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10543 e03df62e-2008-0410-955e-edbf42e46eb7