aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix recursion of QuitUser in SendQ quitsGravatar Daniel De Graaf2011-05-231-7/+5
|
* Fix the stupid untested off-by-two ident length checkGravatar Daniel De Graaf2010-08-131-1/+1
|
* Fix memory leak in SetSockAddr (triggered by cgiirc clients)Gravatar danieldg2010-01-301-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12332 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove users from uuidlist/clientlist on QuitUser, not during cull (allows ↵Gravatar danieldg2010-01-301-2/+0
| | | | | | UID reuse on fast netsplits) git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12327 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix empty FMODE being sent if SendMode denies mode changesGravatar danieldg2010-01-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12324 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some very verbose debug that isn't really needed anymoreGravatar w00t2009-08-141-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11512 e03df62e-2008-0410-955e-edbf42e46eb7
* Make rehash work more than once per run, and fix some uninitialized values ↵Gravatar danieldg2009-08-121-2/+2
| | | | | | in connect classes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11505 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for config readerGravatar danieldg2009-08-121-15/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
* Comment on what looks like incorrect behaviour in User::Oper().Gravatar w00t2009-08-031-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11477 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert "Don't do all the oper gubbins if the opertype doesn't exist. I've ↵Gravatar w00t2009-08-031-49/+46
| | | | | | | | 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
* Revert "Find the right variable so it actually works, too."Gravatar w00t2009-08-031-1/+1
| | | | | | This reverts commit a245aa22076e17e72c84e5a0f5699209cdf62727. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11475 e03df62e-2008-0410-955e-edbf42e46eb7
* Find the right variable so it actually works, too.Gravatar w00t2009-08-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11474 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't do all the oper gubbins if the opertype doesn't exist. I've absolutely ↵Gravatar w00t2009-08-031-46/+49
| | | | | | 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
* Check that the <connect> block actually specifies a host before checking ↵Gravatar w00t2009-08-011-1/+1
| | | | | | 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
* Fix r11381 checking HideWhoisServer incorrectlyGravatar danieldg2009-05-141-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11384 e03df62e-2008-0410-955e-edbf42e46eb7
* Hide server sources if HideWhoisServer is set, noticed by BrainGravatar danieldg2009-05-131-0/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11381 e03df62e-2008-0410-955e-edbf42e46eb7
* Use Utils->ServerUser instead of ServerInstance->FakeClient in m_spanningtreeGravatar danieldg2009-05-131-0/+6
| | | | | | | 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
* Create subclass of User for FakeClient, to allow for use as command sourceGravatar danieldg2009-05-131-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11375 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix memory leak on rehash: opertype used char* instead of std::stringGravatar danieldg2009-04-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert snomask 'A' into snomask 'a' for local announcements, add snomask ↵Gravatar w00t2009-04-161-4/+4
| | | | | | | | | '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
* Fix for bug #788, set user->quitting before writing error to users socket, ↵Gravatar brain2009-03-181-4/+4
| | | | | | | | | 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
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | 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
* Fix bug #751 (wallops are not being processed remotely), reported by Taros.Gravatar w00t2009-03-091-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11191 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix +P channels being deleted when the final user /QUITs, thanks SnoFoxGravatar danieldg2009-03-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11161 e03df62e-2008-0410-955e-edbf42e46eb7
* Also Extend user with FORCENick when calling the actual command handler for ↵Gravatar peavey2009-02-151-0/+2
| | | | | | 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
* Nuke trailing spacesGravatar peavey2009-02-141-12/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow SANICK, SVSNICK, NICKLOCK, etc to override +bN N:. Fixes bug #607 and ↵Gravatar w00t2009-02-041-0/+4
| | | | | | #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
* Tone down some logging to make debugging a tiny bit easier.Gravatar w00t2009-01-221-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10977 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove +o from users on deoper, plausible fix for bug #653 reported by ↵Gravatar w00t2009-01-031-1/+4
| | | | | | 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove lines_in and reset_due flood protection mechanism, recvq/sendq on ↵Gravatar w00t2008-12-011-2/+1
| | | | | | | | 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
* Remove m_operflood, add privs: users/flood/no-throttle & ↵Gravatar w00t2008-12-011-3/+3
| | | | | | | | 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
* Remove OverPenalty, saves sizeof(bool) per user.Gravatar w00t2008-12-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10836 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove +s when no snomasks are set.. bug found (indirectly) by jackmcbarn.Gravatar w00t2008-11-021-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10793 e03df62e-2008-0410-955e-edbf42e46eb7
* Second attempt at time() -> SI->Time(), now problems with the original were ↵Gravatar w00t2008-11-011-3/+3
| | | | | | | | | 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
* Remove now-unneeded 4in6 hacks [danieldg]Gravatar w00t2008-11-011-6/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10781 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge commit 'ddg/out-12'Gravatar w00t2008-11-011-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10778 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix 4in6 IP resolution hack now that the leading ::ffff: is stripped from ↵Gravatar w00t2008-10-281-5/+4
| | | | | | the IP [danieldg] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10745 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove one (now unneeded) 4in6 hack.Gravatar w00t2008-10-281-8/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10744 e03df62e-2008-0410-955e-edbf42e46eb7
* Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this ↵Gravatar w00t2008-10-251-1/+2
| | | | | | 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
* (sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove ↵Gravatar w00t2008-10-251-0/+10
| | | | | | 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
* Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵Gravatar w00t2008-10-231-3/+3
| | | | | | 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
* Patch from Namegduf converting all instances (where possible) of time() -> ↵Gravatar w00t2008-10-231-3/+3
| | | | | | ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
* Working privs implementation, and example usage in NOTICE for mass messaging.Gravatar w00t2008-10-181-6/+68
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10662 e03df62e-2008-0410-955e-edbf42e46eb7
* Migrate oper commands to an std::set, add a set for privs also. Change the ↵Gravatar w00t2008-10-181-2/+2
| | | | | | API a bit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10661 e03df62e-2008-0410-955e-edbf42e46eb7
* Add skeleton of HasPrivPermission.Gravatar w00t2008-10-181-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10660 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove space indenting. (Brain, *smack* :P)Gravatar w00t2008-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10655 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the duplicate checking/disabled setting of <connect> craq, there is a ↵Gravatar w00t2008-10-171-10/+0
| | | | | | (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
* Whooops! thanks psychonGravatar brain2008-10-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10619 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #601Gravatar brain2008-10-021-3/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7