]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
brain [Sat, 8 Jul 2006 21:37:16 +0000 (21:37 +0000)]
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
brain [Sat, 8 Jul 2006 21:24:33 +0000 (21:24 +0000)]
Convert to new API and optimize colour checking (we were using 0 ... string::length() when we could use std::string::iterator)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4193
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 21:14:55 +0000 (21:14 +0000)]
Fix typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4192
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 21:12:22 +0000 (21:12 +0000)]
Port m_blockcaps to new api, remove OnExtendedMode and OnDisplayList events entirely
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4191
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 21:02:53 +0000 (21:02 +0000)]
Convert to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4190
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 20:57:24 +0000 (20:57 +0000)]
Convert u_listmode and m_banexception to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4189
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 20:14:57 +0000 (20:14 +0000)]
Remove Server::AddExtendedMode and Server::AddExtendedListMode, replace with Server::AddMode (makes more sense naming wise too as all modes are modes, all the same now)
NOTE: Modules that implement modes WILL NO LONGER COMPILE NOW UNTIL THEY ARE PORTED TO THE NEW API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4188
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Sat, 8 Jul 2006 20:12:09 +0000 (20:12 +0000)]
Forward port of fix for Add*Line to apply automatically
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4187
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 19:46:55 +0000 (19:46 +0000)]
Implement DisplayList virtual method calls, and implement it in cmode_b
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4185
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:40:02 +0000 (18:40 +0000)]
Add code to remove an opers opertype when they oper down
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4184
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:37:01 +0000 (18:37 +0000)]
Add usermode +o, with special checking so that an oper may only remove the mode not set it (on himself or others) -
Finish off facility for oper-only user and channel modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4183
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:26:01 +0000 (18:26 +0000)]
Forgot return;s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4182
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:22:34 +0000 (18:22 +0000)]
Added DisplayCurrentModes which will display the modes of a channel or nick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4181
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:09:52 +0000 (18:09 +0000)]
Fix typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4180
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:07:26 +0000 (18:07 +0000)]
Add code to display umode changes when they occur
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4179
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 18:03:30 +0000 (18:03 +0000)]
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
brain [Sat, 8 Jul 2006 17:53:37 +0000 (17:53 +0000)]
Change channelmodes -> usermodes (typo)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4177
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 17:53:03 +0000 (17:53 +0000)]
Convert new +isw modes to new mode format
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4176
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 17:44:16 +0000 (17:44 +0000)]
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
brain [Sat, 8 Jul 2006 17:04:18 +0000 (17:04 +0000)]
Added usermodes +swi.
Note the usermode system needs a bit of a refactor to combine
module and core modes into the same storage neatly (as we did
with channels) this is next on my todo.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4174
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 16:47:05 +0000 (16:47 +0000)]
Remove comemnted-out GiveVoice and TakeVoice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4173
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 16:46:05 +0000 (16:46 +0000)]
Add cmode +v - that's all the RFC channel modes done now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4172
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 16:21:13 +0000 (16:21 +0000)]
Remove the TakeHops and GiveHops from comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4171
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 16:10:34 +0000 (16:10 +0000)]
Add support for cmode +h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4170
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 15:25:04 +0000 (15:25 +0000)]
Tidyup, and add numeric 472 "unknown mode char"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4169
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 15:17:42 +0000 (15:17 +0000)]
Fix for permissions :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4168
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 15:14:11 +0000 (15:14 +0000)]
Put back security checks so non-ops cant set modes again :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4167
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 15:08:28 +0000 (15:08 +0000)]
Integrate +o into handlers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4166
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 15:05:33 +0000 (15:05 +0000)]
Add cmode +o (op/deop) and in the process change a lot of char* to const char* to avoid unneccessary casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4165
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 14:24:12 +0000 (14:24 +0000)]
Convert the output limit back to the parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4164
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 14:20:25 +0000 (14:20 +0000)]
Add channelmode +l
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4163
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 14:03:05 +0000 (14:03 +0000)]
Add chmode +k, cut down includes in use in mode.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4162
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 01:22:46 +0000 (01:22 +0000)]
ModeHandler documented
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4161
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 8 Jul 2006 00:41:01 +0000 (00:41 +0000)]
Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4160
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:55:47 +0000 (22:55 +0000)]
Add support for channelmode +i
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4159
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:50:03 +0000 (22:50 +0000)]
Add cmode_n and cmode_t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4158
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:47:32 +0000 (22:47 +0000)]
Typoed a const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4157
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:46:35 +0000 (22:46 +0000)]
Add channel modes +n and +t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4156
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:35:02 +0000 (22:35 +0000)]
Save ourselves 3 dereferences
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4155
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 22:02:24 +0000 (22:02 +0000)]
Clean 'removed' bans too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4154
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:53:22 +0000 (21:53 +0000)]
Tidier than a trinary op
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4153
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:51:33 +0000 (21:51 +0000)]
Move BanItem into the class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4152
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:40:37 +0000 (21:40 +0000)]
Remove the transposition of @ and ! stuff, doesnt work right and not a good enough idea to be worth fixing
Fix mode parser so that if a handler nukes its parameter to an empty string, but its said it MUST have a parameter
(e.g. +b or +L) then thats equivalent to MODEACTION_DENY as we cant do anything without the param. The whole mode
and its parameter get 'eaten' and the next character is moved to instead.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4151
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:34:46 +0000 (21:34 +0000)]
Avoid throwing a std::out_of_range exception when given a ban without ! or @ in it (whooops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4150
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:25:47 +0000 (21:25 +0000)]
toomanyexclamation and toomanyat are no longer required here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4149
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:25:11 +0000 (21:25 +0000)]
Fix to check for colon (accidentally typed pos_of_dot)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4148
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:24:44 +0000 (21:24 +0000)]
Mask cleaning.
nick -> nick!*@*
nick!ident -> nick!ident@*
host.name -> *!*@host.name
ident@host.name -> *!ident@host.name
transposed @ and !, swap @ and ! to form proper n!u@h ordering
Hostname determined by containing a dot or a colon
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4147
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:06:25 +0000 (21:06 +0000)]
Make +b use CleanMask()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4146
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 21:03:00 +0000 (21:03 +0000)]
Started work on ModeParser::CleanMask()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4145
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 20:50:25 +0000 (20:50 +0000)]
Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4144
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 20:06:46 +0000 (20:06 +0000)]
A bit more debugging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4143
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 20:04:55 +0000 (20:04 +0000)]
'Activate' +m by putting it in the constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4142
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 20:03:17 +0000 (20:03 +0000)]
Added cmode_m (channel mode +m)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4141
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 19:21:52 +0000 (19:21 +0000)]
Fix syntax example
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4140
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 19:03:18 +0000 (19:03 +0000)]
GCC defines and <hash_map> -> "hash_map.h"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4138
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 18:47:24 +0000 (18:47 +0000)]
Tidy up space indents so Om and w00t dont murder me
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4137
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 18:06:01 +0000 (18:06 +0000)]
Fix listmodes and modes with params
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4136
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 18:00:12 +0000 (18:00 +0000)]
Add mode +b to active list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4135
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 17:58:24 +0000 (17:58 +0000)]
fix channel mode +b
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4134
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 17:37:20 +0000 (17:37 +0000)]
Mode +b stuff, probably wont work yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4133
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:40:11 +0000 (15:40 +0000)]
Tidied up checking in ModeParser::AddMode() and added a humorous comment about modes like '^' and '_'.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4132
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:35:36 +0000 (15:35 +0000)]
Add cmode_p (private)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4131
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:33:48 +0000 (15:33 +0000)]
Initialize mode handlers and watchers to 0 in the constructor, or mucho pain can ensue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4130
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:29:42 +0000 (15:29 +0000)]
Aaaand, correct all the obligitary typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:27:05 +0000 (15:27 +0000)]
Added masking stuff.
Basically, so that we can hold user modes and channel modes in the same list, we use bitwise masking.
We have a list of handlers, 256 in size 0 through 255, and to work out where a mode handler is dependent
on WHAT it is, we use this simple hashing algorithm (no collisions can occur):
(modeletter - 65) | mask
Where mask is 128 (
10000000b ) if its a user mode, or 0 (
00000000b , duh) if its a channel mode.
Smart, and much faster than using a map of pairs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4128
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:24:46 +0000 (15:24 +0000)]
Added hashing stuff to hold both user and channel modes in the watcher/handler list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4127
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 15:04:36 +0000 (15:04 +0000)]
Mode parser WORKS! (for simple non-parameterized channel modes)
Tested with channel mode +s.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4126
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 14:35:33 +0000 (14:35 +0000)]
Dummy framework to insert the class for channelmode +s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4125
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 14:31:05 +0000 (14:31 +0000)]
Header for cmode_s.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4124
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 14:22:55 +0000 (14:22 +0000)]
Added cmode_s, skeleton mode handler for channel mode +s.
The naming convention for this dir is as follows: cmode_* -> channel modes
umode_* -> user modes.
Case sensitive mode letters on the end of the name such as cmode_s etc. Note,
this dir can only hold the core RFC modes, so we won't get name collisions e.g.
S and s.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4123
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 7 Jul 2006 13:36:11 +0000 (13:36 +0000)]
More stuff for m_pgsql in, provider-side API stuff semi-done
Add m_sqlv2 header for the new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4122
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 7 Jul 2006 13:34:10 +0000 (13:34 +0000)]
change std::string's to const std::string references for *Feature() funcs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4121
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 7 Jul 2006 00:18:14 +0000 (00:18 +0000)]
Added InspSocket::WantWrite(), InspSocket::OnWriteReady() and private data methods to make it work.
See the XXX'ed section for a bit of minor craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4120
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Fri, 7 Jul 2006 00:16:28 +0000 (00:16 +0000)]
modules.*: Put some void* back to char*, sorry if they were only like that because of me... :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4119
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Tue, 4 Jul 2006 10:38:47 +0000 (10:38 +0000)]
Add pippijn under code contributors for m_connflood
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4115
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 3 Jul 2006 20:39:12 +0000 (20:39 +0000)]
Added docs for conflood
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4114
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 16:39:09 +0000 (16:39 +0000)]
Change InspSocket's private members to only be protected, I couldn't find any other way to do this before we get around to rewriting the socket engine.
Commit very first, very alpha, not-very functional version of the PostgreSQL module. It compiles..and that's..err..about it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4112
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 3 Jul 2006 16:02:44 +0000 (16:02 +0000)]
Someone made silence require 1 parameter, so no way to list the silence entries :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4111
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Mon, 3 Jul 2006 15:34:06 +0000 (15:34 +0000)]
Add m_connflood, pippijn's connect throttle module (now we are offering another paid unreal feature for nothing :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4109
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 12:56:31 +0000 (12:56 +0000)]
Cleanups, change ugly if(\!*line.c_str()) to if(line.empty()); remove some craq..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4107
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 12:43:02 +0000 (12:43 +0000)]
Just to be really anal, typo fix in comment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4106
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 12:39:36 +0000 (12:39 +0000)]
Typo fixes to all the others too =/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4104
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 12:30:22 +0000 (12:30 +0000)]
Make spanningtree compile again >_<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4103
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Mon, 3 Jul 2006 12:28:38 +0000 (12:28 +0000)]
Typo fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4102
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sun, 2 Jul 2006 14:52:31 +0000 (14:52 +0000)]
Enhance with new numerics for latest turkish moron detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4100
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 1 Jul 2006 15:07:09 +0000 (15:07 +0000)]
relocate the Move* methods to private: where they belong, rename erase_factory and erase_module to be more appropriate EraseFactory and EraseModule methods
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4098
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 1 Jul 2006 15:01:32 +0000 (15:01 +0000)]
Make WritePID a public function of class InspIRCd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4097
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Sat, 1 Jul 2006 14:56:33 +0000 (14:56 +0000)]
Move SetSignals(), Start() and DaemonSeed() into private methods of class InspIRCd, move MakeLowerMap() into private: section
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4096
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 1 Jul 2006 14:40:53 +0000 (14:40 +0000)]
Change WriteChannelWithServ and it's _NoFormat to take a const char* servername rather than char* - although it doesn't seem to be used :<
Lose some more casts in m_spanningtree, unneeded because of above changes
Make xline_set_creation_time() take const char* rather than char* for it's first parameter, lose more casts in spanningtree because of this
Make do_whois take a const char* rather chan char* nick, lose yet more casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4095
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Sat, 1 Jul 2006 11:42:09 +0000 (11:42 +0000)]
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
w00t [Sat, 1 Jul 2006 10:28:42 +0000 (10:28 +0000)]
forward port of r4092
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4093
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 30 Jun 2006 18:20:27 +0000 (18:20 +0000)]
Tweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4091
e03df62e -2008-0410-955e-
edbf42e46eb7
brain [Fri, 30 Jun 2006 17:54:48 +0000 (17:54 +0000)]
*** Interesting fix ***
When a remote kill occurs, the user record for the remotely killed user may still hang around in the servers user list which is used when removing users during a netsplit.
I managed to duplicate the old 'crash on netsplit' bug by sending a remote kill to a server, and then squitting that server without receipt of the corresponding QUIT.
The fix now removes the user record explicitly upon remote kill (this also includes collisions)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4088
e03df62e -2008-0410-955e-
edbf42e46eb7
special [Thu, 29 Jun 2006 15:35:42 +0000 (15:35 +0000)]
Forward port of CullList and my bragging rights
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4087
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 15:01:28 +0000 (15:01 +0000)]
And add the include to make all the modules compile...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4085
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 14:23:35 +0000 (14:23 +0000)]
This already adds the file and line number itself, call do_log() rather than log() then
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4084
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 09:33:44 +0000 (09:33 +0000)]
You don't need to cast a char* to a char* to put it through a const char*...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4083
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 09:29:14 +0000 (09:29 +0000)]
Remove hardcoded filename prefix to log message, with the new macro these are un-needed.
Remove un-needed cast, ffs guys, templates stop you needing to cast the stuff inside them... So why do you do it anyway? :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4082
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 08:30:25 +0000 (08:30 +0000)]
Change log() to a #define, the real symbol is now do_log(), the new macro auto-prefixes all log messages with the file and line number where log() was called - should be nice for debugging and telling wtf is coming from what.Currently uses a (probably very standard) g++ extension to make the macro work. Shouldn't be an issue.
You must make clean and rebuild all of insp.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4081
e03df62e -2008-0410-955e-
edbf42e46eb7
om [Thu, 29 Jun 2006 07:00:25 +0000 (07:00 +0000)]
Convert char* to const char* in InspSocket constructor prototype. Shouldn't break anything but ought to help lose some ugleh casts... >:)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4080
e03df62e -2008-0410-955e-
edbf42e46eb7