]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
18 years agoFixed m_globops for new api
brain [Sun, 9 Jul 2006 14:20:22 +0000 (14:20 +0000)]
Fixed m_globops for new api

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

18 years agoGah, im forgetting to SetMode!
brain [Sun, 9 Jul 2006 14:08:29 +0000 (14:08 +0000)]
Gah, im forgetting to SetMode!

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

18 years agoFixed sslmodes
brain [Sun, 9 Jul 2006 14:04:07 +0000 (14:04 +0000)]
Fixed sslmodes

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

18 years agoUpdates to new API
om [Sun, 9 Jul 2006 14:00:08 +0000 (14:00 +0000)]
Updates to new API

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

18 years agoStripcolor completed
brain [Sun, 9 Jul 2006 13:51:33 +0000 (13:51 +0000)]
Stripcolor completed

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

18 years agoStripcolor not finished yet.
brain [Sun, 9 Jul 2006 13:41:29 +0000 (13:41 +0000)]
Stripcolor not finished yet.
Add security check into censor and botmode (om you will need this in cloaking) which prevents non-opers from changing other users modes

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

18 years agoTweak mode parser so that oper-only modes are only enforced on local clients, so...
brain [Sun, 9 Jul 2006 13:28:41 +0000 (13:28 +0000)]
Tweak mode parser so that oper-only modes are only enforced on local clients, so that during a burst the remote server can set them and we dont get desyncs

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

18 years agoMake it compile... >_<
om [Sun, 9 Jul 2006 13:22:56 +0000 (13:22 +0000)]
Make it compile... >_<

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

18 years agoMove to stack-allocated OnRehash()-local ConfigReader *duck*
om [Sun, 9 Jul 2006 13:21:58 +0000 (13:21 +0000)]
Move to stack-allocated OnRehash()-local ConfigReader *duck*

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

18 years agoMore copy/paste fixes
brain [Sun, 9 Jul 2006 13:16:53 +0000 (13:16 +0000)]
More copy/paste fixes

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

18 years agoGive modeclasses access to Server* Srv via constructor
brain [Sun, 9 Jul 2006 13:16:02 +0000 (13:16 +0000)]
Give modeclasses access to Server* Srv via constructor

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

18 years agoMore typo fixes
brain [Sun, 9 Jul 2006 13:15:12 +0000 (13:15 +0000)]
More typo fixes

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

18 years agoMore tweaks (remove OnExtendedMode)
brain [Sun, 9 Jul 2006 13:13:29 +0000 (13:13 +0000)]
More tweaks (remove OnExtendedMode)

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

18 years agoStarted on this
brain [Sun, 9 Jul 2006 13:10:50 +0000 (13:10 +0000)]
Started on this

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

18 years agoFixed to have DELETE
brain [Sun, 9 Jul 2006 12:40:01 +0000 (12:40 +0000)]
Fixed to have DELETE

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

18 years agoDELETE()'s in destructors *fwap*
om [Sun, 9 Jul 2006 12:09:52 +0000 (12:09 +0000)]
DELETE()'s in destructors *fwap*

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

18 years agoAdd a missing cf->DoImplements(List); >_<
om [Sun, 9 Jul 2006 11:59:33 +0000 (11:59 +0000)]
Add a missing cf->DoImplements(List); >_<

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

18 years agoOkay..updates to u_listmode, general cleanups and add some virtual methods which...
om [Sun, 9 Jul 2006 11:59:07 +0000 (11:59 +0000)]
Okay..updates to u_listmode, general cleanups and add some virtual methods which subclasses can override to alter behaviour..all looking much nicer and more flexible now.
Update m_chanfilter to use u_listmode, demonstrates most or all of the new features of it and looks a hell of a lot prettier :)

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

18 years agoAdd a parameter to set what config tag to parse (defaults to what was previously...
om [Sun, 9 Jul 2006 11:07:21 +0000 (11:07 +0000)]
Add a parameter to set what config tag to parse (defaults to what was previously hardcoded); Some other cleanups using initialisation lists, and using a ConfigParser stack-allocated rather than keeping a persistent heap-allocated one; Remove hardcoded filename prefixes in log messages

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

18 years agoAdd a return MODEACTION_DENY, fixes 'control reaches end of non-void function warning'
om [Sun, 9 Jul 2006 10:44:39 +0000 (10:44 +0000)]
Add a return MODEACTION_DENY, fixes 'control reaches end of non-void function warning'

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

18 years agoFixed pointless dereference spotted by Foamy
brain [Sat, 8 Jul 2006 23:03:32 +0000 (23:03 +0000)]
Fixed pointless dereference spotted by Foamy

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

18 years agoTidied up m_testcommand (removed a mode handler)
brain [Sat, 8 Jul 2006 21:59:07 +0000 (21:59 +0000)]
Tidied up m_testcommand (removed a mode handler)

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

18 years agoConvert m_censor to new api
brain [Sat, 8 Jul 2006 21:52:56 +0000 (21:52 +0000)]
Convert m_censor to new api

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

18 years agoFix all typos (not as fun as 'kill all humans' but meh, beggers cant be choosers)
brain [Sat, 8 Jul 2006 21:42:30 +0000 (21:42 +0000)]
Fix all typos (not as fun as 'kill all humans' but meh, beggers cant be choosers)

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

18 years agoDid some renaming so that the methods for modes in chanrec and userrec are identical.
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

18 years agoConvert to new API and optimize colour checking (we were using 0 ... string::length...
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

18 years agoFix typo
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

18 years agoPort m_blockcaps to new api, remove OnExtendedMode and OnDisplayList events entirely
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

18 years agoConvert to new API
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

18 years agoConvert u_listmode and m_banexception to new api
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

18 years agoRemove Server::AddExtendedMode and Server::AddExtendedListMode, replace with Server...
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

18 years agoForward port of fix for Add*Line to apply automatically
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

18 years agoImplement DisplayList virtual method calls, and implement it in cmode_b
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

18 years agoAdd code to remove an opers opertype when they oper down
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

18 years agoAdd usermode +o, with special checking so that an oper may only remove the mode not...
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

18 years agoForgot return;s
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

18 years agoAdded DisplayCurrentModes which will display the modes of a channel or nick
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

18 years agoFix typos
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

18 years agoAdd code to display umode changes when they occur
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

18 years agoAdd userrec::HasMode, fix some typos.
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

18 years agoChange channelmodes -> usermodes (typo)
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

18 years agoConvert new +isw modes to new mode format
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

18 years agoRefactored user modes to work like the channel modes - core and module data now the...
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

18 years agoAdded usermodes +swi.
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

18 years agoRemove comemnted-out GiveVoice and TakeVoice
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

18 years agoAdd cmode +v - that's all the RFC channel modes done now
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

18 years agoRemove the TakeHops and GiveHops from comments
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

18 years agoAdd support for cmode +h
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

18 years agoTidyup, and add numeric 472 "unknown mode char"
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

18 years agoFix for permissions :p
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

18 years agoPut back security checks so non-ops cant set modes again :p
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

18 years agoIntegrate +o into handlers
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

18 years agoAdd cmode +o (op/deop) and in the process change a lot of char* to const char* to...
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

18 years agoConvert the output limit back to the parameter
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

18 years agoAdd channelmode +l
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

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