]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
18 years agoAdd chmode +k, cut down includes in use in mode.cpp
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

18 years agoModeHandler documented
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

18 years agoComments
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

18 years agoAdd support for channelmode +i
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

18 years agoAdd cmode_n and cmode_t
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

18 years agoTypoed a const
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

18 years agoAdd channel modes +n and +t
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

18 years agoSave ourselves 3 dereferences
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

18 years agoClean 'removed' bans too
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

18 years agoTidier than a trinary op
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

18 years agoMove BanItem into the class
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

18 years agoRemove the transposition of @ and ! stuff, doesnt work right and not a good enough...
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

18 years agoAvoid throwing a std::out_of_range exception when given a ban without ! or @ in it...
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

18 years agotoomanyexclamation and toomanyat are no longer required here
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

18 years agoFix to check for colon (accidentally typed pos_of_dot)
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

18 years agoMask cleaning.
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

18 years agoMake +b use CleanMask()
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

18 years agoStarted work on ModeParser::CleanMask()
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

18 years agoComments
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

18 years agoA bit more debugging
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

18 years ago'Activate' +m by putting it in the constructor
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

18 years agoAdded cmode_m (channel mode +m)
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

18 years agoFix syntax example
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

18 years agoGCC defines and <hash_map> -> "hash_map.h"
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

18 years agoTidy up space indents so Om and w00t dont murder me
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

18 years agoFix listmodes and modes with params
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

18 years agoAdd mode +b to active list
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

18 years agofix channel mode +b
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

18 years agoMode +b stuff, probably wont work yet
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

18 years agoTidied up checking in ModeParser::AddMode() and added a humorous comment about modes...
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

18 years agoAdd cmode_p (private)
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

18 years agoInitialize mode handlers and watchers to 0 in the constructor, or mucho pain can...
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

18 years agoAaaand, correct all the obligitary typos
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

18 years agoAdded masking stuff.
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

18 years agoAdded hashing stuff to hold both user and channel modes in the watcher/handler list
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

18 years agoMode parser WORKS! (for simple non-parameterized channel modes)
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

18 years agoDummy framework to insert the class for channelmode +s
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

18 years agoHeader for cmode_s.cpp
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

18 years agoAdded cmode_s, skeleton mode handler for channel mode +s.
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

18 years agoMore stuff for m_pgsql in, provider-side API stuff semi-done
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

18 years agochange std::string's to const std::string references for *Feature() funcs
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

18 years agoAdded InspSocket::WantWrite(), InspSocket::OnWriteReady() and private data methods...
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

18 years agomodules.*: Put some void* back to char*, sorry if they were only like that because...
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

18 years agoAdd pippijn under code contributors for m_connflood
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

18 years agoAdded docs for conflood
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

18 years agoChange InspSocket's private members to only be protected, I couldn't find any other...
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

18 years agoSomeone made silence require 1 parameter, so no way to list the silence entries :p
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

18 years agoAdd m_connflood, pippijn's connect throttle module (now we are offering another paid...
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

18 years agoCleanups, change ugly if(\!*line.c_str()) to if(line.empty()); remove some craq..
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

18 years agoJust to be really anal, typo fix in comment
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

18 years agoTypo fixes to all the others too =/
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

18 years agoMake spanningtree compile again >_<
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

18 years agoTypo fix
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

18 years agoEnhance with new numerics for latest turkish moron detection
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

18 years agorelocate the Move* methods to private: where they belong, rename erase_factory and...
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

18 years agoMake WritePID a public function of class InspIRCd
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

18 years agoMove SetSignals(), Start() and DaemonSeed() into private methods of class InspIRCd...
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

18 years agoChange WriteChannelWithServ and it's _NoFormat to take a const char* servername rathe...
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

18 years agoReplace rather craq'y loop with a couple of std::string calls
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

18 years agoforward port of r4092
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

18 years agoTweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORS
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

18 years ago*** Interesting fix ***
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

18 years agoForward port of CullList and my bragging rights
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

