brain
4004921797
Fix for bug #604 reported by Phoenix, thanks
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10612 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-30 09:10:43 +00:00
special
fee65af28e
Replace the IP (in addition to hostname) for CGIIRC clients; fixes glines 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-29 08:13:49 +00:00
brain
d8e63234c4
warning-free on windows
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10592 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-22 11:28:44 +00:00
brain
d29a4aea91
Second part of fix for bug #605 , make adding and removal of lines not case sensitive
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10590 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-22 01:16:15 +00:00
w00t
ad35241743
Be consistent. Use ServerInstance in all places instead of 'Instance' in half. This has bugged me forever :p. I think I got all of extra/ too..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10579 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21 12:56:03 +00:00
psychon
073eb3d17f
Fix some comment which was left over from before the conversion from User* to UID
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10574 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21 09:07:56 +00:00
brain
636a52312b
Fix a rather nasty race condition revealed by my reading through the comments and enhancing them. Back when i did executeable includes, i placed a 'todo' in the code which said something along the lines of:
...
'we cant pass a User* into the config reader any more, because when the config reader thread finishes, that user may be gone and this will crash. Consider using an UID instead so that if the user vanishes, we can
detect this situation.' Of course, nobody ever did this, so i'm doing it now to ensure we dont come up against some particularly ugly race condition crashes!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10569 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20 21:46:56 +00:00
brain
552885befe
More comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10568 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20 21:20:15 +00:00
brain
703ca18c66
More comments, and remove some unused craq. Someone (that being me) once wrote a craqy imitation of std::bitset called dynamicbitmask which took up a large amount of hashcomp.{h,cpp} before i actually knew that std::bitset existed. NOTHING has ever used this class, so whack it as tidyup, knowing it wont
...
break anything :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10567 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20 21:14:25 +00:00
brain
f67620f774
more comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10566 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20 20:53:04 +00:00
brain
d7552b854d
Start documenting stuff for 3rd party developers. Comments only, won't affect feature freeze
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10565 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-20 20:40:29 +00:00
aquanight
09197a4a21
Changed Allowed Modes to bitsets.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10541 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-13 15:47:01 +00:00
w00t
89d956ff8b
Remove unneeded namespace stuff.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10535 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-13 13:16:22 +00:00
w00t
798983e251
Minor style tidyup.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10533 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-12 20:56:49 +00:00
w00t
425fe205d0
Cleanup of some internals. Tested via m_httpd.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10527 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-12 12:08:25 +00:00
w00t
138f71ed13
Remove some duplication, everything calls the SE equivilant anyway.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10525 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 23:45:14 +00:00
w00t
b7b0f54047
Remove useless parameter.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10524 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 23:45:09 +00:00
w00t
6c9c925811
Fix a comment.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10523 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 23:45:06 +00:00
w00t
4fa8511c80
Experimental WSAPoll (thanks for not just using poll(), guys) support for Windows. Untested, uncompiled.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10516 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 13:17:51 +00:00
w00t
9183ebd28c
There is absolutely no need to cache connect timeout.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10512 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 00:15:42 +00:00
w00t
7a7fb7167c
Remove an unused member.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10511 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 00:15:39 +00:00
w00t
bd6158e7b0
Remove WaitingForWriteEvent, it seems to do *nothing* except confuse things. Also, don't close socket on http if FlushWriteBuf doesn't write it all in one go, in fact, don't try FlushWriteBuf at all - use the sockets default of waiting to be told it's safe to write data.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10509 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11 00:15:28 +00:00
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