w00t
6a63702d27
Just use string literal instead of declaring a var for it
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9277 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 22:17:40 +00:00
brain
7dadb07a19
Fix peavey and w00ts bug they found by removing the nonblocking part of the logger. This stuff was hackish and isnt required. If your hard disk locks up, then you have bigger worries.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9276 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 19:52:33 +00:00
brain
0ba0beb0c4
Depreciated ServerInstance->Log() seems to crash configreader on rehash? We should remove the depreciated calls anyway, so im not too concerned as to why they crash - probably not threadsafe.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9275 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 19:17:34 +00:00
brain
9543f33d3c
Move this message so it actually displays when we're running non-debug: "InspIRCd is now running as 'test.chatspike.net'[037] with 5576 max open sockets"
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9274 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:50:13 +00:00
brain
52671661f8
DOH! Fix my muppetry of a segfault, and fix some warnings
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9273 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:45:54 +00:00
brain
82ce093f1a
Fix yet another warning.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9271 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:16:14 +00:00
brain
d356b84dc9
Fix another warning
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9270 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:11:44 +00:00
brain
1290b11508
make sure we include the right headers and fix a warning in cmode_b
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9269 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 18:05:25 +00:00
brain
46242bf71b
Proper sysctl stuff to work with bsd. It seems that the uname value 4 is linux specific and they dont even have a const for it there!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9268 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:55:29 +00:00
brain
5a33229824
Fix stats, this has never actually displayed the per-class max in stats I, now it does
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9267 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:40:36 +00:00
brain
29eea851b2
Squish a warning
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9266 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:34:27 +00:00
brain
e66e07d53e
Remove MAXCLIENTS, this is supported at runtime by the softlimit anyway.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9265 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:32:45 +00:00
brain
4e078ed34b
Remove all compile-time max client and max fd's configuration. This is no longer required by InspIRCd as it is fully supported by auto detection and connect allow lines
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9264 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:27:40 +00:00
brain
2db77cda56
Automatic detection and allocation of max fds. No longer needs recompile to change, just adjust it in your kernel or whatever and restart insp.
...
Please note that select and iocp socket engines do not support detection and are always set to FD_SETSIZE and 10240 descriptors respectively.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9263 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 17:08:09 +00:00
w00t
d9d33e7246
Fix all this crap - it actually works now (we pray..)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9261 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 12:33:01 +00:00
w00t
519d8e5dfe
Better generation. This is still fucked up, but less spectacularly and in a much less obvious way.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9260 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 11:48:54 +00:00
w00t
4f66a9a4c4
Fuck. STOP committing first thing after waking up.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9259 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 09:04:02 +00:00
w00t
28c6e2f970
As part of this... don't give fake client a valid UID, as it's not needed anyway.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9258 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 09:00:57 +00:00
w00t
c05358fa96
Bah
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9256 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 08:55:28 +00:00
w00t
9fcf4c08a1
Unneeded
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9255 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02 08:54:43 +00:00
w00t
4b2dda4d80
Only setup fakeclient once.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9253 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 23:39:44 +00:00
w00t
814eff8532
Initialise a variable correctly to avoid valgrind warning
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9252 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 23:24:22 +00:00
w00t
1850708162
Don't fuck up the map by inserting 0
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9251 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 20:32:28 +00:00
w00t
2812ee8350
Same as 9249
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9250 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 19:54:08 +00:00
w00t
86c2b7abf7
Remove call to FlushWriteBuffer from BufferedSocket::Write(), this means we don't try write() pointlessly when we may very well not (chewing CPU), and instead waits for the socketengine to tell us we can write. Tested, works fine. (nothing used this return value anyway)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9247 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 18:56:31 +00:00
w00t
6953371f71
Remove deprecated BufferedSocket::MarkAsClosed()
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9246 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 18:34:34 +00:00
brain
de35a20ab7
Some metadata commands were using nicknames to identify the nick to apply the metadata to. fix to use uuid. Also make sure that the ssl metadata is sent after the user is done connecting (prioritize that event after spanningtree's)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9245 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 18:14:36 +00:00
brain
29dc6c70d7
Special check in here now that forbids all use of MODE in s2s for changing channel modes, closing a loophole that services devs keep using to bypass implenting proper TS, and breaking our protocol.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9244 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 16:48:52 +00:00
w00t
1fe8085c6d
Remove this, it won't work (reliably), use ModeParser::ModeString() instead, ta B
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9243 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 16:30:49 +00:00
brain
5b4e92cc2c
Add an optional bool to ModeParser::ModeString() to not give the nickname n times on the end of the string. This can be used for w00ts funky stuff. :-)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9242 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 16:25:02 +00:00
w00t
1f9ef40812
Configurable prefixes for chanmodes +qa: prefixes can be turned on or off individually and seperately, per server as well as per mode, and prefixes are no longer limited to ~&. *** SERVICES AUTHORS *** This involves a protocol change. FJOIN now sends the userlist with format modes,nick instead of prefixes,nick.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9241 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 13:53:27 +00:00
w00t
beaaee86df
Add a required prefix of 0, this may fix problem encountered by Raff7.. (purely cosmetic, though, as the internal code for +qa had checks on who could set it aside from prefix-only.. brain, can you review this and tell me if this is correct pls?
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9240 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01 11:13:36 +00:00
peavey
75b1e01d41
fix a few warnings by casting since thats the only way to be sure non native C types matches their format tokens.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9239 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-31 13:09:29 +00:00
special
977ebb080b
Patch by brain; Fix crash when no parameters are given when introducing a remote client and add encap to the windows project
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9237 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-31 08:54:10 +00:00
brain
5017322a4f
Fix two format warnings, dont you DARE tell me size_t varies in size too.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9235 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-31 00:47:13 +00:00
w00t
a0e4983cee
Remove extended silence doc
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9234 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 23:51:19 +00:00
w00t
7fffee4db8
Fix this name
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9233 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 23:50:42 +00:00
w00t
262703207a
Add SVSSILENCE: allows services to modify SILENCE lists of users. todo note in there, don't know if anyone wants to comment..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9232 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 23:13:47 +00:00
w00t
3c8b0ea13b
Move _ext to replace the original, SVSSILENCE comes next
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9231 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 23:04:00 +00:00
w00t
24fa2afa62
Remove m_silence: this is 1.2 only. m_silence_ext is a fully backwards compatible copy of silence, with some additional features that have no impact on usage etc, so it makes no real sense to bloat out the compile like this
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9230 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 23:03:24 +00:00
brain
b3d33859b1
Make sure CAPAB always comes before SERVER on either side of the link at all times
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9229 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 22:42:42 +00:00
w00t
d48726ce80
AWAY notification for WATCH. Numerics are now sent out when a user goes away (or returns from AWAY), as well as in WATCH L (if the user is online and away).
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9227 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 15:33:33 +00:00
w00t
6c31213a38
More docs on data structures
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9226 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:47:29 +00:00
brain
dcc778ed46
Fixy
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9225 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:39:14 +00:00
w00t
3e2ef1c9ff
Change this return type to int from void. WHY didn't this error for me.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9224 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:32:44 +00:00
w00t
e2f4bf3a13
Merge OnCancelAway and OnSetAway, add param awaymsg to OnSetAway (blank when cancelling), and change return type to int so modules can block away messages by returning nonzero.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9223 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:26:01 +00:00
brain
d65f2c3825
Whack format warning, do these differ between gcc versions or something?!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9222 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 14:23:17 +00:00
peavey
07b73575c5
document override in operjoin.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9220 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:51:39 +00:00
peavey
0b1775f8cf
Add override option to operjoin, handy if your operchan has a key or is invite only.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9219 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:48:26 +00:00
peavey
38c8b9290e
whack a couple of format warnings now showing with r9217
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9218 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30 10:19:10 +00:00