Commit graph

1061 commits

Author SHA1 Message Date
Jilles Tjoelker
da77b103ef Document privsets in the example confs. 2008-09-13 00:32:22 +02:00
Jilles Tjoelker
d7703c583e Pick up remote to oper:routing change. 2008-09-13 00:29:15 +02:00
Jilles Tjoelker
5b5e9c89ea Update SGML docs for need_ssl and new oper priv system. 2008-09-09 23:32:19 +02:00
Jilles Tjoelker
10847f65d3 Remove old oper privilege flags. 2008-09-09 21:51:26 +02:00
Jilles Tjoelker
3e664be375 Document need_ssl flags in example.conf. 2008-09-09 21:46:12 +02:00
Jilles Tjoelker
591342826a Avoid hardcoding the number of shared{} flags another time. 2008-09-09 18:42:59 +02:00
Jilles Tjoelker
7d91f0da00 Fix indentation. 2008-09-09 18:40:57 +02:00
Jilles Tjoelker
b159441429 Add need_ssl to auth{} and operator{}.
Specifying need_ssl on auth{} denies the connection if
it is not SSL/TLS, much like need_ident or need_sasl.
Specifying need_ssl on operator{} refuses opering with
ERR_NOOPERHOST if the connection is not SSL/TLS.
from ircd-ratbox
2008-09-07 01:18:58 +02:00
Jilles Tjoelker
17b97f3024 Fix possible crash with m_mkpasswd extension. 2008-09-06 21:49:45 +02:00
Jilles Tjoelker
4a5655b20d Close the link that sends an invalid UID.
It does not make sense to send a kill using an invlid
identifier to an obviously broken server, as was
previously done.
2008-09-06 15:13:28 +02:00
Jilles Tjoelker
8c29ec4eeb Remove check that cannot happen due to minparc in Message struct. 2008-09-06 01:33:18 +02:00
Jilles Tjoelker
8f7ca682ec Improve server notices for hub_mask/leaf_mask.
Local-only server notices kept here because
hub_mask/leaf_mask tends to be specific to a (hub)
server. The same information is now available in
Netsplit notices.
2008-09-06 01:21:16 +02:00
Jilles Tjoelker
c2f73e5dbc Use rb_snprintf() in various places. 2008-09-06 01:00:20 +02:00
Jilles Tjoelker
847ce0e98d Remove comment referencing LazyLeaf. 2008-09-06 00:44:09 +02:00
Jilles Tjoelker
b1ace057a7 Avoid empty strings in various notices about rejected server connections.
These come from the name field which is empty for unknown
connections attempting to become a server.
Instead, put [@255.255.255.255] just like ratbox3 does.
2008-09-05 22:56:59 +02:00
Jilles Tjoelker
7d4287591f Improve server notices for servers introducing existing servers. 2008-09-05 22:52:39 +02:00
Jilles Tjoelker
8e34ffc66e Improve server notices about duplicate SIDs.
Note that this is checked after duplicate server names,
so it can only happen if multiple servers have the
same SID configured.
2008-09-04 01:41:49 +02:00
Jilles Tjoelker
b92d34adc1 Do not use get_oper_name() for a netwide server notice, it may be confusing. 2008-09-02 23:44:06 +02:00
Jilles Tjoelker
477dc2e926 Correct spelling of oper:remoteban in example.conf. 2008-09-02 23:42:51 +02:00
Jilles Tjoelker
3fe1c72819 oper:adminwall priv seems meaningless, remove it. 2008-09-02 23:40:22 +02:00
Valeriy Yatsko
41d8802e84 We don't want to leave the isupport name in the extension memory space on changing it - fixed a bug (tnx Artem@IrcNet(RU)) 2008-08-31 03:57:27 +04:00
William Pitcock
5d47bdca0f Make change_isupport() return the old value!!! 2008-08-29 15:36:41 -05:00
William Pitcock
474b0d3515 Add change_isupport() to change the value of an ISUPPORT token. 2008-08-29 15:27:34 -05:00
William Pitcock
86b6be08eb Automated merge with ssh://hg.atheme.org//hg/charybdis 2008-08-29 14:48:06 -05:00
Stephen Bennett
9f1bde2683 don't set an empty password or auth_user 2008-08-29 14:47:51 -05:00
William Pitcock
4bb1bfdbc4 Automated branch merge. 2008-08-29 14:46:39 -05:00
William Pitcock
917e9b1ab4 Backed out changeset 7f24e5f3fb86 2008-08-29 14:46:19 -05:00
Stephen Bennett
12f4addbed If auth_user and server password were given and not used, use auth_user as an account name in the nickserv identify command 2008-08-29 14:45:30 -05:00
Stephen Bennett
81c7f48295 If auth_user and server password were given and not used, use auth_user as an account name in the nickserv identify command 2008-08-29 14:45:22 -05:00
Jilles Tjoelker
d7dc7ae6c1 Remove some dead code.
found using llvm static analyzer
2008-08-29 02:53:52 +02:00
Jilles Tjoelker
ab2b9e23cc Fix a memory leak.
found using llvm static analyzer
2008-08-29 01:58:10 +02:00
Jilles Tjoelker
03c1fe2153 Make genssl.sh work.
Submitted by jdhore.
2008-08-29 01:34:18 +02:00
Jilles Tjoelker
d60a42a27f Fix comment, getsockname() can fail legitimately.
from ircd-ratbox r25967 (jilles)
2008-08-28 01:06:19 +02:00
Jilles Tjoelker
9692f954c6 Don't try to add a closed connection.
ircd-ratbox r25965 (jilles)
2008-08-28 01:05:41 +02:00
Jilles Tjoelker
3540120ad5 Fix ident for ssl connections. 2008-08-28 00:49:04 +02:00
Jilles Tjoelker
e4bb4f3645 Remove another remnant of server hostmasking. 2008-08-26 00:00:11 +02:00
Jilles Tjoelker
e27ac6024d ssld: un #if 0 the /dev/null stuff out 2008-08-25 18:48:30 +02:00
Jilles Tjoelker
83dfad0e75 Clear privset on deoper. 2008-08-25 18:24:24 +02:00
Jilles Tjoelker
7d5acab766 Fix crash if there is no privset= in an operator{}. 2008-08-18 00:55:12 +02:00
Jilles Tjoelker
bdd296d5b9 Use C locale for the compilation date. 2008-08-17 22:55:57 +02:00
William Pitcock
a8240d5c43 update TODO 2008-08-17 09:30:31 -05:00
William Pitcock
b501097030 privset example: Add a privset for local bots like BOPM and TCMs. 2008-08-17 08:58:34 -05:00
William Pitcock
50f2579264 m_privs: Add stuff for privsets here too. 2008-08-17 08:56:40 -05:00
William Pitcock
f37fc9389b HasPrivilege(): check to make sure localClient and localClient.privset are non-NULL. 2008-08-17 08:52:04 -05:00
William Pitcock
880c94adb4 /stats o: display name of privset instead of privs 2008-08-17 08:40:10 -05:00
William Pitcock
6ac9e53ee4 All modules converted to use privsets by porting the macro over.
New macro, HasPrivilege() does most of the work here, the old IsOper*() macros
are deprecated, and will likely be removed later.
2008-08-17 08:36:17 -05:00
William Pitcock
ef24271618 Make a reference to privset in Client.localClient. 2008-08-17 08:23:40 -05:00
William Pitcock
598b4cf10c privilegeset_ref(): return the privilegeset 2008-08-17 08:22:56 -05:00
William Pitcock
49b0375d62 Make use of the new default privset!! 2008-08-17 08:08:23 -05:00
William Pitcock
39a68b5376 ircd initialization: add a "default" privset with no privs. 2008-08-17 08:06:28 -05:00