Bram Matthys
88aa91eb94
rather than copying the string result, why not work on the buffer directly..
2015-07-16 21:01:27 +02:00
Bram Matthys
252538272e
Reduce nick@server complexity in m_message and (similarly) make hash_find_nickserver() easier and more tolerant, also accepts just 'nick' in addition to 'nick@server'
2015-07-16 18:09:26 +02:00
Bram Matthys
083ca38554
:D
2015-07-16 17:36:48 +02:00
Bram Matthys
dd3993008c
small unlikely memleaks. and cptr->port being set to a random value (caused few weeks ago).. but we don't ever read it so not terribly important.
2015-07-16 17:13:57 +02:00
Bram Matthys
6ee1773fbe
Not sure if this will ever happen as there's a lot of code called beforehand, but ah well.. (memleak).
2015-07-16 16:32:43 +02:00
Bram Matthys
b33a461e9a
re-indent
2015-07-16 16:28:14 +02:00
Bram Matthys
f715ee37cc
uninitialized read (won't actually happen as other routines check before this)
2015-07-16 16:27:53 +02:00
Bram Matthys
c6488bb50a
Why would anyone want to know this.. got enough on-connect msgs already.
2015-07-16 10:57:55 +02:00
Bram Matthys
dcb0c63bd8
Spamfilter 'u' was broken by nenolod. Literally. snprintf(buf, sizeof(buf), .. where 'buf' is a 'char *'. Fantastic.
2015-07-15 18:34:25 +02:00
Bram Matthys
f22cef97d4
Why do we have those unnecessary (SSL *) casts everywhere? Poof. Gone.
2015-07-15 15:54:36 +02:00
Bram Matthys
1978077c79
Use SENDSNO sender in server notices and not me.name, to avoid confusion.
2015-07-14 14:46:58 +02:00
Bram Matthys
e9cc914449
Cleanup
2015-07-14 12:54:26 +02:00
Bram Matthys
2e7ad2f9f7
If you write things this way then it's easy to miss a parv[0] fetch..
2015-07-14 12:48:35 +02:00
Bram Matthys
9bcaac6ac6
oper modes were not broadcasted (bug caused <1wk ago I think), SETHOST may be sent over the wire before the +o so change permission check (caused 1-2d ago).
2015-07-13 10:21:18 +02:00
Bram Matthys
ec2a04c7a1
Fix OOB read ('i')
2015-07-12 21:03:40 +02:00
Bram Matthys
afb4c7bebe
Rip out remainder of HOOKTYPE_GUEST. Whoops.. were not sending "nick in use" errors (bug caused a few hours ago)
2015-07-12 20:02:00 +02:00
Bram Matthys
7e78f04058
add src/api-clicap.c and hide 'sasl' when needed (as before) via the clicap->visible callback function
2015-07-12 17:17:19 +02:00
Bram Matthys
372ce82335
Make client capabilities a modular sub-system, as it should have been since the beginning.
2015-07-12 17:10:48 +02:00
Bram Matthys
4e39c08a4d
Nobody uses this..
2015-07-12 15:53:12 +02:00
Bram Matthys
c7974591b5
remove some comments regarding add_command
2015-07-12 15:48:50 +02:00
Bram Matthys
a0aa1032a5
get rid of m_dummy & m_chmodetst, we have wiki for such docs (wasn't compiled nor loaded anyway)
2015-07-12 15:36:09 +02:00
Bram Matthys
d33f1ca8f6
Remove /ADDLINE: it's (too) easy to create a broken configuration file this way and then have an un-rehashable and un-bootable IRCd without having shell access. Use SSH or SFTP/SCP instead. Or even better: remote includes, of course :)
2015-07-12 15:34:08 +02:00
Bram Matthys
bbb121383b
Add who-may-execute-this in many CommandAdd()'s. Trying to remove all "unspecified" (0) ones... hopefully I made no mistake in this ;)
...
Update remote-permission check in ValidatePermissionsForPath to check at least IsOper.. may save us from some serious mistakes ;)
2015-07-12 15:32:11 +02:00
Bram Matthys
da935b7e41
Remove /UNZLINE and /UNKLINE: all these commands did was tell you to use /ZLINE -xx and /KLINE -xx instead.
2015-07-11 11:21:42 +02:00
Bram Matthys
6c0ebb5bd3
Protection against linking race conditions is back again (IOTW: allow very rapid re-linking), but only if your network is fully 3.4.x (actually: current git unreal34 or later)
...
Re-implemented PROTOCTL SERVERS= which nenolod ripped out (#4355 ).
Add 2nd argument to PROTOCTL EAUTH=servername,unrealprotocol
Change UnrealProtocol from 2350 to 2351
2015-07-10 21:57:13 +02:00
Bram Matthys
145e2880b5
Partially rewrite m_kill. Hope it's all okay. Use UID's too
...
(why wasn't it using it UID's already? this is like THE first candidate :D)
2015-07-10 13:49:25 +02:00
Bram Matthys
e8dfb284a1
Replace parv[0] with sptr->name. Don't use parv[0] anymore.
...
I went through all 500+ of them by hand as to avoid introducing bugs... we'll see ;)
2015-07-10 12:17:05 +02:00
Bram Matthys
d542db2aaa
Fix invalid /GLOBOPS format string call (introduced a few days ago)
2015-07-10 10:46:09 +02:00
Bram Matthys
a9fc2243aa
support multiple vhost::swhois items for consistency
2015-07-10 10:44:40 +02:00
Bram Matthys
405ede44c2
ircfree -> safefree. ircstrdrup -> safestrdrup
2015-07-10 10:22:02 +02:00
Bram Matthys
c2f4e0fb2a
Support multiple oper::swhois items.
2015-07-10 10:15:36 +02:00
Travis McArthur
f9a7cdaeab
Update security on register-only messages umode
2015-07-09 13:39:43 -07:00
Travis McArthur
0f84e1c417
Update m_userip security
2015-07-09 13:39:34 -07:00
Travis McArthur
fc38b1336a
Update security in m_stats
2015-07-09 13:39:08 -07:00
Travis McArthur
7ea4dc1486
Update security in m_setident
2015-07-09 13:39:00 -07:00
Travis McArthur
7caa82e868
Update security in m_nick
2015-07-09 13:38:53 -07:00
Travis McArthur
9e46255922
Update security in m_message
2015-07-09 13:38:44 -07:00
Travis McArthur
50a2eacd97
Update security in m_invite
2015-07-09 13:38:35 -07:00
Travis McArthur
14c4a19d18
Update security in squit
2015-07-09 13:38:25 -07:00
Travis McArthur
9e8f61b2a5
Update security in m_connect
2015-07-09 13:38:17 -07:00
Travis McArthur
925c3585f1
Update permissions in floodprot
2015-07-09 13:18:21 -07:00
Travis McArthur
83720d07d2
Update security in m_mode
...
Needs a lot more testing before we ship - I'll work on that
2015-07-09 13:12:22 -07:00
Travis McArthur
9cba20fd60
Remove locop/globop distinction
2015-07-09 12:51:15 -07:00
Travis McArthur
97b2bbc819
Add ACL checks to chgname
2015-07-09 12:51:05 -07:00
Travis McArthur
2450909c26
Change name of OperEval...
2015-07-09 12:31:45 -07:00
Bram Matthys
a4cd12d932
Fix remote MOTD & RULES ( #2103 )
2015-07-09 20:04:04 +02:00
Bram Matthys
787cd7c221
Use remove_oper_privileges()
2015-07-09 19:08:36 +02:00
Bram Matthys
f3199ec5e5
1) unset the swhois you got via a vhost upon MODE -t. 2) allow MODE yourself -t
...
which will unset your vhost & give you a cloaked host (#2613 , suggested by Stealth)
2015-07-09 18:43:21 +02:00
Bram Matthys
2f8cb55e47
Add extended SWHOIS support. Allows multiple swhoises and tracking of who/what set the swhois.
...
Added swhois_add / swhois_delete functions which also take care of broadcasting
New remove_oper_privileges() function, will move the rest to use this (svsnoop svsmode etc)
Not finished yet...
2015-07-09 16:26:52 +02:00
Bram Matthys
f03d865e77
Remove /CHATOPS. We already have /GLOBOPS which does the same.
...
Update help.conf a bit, in a lazy way.
2015-07-09 14:22:33 +02:00