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
brain
fc9e00f492
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
2006-07-08 18:03:30 +00:00
brain
1d3147a96e
Change channelmodes -> usermodes (typo)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4177 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 17:53:37 +00:00
brain
3f389a4bd9
Convert new +isw modes to new mode format
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4176 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 17:53:03 +00:00
brain
33ed72a1df
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
2006-07-08 17:44:16 +00:00
brain
d40e1e5b0b
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
2006-07-08 17:04:18 +00:00
brain
7bb5bcf772
Remove comemnted-out GiveVoice and TakeVoice
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4173 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 16:47:05 +00:00
brain
56917208cd
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
2006-07-08 16:46:05 +00:00
brain
4ca8c0649a
Remove the TakeHops and GiveHops from comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4171 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 16:21:13 +00:00
brain
2d4621658d
Add support for cmode +h
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4170 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 16:10:34 +00:00
brain
31404e424f
Tidyup, and add numeric 472 "unknown mode char"
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4169 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 15:25:04 +00:00
brain
2b2677dec5
Fix for permissions :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4168 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 15:17:42 +00:00
brain
d2cc26fb37
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
2006-07-08 15:14:11 +00:00
brain
5c45abc3fb
Integrate +o into handlers
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4166 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 15:08:28 +00:00
brain
2f32d64790
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
2006-07-08 15:05:33 +00:00
brain
ed351d92cf
Convert the output limit back to the parameter
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4164 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 14:24:12 +00:00
brain
4260fd6227
Add channelmode +l
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4163 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 14:20:25 +00:00
brain
abe417a809
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
2006-07-08 14:03:05 +00:00
brain
fd411d067c
ModeHandler documented
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4161 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 01:22:46 +00:00
brain
f13902ea0e
Comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4160 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08 00:41:01 +00:00
brain
40320969da
Add support for channelmode +i
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4159 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07 22:55:47 +00:00
brain
65d52bb763
Add cmode_n and cmode_t
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4158 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07 22:50:03 +00:00
brain
6a225f749e
Typoed a const
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4157 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07 22:47:32 +00:00
brain
7f4ee2f9f2
Add channel modes +n and +t
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4156 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07 22:46:35 +00:00