18 years agoAnd add the include to make all the modules compile...
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

18 years agoThis already adds the file and line number itself, call do_log() rather than log...
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

18 years agoYou don't need to cast a char* to a char* to put it through a const char*...
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

18 years agoRemove hardcoded filename prefix to log message, with the new macro these are un...
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

18 years agoChange log() to a #define, the real symbol is now do_log(), the new macro auto-prefix...
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

18 years agoConvert char* to const char* in InspSocket constructor prototype. Shouldn't break...
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

18 years agoAdded missing return in Server::UnpublishFeature()
special [Wed, 28 Jun 2006 15:20:25 +0000 (15:20 +0000)]
Added missing return in Server::UnpublishFeature()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4079 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoAdded SQLQuery::GetError() and removed a lot of space indenting
special [Wed, 28 Jun 2006 15:17:05 +0000 (15:17 +0000)]
Added SQLQuery::GetError() and removed a lot of space indenting

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4078 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoMore stuff for allowing hostnames in <bind> and <link> again - note there is a FIXME...
brain [Wed, 28 Jun 2006 10:59:47 +0000 (10:59 +0000)]
More stuff for allowing hostnames in <bind> and <link> again - note there is a FIXME here.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4076 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoAllow binding to hosts again in <bind> and <link>
brain [Wed, 28 Jun 2006 10:53:02 +0000 (10:53 +0000)]
Allow binding to hosts again in <bind> and <link>

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4074 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoAdd m_services_account
brain [Tue, 27 Jun 2006 23:12:30 +0000 (23:12 +0000)]
Add m_services_account

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4072 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoCommenting
brain [Tue, 27 Jun 2006 20:58:49 +0000 (20:58 +0000)]
Commenting

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4069 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoWe can re-enable special's security fix now - note this is good for boxes with one...
brain [Tue, 27 Jun 2006 17:57:01 +0000 (17:57 +0000)]
We can re-enable special's security fix now - note this is good for boxes with one or more static ip's and still doesnt resolve the issue for smelly dynamic-ip users (well boo hoo :p)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4066 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoAdded auto-binding, picks the first ip in the <bind> tags that isnt localhost or...
brain [Tue, 27 Jun 2006 17:45:59 +0000 (17:45 +0000)]
Added auto-binding, picks the first ip in the <bind> tags that isnt localhost or INADDR_ANY, and auto binds to that IP to allow us to put back the security tweak

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4064 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoTemporarily disable special's security improvement until we have either/or bind=...
brain [Tue, 27 Jun 2006 17:09:41 +0000 (17:09 +0000)]
Temporarily disable special's security improvement until we have either/or bind= and mask=

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4063 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoExtra safety for user lists to not keep bad pointers hanging about
brain [Sun, 25 Jun 2006 00:16:24 +0000 (00:16 +0000)]
Extra safety for user lists to not keep bad pointers hanging about

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4059 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoDont allow /REMOVE of a uline, dont allow /REMOVE of a user who isnt on the channel...
brain [Sat, 24 Jun 2006 18:00:28 +0000 (18:00 +0000)]
Dont allow /REMOVE of a uline, dont allow /REMOVE of a user who isnt on the channel (*slaps* Om)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4057 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoForwardport of safety fixes for Write* functions
brain [Sat, 24 Jun 2006 14:43:36 +0000 (14:43 +0000)]
Forwardport of safety fixes for Write* functions

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4056 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoForward port of samode edits
special [Fri, 23 Jun 2006 14:46:10 +0000 (14:46 +0000)]
Forward port of samode edits

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4054 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoRemove un-needed cast, I have a horrible feeling I'll get stabbed for this. Please...
om [Fri, 23 Jun 2006 14:24:34 +0000 (14:24 +0000)]
Remove un-needed cast, I have a horrible feeling I'll get stabbed for this. Please let me know before you do...

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4052 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agom_services_account - now with 100 percent more elite.
w00t [Fri, 23 Jun 2006 08:40:31 +0000 (08:40 +0000)]
m_services_account - now with 100 percent more elite.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4050 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoI'm famous :>
special [Thu, 22 Jun 2006 13:38:20 +0000 (13:38 +0000)]
I'm famous :>

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4046 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoForward port of server link DDoS/oper flood fix
special [Thu, 22 Jun 2006 13:32:52 +0000 (13:32 +0000)]
Forward port of server link DDoS/oper flood fix

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4045 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoFix for ./inspircd restart not working half the time
special [Thu, 22 Jun 2006 10:26:33 +0000 (10:26 +0000)]
Fix for ./inspircd restart not working half the time

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4042 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoAdded Server::PublishFeature(),
brain [Wed, 21 Jun 2006 12:31:54 +0000 (12:31 +0000)]
Added Server::PublishFeature(),
Server::UnpublishFeature(),
Server::FindFeature().
See comments in modules.h for usage

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4041 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoClass Request and class Event now take a void* in their constructor to save on a...
brain [Tue, 20 Jun 2006 11:26:57 +0000 (11:26 +0000)]
Class Request and class Event now take a void* in their constructor to save on a cast.
Please note that the data type *returned* by GetData() in both cases is still char*, as
C++ will not let you return a void*. This to be addressed by someone else with templates
when they have the time.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4038 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoDon't allow non-ulines to kick ulines from channels - return numeric 482 if this...
brain [Tue, 20 Jun 2006 09:10:55 +0000 (09:10 +0000)]
Don't allow non-ulines to kick ulines from channels - return numeric 482 if this is attempted (you are not a chanop) with different text

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4036 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoForward-port CBAN expiry fix
w00t [Mon, 19 Jun 2006 02:54:05 +0000 (02:54 +0000)]
Forward-port CBAN expiry fix

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4035 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoOn remote kill, send KILL notice. mIRC doesnt seem happy with just the STANDARD messa...
brain [Sat, 17 Jun 2006 13:50:54 +0000 (13:50 +0000)]
On remote kill, send KILL notice. mIRC doesnt seem happy with just the STANDARD message, it wants specially crafted quit notices too, but i say fuck mIRC.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4027 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoBring forward fix for w00t.
brain [Sat, 17 Jun 2006 13:27:13 +0000 (13:27 +0000)]
Bring forward fix for w00t.
Note - umode +r may not be removed from a user when you svsnick them. Svsnick is not designed for this
type of "abuse" anyway and usually svsnick will only be used on someone who has no +r.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4025 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoFinished m_check. I am the best. It only took me 3 months :)
w00t [Sat, 17 Jun 2006 11:24:50 +0000 (11:24 +0000)]
Finished m_check. I am the best. It only took me 3 months :)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4023 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoNow only logs commands from local opers, that are oper commands they have permission...
brain [Fri, 16 Jun 2006 12:12:46 +0000 (12:12 +0000)]
Now only logs commands from local opers, that are oper commands they have permission to execute

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4015 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoFix for m_ssl_openssl dying if the DH params file doesn't exist, compiles but unteste...
om [Fri, 16 Jun 2006 00:57:14 +0000 (00:57 +0000)]
Fix for m_ssl_openssl dying if the DH params file doesn't exist, compiles but untested cause I'm sleepy :(

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4014 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoTweaks
brain [Thu, 15 Jun 2006 18:21:29 +0000 (18:21 +0000)]
Tweaks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4013 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoChange to stdint
brain [Thu, 15 Jun 2006 17:56:15 +0000 (17:56 +0000)]
Change to stdint

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4012 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoHelper script for rpath of mysql
brain [Thu, 15 Jun 2006 13:33:18 +0000 (13:33 +0000)]
Helper script for rpath of mysql

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4008 e03df62e-2008-0410-955e-edbf42e46eb7

18 years agoNow uses mysql_config and mysql_rpath.pl
brain [Thu, 15 Jun 2006 13:32:50 +0000 (13:32 +0000)]
Now uses mysql_config and mysql_rpath.pl

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4007 e03df62e-2008-0410-955e-edbf42e46eb7