3292 Commits

Author SHA1 Message Date
brain
7074dc3b27 Port to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4229 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 16:16:01 +00:00
brain
2958a8d0c8 Fix for new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4228 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 16:08:17 +00:00
brain
4eb1796dbd Convert to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4227 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 15:55:26 +00:00
brain
800c7ddd73 Port to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4226 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 15:39:50 +00:00
brain
8d3cfd9c6b Port to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4225 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 15:32:37 +00:00
brain
9d8022a065 Port to new API (last mode that has akward parameters done, yay!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4224 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 15:14:14 +00:00
brain
8be30d2589 Port to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4223 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 15:00:24 +00:00
brain
1e25e3d54a Fixed for new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4222 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:53:49 +00:00
brain
7b4b3f5d11 Fixed for new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4221 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:44:51 +00:00
brain
5bfd172ec5 Fix to compile (we had never got this far to find out if it did)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4220 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:28:06 +00:00
brain
b720c60d2e Fix for new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4219 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:27:40 +00:00
brain
5cf80cf42c Fixed m_globops for new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4218 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:20:22 +00:00
brain
9dd72b7003 Gah, im forgetting to SetMode!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4217 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:08:29 +00:00
brain
7aaae3c842 Fixed sslmodes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4216 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:04:07 +00:00
om
2326b99e36 Updates to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4215 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 14:00:08 +00:00
brain
f9900a3e43 Stripcolor completed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4214 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:51:33 +00:00
brain
6dfc984709 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
2006-07-09 13:41:29 +00:00
brain
0b5f8887db 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
2006-07-09 13:28:41 +00:00
om
71bf5b1528 Make it compile... >_<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4211 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:22:56 +00:00
om
2a8b31f797 Move to stack-allocated OnRehash()-local ConfigReader *duck*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4210 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:21:58 +00:00
brain
19d57d3a32 More copy/paste fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4209 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:16:53 +00:00
brain
df624daa3f Give modeclasses access to Server* Srv via constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4208 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:16:02 +00:00
brain
197b8f7fbe More typo fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4207 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:15:12 +00:00
brain
53e9170d39 More tweaks (remove OnExtendedMode)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4206 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:13:29 +00:00
brain
dcbf619693 Started on this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4205 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 13:10:50 +00:00
brain
fa3491a7f3 Fixed to have DELETE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4204 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 12:40:01 +00:00
om
c47776703e DELETE()'s in destructors *fwap*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4203 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 12:09:52 +00:00
om
1c7deaf6fe Add a missing cf->DoImplements(List); >_<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4202 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09 11:59:33 +00:00
om
a09109f612 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
2006-07-09 11:59:07 +00:00
om
ceebdc9437 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
2006-07-09 11:07:21 +00:00
om
e997de794f 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
2006-07-09 10:44:39 +00:00
brain
69d55d5737 Fixed pointless dereference spotted by Foamy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4198 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 23:03:32 +00:00
brain
0532c5ff42 Tidied up m_testcommand (removed a mode handler)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4197 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 21:59:07 +00:00
brain
53ebf157c5 Convert m_censor to new api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4196 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 21:52:56 +00:00
brain
db07867e94 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
2006-07-08 21:42:30 +00:00
brain
f6fc729c72 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
2006-07-08 21:37:16 +00:00
brain
07e2a596f0 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
2006-07-08 21:24:33 +00:00
brain
33f3e5fc8e Fix typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4192 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 21:14:55 +00:00
brain
5e5162341d 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
2006-07-08 21:12:22 +00:00
brain
f74b9b3deb Convert to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4190 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 21:02:53 +00:00
brain
793d2364d9 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
2006-07-08 20:57:24 +00:00
brain
f88beda4d4 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
2006-07-08 20:14:57 +00:00
special
8ba0d3ae40 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
2006-07-08 20:12:09 +00:00
brain
4fa01bc07b 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
2006-07-08 19:46:55 +00:00
brain
bb319272f8 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
2006-07-08 18:40:02 +00:00
brain
9fb4cb8d33 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
2006-07-08 18:37:01 +00:00
brain
918de57ce1 Forgot return;s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4182 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 18:26:01 +00:00
brain
5bbea4813d 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
2006-07-08 18:22:34 +00:00
brain
81ab39d081 Fix typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4180 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 18:09:52 +00:00
brain
1beedda497 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
2006-07-08 18:07:26 +00:00