brain
a718e05343
Fix obvious oversight spotted by Ankit, provide xline reasons when adding them
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10720 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-26 19:09:25 +00:00
peavey
2f717cb4dc
fix for banwalk and keys reported by mix941
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10719 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-26 00:27:04 +00:00
w00t
dcfd227ffb
Fix a number of commands to have max_params field. This means in practice, that colons on gline reasons (etc) are no longer mandatory, provided the command tells the core how many parameters at max it has.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10718 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 16:41:13 +00:00
w00t
5b91ea259b
Explain the duplicate OnPreCommand call.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10717 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 16:41:12 +00:00
w00t
813c898160
By moving OnPreCommand call in two places, modules (even with unverified commands) can still recieve the command with max_params at most if it exists.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10716 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 16:41:11 +00:00
w00t
bde833f182
Add optional max_params for commands, which means that we can compress 'extra' params, while still accepting ':' terminated params, etc.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10715 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 16:41:09 +00:00
aquanight
2d52c375ef
Missed one, w00t :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10714 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 14:05:42 +00:00
w00t
648c95b10b
Fix <disabled:umodes> interfering with /unloadmodule m_implementing_a_umode, aquanight, you didn't look quite far enough into this - the problem was m_cloaking (e.g.) returning MODEACTION_DENY if src != dest, which was very very oooold behaviour. Seems to work fine now.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10713 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 14:02:11 +00:00
w00t
0768943600
Fix another connect class bug on rehash
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10712 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 14:02:10 +00:00
w00t
adf20f6486
Use TargetTypeFlags instead of int in a few places.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10711 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 13:14:23 +00:00
w00t
ffc0396516
As we have an enum for type, why not ..use it?
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10710 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 13:14:22 +00:00
w00t
2b39234be2
Last of documentation for protocol interface. XXX, ProtocolInterface::GetServerList is quite poorly documented.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10709 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:14 +00:00
w00t
4d03a38661
Document SendMode.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10708 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:13 +00:00
w00t
b76777dfb4
Document SendTopic.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10707 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:13 +00:00
w00t
8e735c8f3a
Document SendMetaData.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10706 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:12 +00:00
w00t
2be4fff3e3
Document ENCAP.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10705 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:11 +00:00
w00t
39897f56f5
Note where to find the docs.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10704 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:11 +00:00
w00t
b877769157
Nuke space indents from orbit. (die!!)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10703 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:59:10 +00:00
w00t
adad79af76
Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this makes more sense, and also means we can call OnChangeHost for remote clients too, making it actually match it's documentation for the first time ever!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 12:21:14 +00:00
w00t
30b7a1bf7f
(sort of..) Revert commit 7736e920fe6ccaf9ad1984afc70db19efd4fb8cd - remove dupe checking on connect classes. Now, we just delete ones with refcount 0 on rehash, and add new ones. Connection can only match a non-disabled class, so most of the braindamage should be gone from here, without causing wild pointer fun..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10701 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25 10:17:53 +00:00
w00t
9ac5a288da
Consistancy: Allow opers to +L to a nonexistant channel, as we allow opers to bypass ops restriction.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10700 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-24 15:01:50 +00:00
w00t
7e7cdc4f2f
Remove (redundant and O(n)) error checking on +L, we catch the errors on join nowdays anyway, so this was a throwback to the "old days".
...
Also, add two new restrictions on +L: target channel must exist, and setter *must* be opped on target channel.
Avoids redirect spamming and other nefarious things.
Additionally, reworded numerics a bit to make it more generic, as we may forward for more than just +l in the future.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10699 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-24 14:56:43 +00:00
w00t
3b4c56a69e
Fix a plausible memory leak on rehash, thanks dz.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10698 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-24 11:17:53 +00:00
w00t
9175a3799d
Fix broken stuff.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10697 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-24 09:07:08 +00:00
w00t
0f41486ecf
Add <showwhois:showfromopers> setting, requested by MacGyver. Can be useful if you don't want suspicious people to know you're watching them.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10696 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 21:48:13 +00:00
w00t
1200d6285b
Revert earlier time() -> SI->Time() diff for now, this causes problems with dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..?
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 21:39:00 +00:00
w00t
b928aff22f
Make this un-rehashable due to complications/ugliness involved with keeping it this way (still unusable, please don't use)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 21:38:58 +00:00
w00t
65627cc9d9
Add <showwhois:opersonly>, allows server admins to unlock umode +W use for regular users. Users without users/auspex priv (not opered, or just not given) will see display host instead of real host always, though.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10693 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 19:46:14 +00:00
w00t
d0a7ed880d
Add/document channels/set-permanent priv, and tie setting of +P to it.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10692 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 19:21:22 +00:00
w00t
164998f1e6
Patch from Namegduf converting all instances (where possible) of time() -> ServerInstance->Time(). Thanks!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 18:15:04 +00:00
w00t
2f1b4c7ce3
Patch from dz to fix bug 622 (config errors build up from /rehash to /rehash), thanks!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10690 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 18:07:07 +00:00
w00t
2cbb6537d9
Proper testing that executable exists and is an executable, thanks dz.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10689 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23 14:45:58 +00:00
w00t
f3c3546d54
Remove debug logging, problem over..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10688 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-22 13:27:38 +00:00
w00t
3a5f4f6bd2
Fix MacGyver's rehash woes..
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10687 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-22 13:27:37 +00:00
w00t
8dc60e3283
Bit of debug in case this goes wrong again...
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10686 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-22 13:27:36 +00:00
w00t
e093c6b953
Only announce Q:Line hits on NICK from unregistered users, thanks satmd.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10685 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-22 10:13:08 +00:00
psychon
ed70b60ad8
First set our group id, then the user id, because we need to be root to set the
...
group (else it always fails with EPERM).
Plus also call setgroups(0, NULL); to get rid of the supplementary groups.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10684 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-22 09:14:31 +00:00
w00t
f7730d08b6
Remove an extremely noisy piece of debug on startup/rehash - this code works fine anyway
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10683 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-20 22:33:18 +00:00
w00t
32a619dbea
Implement <security:runasuser> and <security:runasgroup> - allows for set(g|u)id to drop privs after starting, which can be useful for people who want to bind privileged ports without exposing their anus to a giant cucumber.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10682 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-20 22:12:52 +00:00
brain
e54f28adaf
Update nsis installer scripts with new example confs and test.conf
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10681 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-19 12:59:42 +00:00
brain
b5d21fdb65
Yes, Square Meater is a real cow breed. Only aussies would come up with something so funny.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10679 e03df62e-2008-0410-955e-edbf42e46eb7
v1.2.0b2
2008-10-19 12:35:37 +00:00
brain
db3eea2ac4
Default 'noisy' to false. Until i hear from w00t i cant see how this can be of use right now (non-opers get spammed with crap just from doing regular things like joining channels)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10678 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 19:13:25 +00:00
w00t
bb5a5c5bb6
Some documentation corrections, thanks jdhore.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10677 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 17:09:21 +00:00
w00t
b5c1cf4e2c
Convert a number of modules to using privs.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10676 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:53:00 +00:00
w00t
4354774fe5
Tie settings in mode and whowas to privs.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10675 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:59 +00:00
w00t
a578f50f03
Tie a number of /who settings to servers/auspex and users/auspex respectively.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10674 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:58 +00:00
w00t
88ff6a1180
Tie display of realhost in USERHOST to users/auspex priv.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10673 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:58 +00:00
w00t
71dc240aa3
Tie /stats that aren't explicitly marked for users into servers/auspex.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10672 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:57 +00:00
w00t
fe26d8299d
Tie module version display to servers/auspex priv.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10671 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:56 +00:00
w00t
dd82cae06e
Add priv channels/high-join-limit.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10670 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-18 16:52:55 +00:00