w00t
ff8f998b2b
Add penalties for WHO, INVITE, LIST, JOIN, PART.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:51:59 +00:00
brain
710689b2c4
Add penalty to /commands as extra parameter
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8256 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:51:10 +00:00
brain
ed2ca79021
Add the check for user->ExemptFromPenalty
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:33:14 +00:00
brain
2311a4b6f7
Move some stuff around so the last penalty line doesnt get held erroneously until data arrives again
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:30:58 +00:00
brain
773afbfe3b
Set cmd_nick to have a penalty of 3
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8253 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:26:25 +00:00
brain
56787e7dae
Tweak so that commands with larger penalty than 1 work right
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:25:25 +00:00
brain
317c0288c8
Yay, all works!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8251 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:18:43 +00:00
brain
6856c87ae5
*untested* command buffering/penalty
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 14:08:13 +00:00
w00t
fd37f4ba0e
CHange Penalty to be set in constructor, and to default to 1
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8249 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:58:01 +00:00
brain
5471a3d5f7
Dont forget to initialize the new value
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:56:44 +00:00
brain
d345d7c9aa
In class User:
...
/** If this bool is set then penalty rules do not apply to this user
*/
bool ExemptFromPenalty;
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:54:02 +00:00
brain
b80d1be349
Penalty should be 'const int'. Note, you can set a const in the constructors init-list, see line 109
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:52:42 +00:00
w00t
804fee1b54
Add int Penalty to Command. At the moment, nothing uses this, and constructor doesn't set it - I'll fix that up shortly. This is so Brain can use it in his gubbins without the source tree being broken. :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8245 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:50:58 +00:00
brain
3c9686f9f7
Add User::UnderPenalty
...
/** If this bool is set for a user, then the user is under penalty, in short they
* are waiting for some held commands to be executed. If this is the case, then
* any commands they have in their sendq are executed on a timer tick rather than in
* their event handler.
*/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8244 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:44:37 +00:00
brain
efec4e0e08
Change a !string.length to string.empty. these are more readable and on some implementations faster
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8243 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:29:48 +00:00
w00t
e51d2a73ea
Subtract a boobie
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8242 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:23:35 +00:00
w00t
4487dde76f
Remove next_call garbage.. It didn't really do much more than obfuscate things. InspIRCd::DoBackgroundUserStuff() is now called once per second, roughly. This will (of course) not be going into 1.1.x
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8241 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 12:22:39 +00:00
brain
7c5ab78be2
Fix here too
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-20 17:36:47 +00:00
brain
b6e6289e19
Fix small memory leak (this cant theoretically happen anyway unless you remove a network interface while an ident is connecting, and then youll only leak 12 bytes)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8234 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-19 19:23:23 +00:00
brain
06f6f5333a
Tons of comments!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8233 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 19:02:19 +00:00
brain
8b92a8135c
Oops, OnCheckReady being called after registration! This doesnt break the new m_ident, but it goes against spec
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8232 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 18:35:09 +00:00
brain
525e038f8d
Fix here too
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8229 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 18:26:46 +00:00
brain
08e490f706
Yay fixed
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8226 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 18:22:03 +00:00
brain
8b41eadd92
Socket engine tweaks to fix a glitch, and improvements to new m_ident
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8225 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 18:16:47 +00:00
brain
0738c47225
Set IdentRequestSocket::done on failure to getsockname() in OnConnected
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8224 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 17:59:22 +00:00
brain
fdd3804828
This new ident module now seems to work rudimentarily.
...
Should be safe to backport to 1.1, then make look nicer in 1.2, its pretty neat as it stands though.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8223 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 17:55:51 +00:00
brain
bc2a959b4c
No gaurantees this works AT ALL. do not use yet!!!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8222 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-18 17:31:01 +00:00
brain
d4d432f6cd
Remove debug
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8221 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-17 20:29:15 +00:00
brain
4bd22e7be8
UID translator broken with space or comma seperated lists (thanks danieldg)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8220 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-17 20:28:45 +00:00
w00t
db0a845b46
Cache the culllist' GetUser() return. Looks cleaner.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8219 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-16 12:55:47 +00:00
w00t
fec45ead63
Remove second overridden (fully duplicated :/) copy of GetIPString which copies into a user specified buffer. It's not used anywhere, and is duplication ;(
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8218 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-16 10:29:01 +00:00
w00t
0060869dd5
Typo fix
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8217 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-16 10:22:31 +00:00
w00t
d6bcb852f2
Update a comment
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8216 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-16 10:21:11 +00:00
w00t
8830c2848b
Move oper classes and types stuff from users to configreader. It may need to go in a class, I'm not going to investigate that now. Also make HasPermission() a bit easier to read via same changes I did in command_parse, but the strtok/strdup stuff really really has to go somehow I think..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8215 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 22:33:18 +00:00
w00t
f490d22f67
Apply some readability changes to ProcessCommand, which coincidentally may speed it up with some compiler optimisation
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8214 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 22:25:07 +00:00
w00t
0fb5041fc8
Move some other stuff to helperfuncs (uline related, and timestring)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8213 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 22:10:12 +00:00
w00t
2c25d4a344
Fuck. Press save, then commit.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8212 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 22:07:32 +00:00
w00t
8aa4df885e
Move InspIRCd::Duration from command_parse to helperfuncs
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8211 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 22:06:10 +00:00
brain
bc804f5eeb
Update windows project to include user_resolver.cpp
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8210 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:36:15 +00:00
w00t
2116de82e0
Split user resolver into its own file.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8209 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:32:41 +00:00
brain
b543668e4a
Make install the lib, too
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8208 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:30:24 +00:00
brain
1cc2417372
This should be the correct set of tweaks to add user_resolver.cpp.
...
Maybe as my project for later, this should be an automated process.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:25:49 +00:00
w00t
2b68243097
InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ident etc will use.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:04:32 +00:00
w00t
03e0fb206d
InspTimer -> Timer
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8205 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:03:30 +00:00
w00t
b57c7f4e46
In the grand tradition of huge fucking commits:
...
- chanrec -> Channel
- userrec -> User
Enjoy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 20:59:05 +00:00
w00t
694e307c09
class command_t -> class Command. Whey :D
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 20:55:55 +00:00
w00t
802cbffcb7
Bad Brain, bad. *spank* :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8201 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 13:11:41 +00:00
brain
b194ca40b6
Another dodgy count fixed
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8200 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-14 22:33:03 +00:00
brain
8bfb41c3cd
Just to be fucking akward, windows vista seperates multiple nameservers with spaces whilst other versions of windows use commas.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8198 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-14 22:16:59 +00:00
brain
56e1f95a11
Fix the 'total of -1 modules have been loaded' due to new loader
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8197 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-14 22:12:53 +00:00