1677 Commits

Author SHA1 Message Date
special
901babedd3 Clear out the string used for the temporarily stored hostname during DNS resolution. Should save at least strlen(host) per user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10496 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10 17:48:18 +00:00
special
3b9d311e5c Fixed comments for cached host fields in User; 3/4 of these were completely incorrect.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10494 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-10 17:21:19 +00:00
w00t
531fb6fed2 Remove a totally redundant method (this is already available via inheritance from EventHandler)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10490 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09 14:27:04 +00:00
w00t
36b68893df Remove crappy, unsafe (and now unneeded!) casts.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10476 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08 20:59:16 +00:00
w00t
d48f72b989 Remove listening from BufferedSocket, it's bloaty and horrid. We have a ListenSocketBase class to handle this instead now. :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10470 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08 19:23:17 +00:00
w00t
74f401f199 Make OnAcceptReady pure virtual, rename ListenSocket to ListenSocketBase, create ClientListenSocket and inherit from ListenSocketBase to create User objects.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10469 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08 16:58:41 +00:00
w00t
0e07fc2e9e Add incoming IP to OnAcceptReady
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10467 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08 10:43:00 +00:00
w00t
77b7c43004 Tidy up some of the internals a bit, making things a bit more extensible and future proof.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10462 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 23:08:32 +00:00
w00t
631029ff1f Merge class connection in with class user (nothing else inherits it anyway, and all the fields in here were only really useful to users anyway)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10460 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 22:23:03 +00:00
w00t
78c14ffcc5 Merge the second interface for socket hooking into one, so it's all done by Add/Del/GetIOHook now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10457 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 20:07:50 +00:00
w00t
efee3a4d4e Initialising the member we added might be an idea.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10456 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 19:50:00 +00:00
w00t
3092a8ed89 Fix forward-declaration caused as a result of recent changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10448 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 18:31:23 +00:00
w00t
61fed23a3e Start moving IO hooking from being bufferedsocket based to residing in EventHandler, this will pave the way for a generic listener type, and also simplifies a lot of code.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10447 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-07 18:31:21 +00:00
brain
04416cb33d Grr at windows exports
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10424 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:55:47 +00:00
brain
5e4b7f9c2c fixes so m_sqloper builds on win
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10421 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 21:27:15 +00:00
brain
43240de39d Make ThreadEngine::Mutex() protected too, make the user use Lock() and Unlock()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10418 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 14:41:44 +00:00
brain
3b83811fa9 Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10414 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:32:13 +00:00
brain
cc07a20aa2 Nope w00t it wasnt the last :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10413 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:30:45 +00:00
brain
0efd330721 Properly handle CIDR etc for user pointer extbans
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10412 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:29:24 +00:00
brain
7410e81e80 Make sure user is null when a literal is passed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10411 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:25:58 +00:00
brain
4fa581ea12 Optional use of user object
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10410 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:21:35 +00:00
brain
5cd6c1a4f0 Whoops left something out
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10409 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:08:23 +00:00
brain
e853ec6473 Newer extban-supporting listmode api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10407 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 13:04:26 +00:00
brain
da011c2348 Stick Enable() in private, enhance comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10406 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 12:29:19 +00:00
brain
0d6df83565 New methods in mutex purely for readability:
void Lock() { Enable(true); }
        void Unlock() { Enable(false); }


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10403 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06 11:37:25 +00:00
brain
bc770c5388 MutexEngine -> MutexFactory, more sensible name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10385 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 11:03:58 +00:00
brain
7c42793a1e Fix silly compile errors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10383 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:28:21 +00:00
brain
edd35ae3af ability to create mutexes (rather than just having one system wide mutex) in the threadengines, allows for migration of m_mysql etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10381 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-04 10:06:59 +00:00
brain
fff3e17a59 Whoops, left off a virtual. Please ensure youre using this version if you actually want mode params to be propogated
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10366 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31 14:02:56 +00:00
brain
db7a49b071 Move all the parameters around AGAIN. See docs shortly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31 13:00:12 +00:00
w00t
29237b699f Save 4 bytes (assuming sizeof(ptr) == 2) per user record, storing unneeded pointers (self managed class) that nothing was ever done with.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10359 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31 01:05:00 +00:00
w00t
0a3159121e Rename lowermap to rfc_case_insensitive_map, add case_sensitive_map.. adjust files to not pass lowermap directly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10337 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-28 19:45:21 +00:00
w00t
dfba08638c Add <disabled:fakenonexistant> - ircd will pretend that a disabled command just doesn't exist (for austnet), document <disabled:usermodes> and <disabled:chanmodes> (bad aquanight.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10327 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-27 20:19:26 +00:00
w00t
8de87c2a9b Change module versions to use a string instead of fixed digits, and use propset ID to auto-set versions, so we don't have (essentially unused) module versions.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 20:35:51 +00:00
w00t
fc7576e098 Add opt_time to WHO (will be /who +t flag) and clean the fuck up CommandWho::whomatch, which was as ugly as sin.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10274 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 15:03:44 +00:00
w00t
425c584feb Numerous changes to make this build..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10268 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 11:38:00 +00:00
w00t
ee1672d303 This include doesn't exist in 1.2
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10266 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 10:45:30 +00:00
w00t
549ac33242 Forward-port poll socket engine as it seems reasonably stable, and half-hack it into configure. If someone could help me (easily) add it via our wonderful configure macros so it's built, that would be swell.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10264 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 01:00:17 +00:00
brain
50fb079808 Properly name the windows service error constants and put proper descriptions in the error strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10251 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24 23:02:03 +00:00
brain
5a3ee26c55 Forgot to remove a ,
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10250 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24 22:39:23 +00:00
brain
3229dee5bb No names for the service specific errors, probably wont ever name them as theyre never shown in linux
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10245 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24 21:05:15 +00:00
brain
7eb54577bb Move
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10239 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24 19:08:54 +00:00
brain
a6cf47a2cd work in progress
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10238 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24 19:08:36 +00:00
w00t
cb6917c48e Add OnSendSnotice(char &, std::string &, const std::string &) to modify/block/notify about snotices being sent to users.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10221 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 18:01:15 +00:00
w00t
a1a7b96a8c Match conversion stuff.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10216 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 16:14:36 +00:00
w00t
58f4306bb6 Revert automated conversion by Special, as it (unfortunately) neglects some details. It provides a useful start point, though, so it'll be used as the basis for the final conversion.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10215 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 15:16:46 +00:00
special
517a26252a Fix a lot of calls to match() and uses of wildcard.h (which doesn't exist anymore) after w00t broke them. Still broken pending a few more changes (it's all w00t's fault.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10214 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 10:09:36 +00:00
w00t
c16cda5d71 match() is no longer a function+no header, now a static method of InspIRCd class, blah blah blah. Also rip out the 1.2 matcher, as it was slow, and replace it with one adapted from znc, which happens to be a tiny bit faster than 1.1's (and the fastest I've seen so far that works properly)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10212 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-21 20:56:16 +00:00
brain
2c5db1dfcb add support for windows service. This now is part of inspircd itself being as we have native build. It doesnt quite work yet in all the ways it should.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10193 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-21 11:01:51 +00:00
brain
985c2bd1e6 Add OnParameterMissing to modehandler, called when the mode handler should have a parameter, but the parser found none
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10149 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-17 16:16:49 +00:00