87 Commits

Author SHA1 Message Date
brain
e65b2c70e4 Add error messages to Resolver::OnError()
Add exception handling to several places that use Resolver (it can throw)
Remove Resolver::ProcessResult(), its now handled within the bowels of dns.cpp


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4646 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-02 18:44:13 +00:00
brain
e00b5b82db Comments, add more detail, remove dnsqueue.h include from tons of places
Remove THREADED_DNS defines from all over the place


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4629 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01 23:26:11 +00:00
brain
f44d25e8c3 Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4628 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01 23:09:07 +00:00
brain
be1e2e4ee5 Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4627 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01 23:07:26 +00:00
brain
e74bb16a4f Stuff to make user host resolving use class Resolver - not tested yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4626 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01 22:59:59 +00:00
brain
c80508b28b Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first step on the road to ipv6 support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01 10:37:16 +00:00
brain
95840640cb Change all references to voodoo numbers (7, 3 etc) to the new bitwise constants for user->registered
Change a lot of user->fd > -1 to use the IS_LOCAL() macro


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-28 12:00:25 +00:00
brain
0757a4a495 mass tidyup, change A LOT of stuff to const char** which was char** (such as parameters to commands in handlers)
which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations
(all in all, ive added 2 casts and removed almost a hundred)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 12:18:29 +00:00
brain
174169ac35 Rollback dns change
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4384 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14 12:14:42 +00:00
brain
ccb1837a14 Fix dns socket leak found in stable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4383 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14 11:43:17 +00:00
brain
62b550f653 Inherit tons of stuff from classbase that should always have been
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4298 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10 18:54:25 +00:00
w00t
91436d31a4 - userrec::ProcessNoticeMasks - provide a way to set or unset masks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4276 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10 16:04:06 +00:00
w00t
d2381df1f7 -Clone mode methods into notice mask methods for userrec.
- Modify userrec to add char [] of notice masks, works in the same function as modes.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4273 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10 15:07:39 +00:00
brain
f6fc729c72 Did some renaming so that the methods for modes in chanrec and userrec are identical.
bool IsModeSet(const unsigned char c);
void SetMode(const unsigned char c, bool value);
Fixed m_botmode for new api


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4194 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 21:37:16 +00:00
brain
fc9e00f492 Add userrec::HasMode, fix some typos.
TODO: Make more use of userrec::HasUmode('c') rather than user->modes['c'-65] *oogly*
Next - get umode +o working!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4178 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 18:03:30 +00:00
brain
1d3147a96e Change channelmodes -> usermodes (typo)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4177 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 17:53:37 +00:00
brain
3f389a4bd9 Convert new +isw modes to new mode format
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4176 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 17:53:03 +00:00
brain
33ed72a1df Refactored user modes to work like the channel modes - core and module data now the same storage format without ::modebits
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4175 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 17:44:16 +00:00
om
3cf1ae0470 Replace rather craq'y loop with a couple of std::string calls
Change GetServerDescription to take const char* rather than char*
Change userrec::server from char* to const char*, this is more 'correct' as it's not safe to modify it (pointer as returned by std::string::c_str())
Change WhoWasGroup::server, see above about userrec::server

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4094 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01 11:42:09 +00:00
brain
1ee80d5d5f Increase length of dhost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3955 e03df62e-2008-0410-955e-edbf42e46eb7
2006-05-11 21:43:46 +00:00
brain
bad99c30c7 Made FindMatching(Global|Local) available via users.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3872 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-12 00:37:36 +00:00
om
9063972162 Routing more socket includes through socket.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3868 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 22:16:34 +00:00
om
ecb76110fd A few more typedefs defined and put into use.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3866 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 20:38:26 +00:00
brain
572a7b503b Commented a lot of stuff that hasnt been commented since 1.0.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3695 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12 18:03:02 +00:00
brain
4aaf01aafa Tidyup and move ConvToStr to a publically accessible place
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3640 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 17:51:26 +00:00
brain
024048d646 Moved more stuff into right places
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3637 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10 17:39:19 +00:00
om
4fa0251cfb Changing by-value parameters to const references
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3605 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 21:11:50 +00:00
brain
0cf08426b2 Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 20:16:43 +00:00
brain
c330b24501 Added userrec::modebits - fast way of checking if user has +swi rather than an icky strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 13:21:35 +00:00
brain
c2a5839bcb Probably wont compile yet - purge_empty_channels refactor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09 11:24:30 +00:00
brain
1e639377cb Whowas refactor - probably wont compile yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 19:11:50 +00:00
brain
0d6245e271 No need to be inline in the include
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3502 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07 01:21:16 +00:00
brain
4927edc5fb *UNTESTED* speeding up HasPermission by factor of hundreds, avoid using EnumConf and ConfValue outside of rehash *AT ALL*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3430 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02 17:19:49 +00:00
brain
af0f219afc Made host fields more correct 64 in length with 63 copies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3425 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02 13:34:04 +00:00
brain
1c50cc3371 Changed length of password field to 64, giving us a maximum password length of 63 plus null terminator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2960 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-28 23:56:10 +00:00
brain
653638c686 Improved IP handling. Now uses in_addr to store client ip, not char[16]!
Added global and local session limits
All of this needs TESTING.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2934 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-27 15:26:59 +00:00
brain
69dee41a1b Added MakeWildHost to userrec (*!*@dhost)
Added ban stuff to messageflood


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2836 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22 20:32:19 +00:00
brain
1383dba43e Updated copyrights in headers etc using perl inplace edit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15 15:59:11 +00:00
brain
6c725e7a4f Replaced sprintf's with some char* voodoo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2781 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-12 20:25:51 +00:00
brain
7972cc3249 New system for client exits using CullList seems stable, needs testing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2681 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-28 20:22:07 +00:00
brain
4c65d06850 Changed two fields in ConnectClass to strings, moved constructor stuff to init-list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2632 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-22 12:34:57 +00:00
brain
0a31bcd5ae Moved rehashnick and force_nickchange to users.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2478 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-15 14:19:37 +00:00
brain
818ead2412 Tidied up call_handler to use strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2476 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-15 14:12:13 +00:00
brain
8bac88198c Major tidyups are fun for all :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2472 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-15 13:52:06 +00:00
brain
85e2be16c6 Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2469 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-15 13:45:09 +00:00
brain
0c55e6d24b Moved a ton of user related functions from inspircd.cpp to users.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2468 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-15 13:44:17 +00:00
brain
8c00f38e5b Made MAXCHANS growable for opers/ulines (growing of list not implemented yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2367 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-13 16:11:08 +00:00
brain
001e00ba23 Made threading optional
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2108 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-02 09:41:39 +00:00
brain
d56e60139a Multithreaded DNS -- not tested!!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2088 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-01 23:59:40 +00:00
brain
6cd3c99ca1 Added references to connection.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1945 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-25 12:33:25 +00:00