Commit Graph

956 Commits

Author SHA1 Message Date
Jilles Tjoelker 3c80e9d634 Avoid hardcoding the number of shared{} flags another time. 2008-09-09 18:42:59 +02:00
Jilles Tjoelker 90b9ef6c6d Fix indentation. 2008-09-09 18:40:57 +02:00
Jilles Tjoelker 663bbb2836 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 73f50e08ea Fix possible crash with m_mkpasswd extension. 2008-09-06 21:49:45 +02:00
Jilles Tjoelker 4137c21c96 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 77a742c11c Remove check that cannot happen due to minparc in Message struct. 2008-09-06 01:33:18 +02:00
Jilles Tjoelker c71ae7f0dc 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 5b0a527927 Use rb_snprintf() in various places. 2008-09-06 01:00:20 +02:00
Jilles Tjoelker 341504a702 Remove comment referencing LazyLeaf. 2008-09-06 00:44:09 +02:00
Jilles Tjoelker bdfc9ce626 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 deb7449471 Improve server notices for servers introducing existing servers. 2008-09-05 22:52:39 +02:00
Jilles Tjoelker 9649981ba7 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 64973a71e6 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 44d450f242 Correct spelling of oper:remoteban in example.conf. 2008-09-02 23:42:51 +02:00
Jilles Tjoelker 0d499ee5f9 oper:adminwall priv seems meaningless, remove it. 2008-09-02 23:40:22 +02:00
Valeriy Yatsko d05e3e3a7b 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 508c7c41fe Make change_isupport() return the old value!!! 2008-08-29 15:36:41 -05:00
William Pitcock 17ad49a96a Add change_isupport() to change the value of an ISUPPORT token. 2008-08-29 15:27:34 -05:00
William Pitcock 9ac19244c0 Automated merge with ssh://hg.atheme.org//hg/charybdis 2008-08-29 14:48:06 -05:00
Stephen Bennett 1d53b4283b don't set an empty password or auth_user 2008-08-29 14:47:51 -05:00
William Pitcock 978daf7118 Automated branch merge. 2008-08-29 14:46:39 -05:00
William Pitcock 016746cfc2 Backed out changeset 7f24e5f3fb86 2008-08-29 14:46:19 -05:00
Stephen Bennett 645103ac52 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 299ad32f98 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 628eee0041 Remove some dead code.
found using llvm static analyzer
2008-08-29 02:53:52 +02:00
Jilles Tjoelker ef8e4220ec Fix a memory leak.
found using llvm static analyzer
2008-08-29 01:58:10 +02:00
Jilles Tjoelker d3b22631c1 Make genssl.sh work.
Submitted by jdhore.
2008-08-29 01:34:18 +02:00
Jilles Tjoelker 0cdd90ce79 Fix comment, getsockname() can fail legitimately.
from ircd-ratbox r25967 (jilles)
2008-08-28 01:06:19 +02:00
Jilles Tjoelker c80be1ec80 Don't try to add a closed connection.
ircd-ratbox r25965 (jilles)
2008-08-28 01:05:41 +02:00
Jilles Tjoelker 07c8448a5b Fix ident for ssl connections. 2008-08-28 00:49:04 +02:00
Jilles Tjoelker 509c9ee183 Remove another remnant of server hostmasking. 2008-08-26 00:00:11 +02:00
Jilles Tjoelker 79fae8dbc0 ssld: un #if 0 the /dev/null stuff out 2008-08-25 18:48:30 +02:00
Jilles Tjoelker 6acb39cb1a Clear privset on deoper. 2008-08-25 18:24:24 +02:00
Jilles Tjoelker 220c63400a Fix crash if there is no privset= in an operator{}. 2008-08-18 00:55:12 +02:00
Jilles Tjoelker c08e7f2dbd Use C locale for the compilation date. 2008-08-17 22:55:57 +02:00
William Pitcock 858646f1f8 update TODO 2008-08-17 09:30:31 -05:00
William Pitcock 6e915bfe06 privset example: Add a privset for local bots like BOPM and TCMs. 2008-08-17 08:58:34 -05:00
William Pitcock 028aef6ed6 m_privs: Add stuff for privsets here too. 2008-08-17 08:56:40 -05:00
William Pitcock 4db97a8263 HasPrivilege(): check to make sure localClient and localClient.privset are non-NULL. 2008-08-17 08:52:04 -05:00
William Pitcock e2d7f73174 /stats o: display name of privset instead of privs 2008-08-17 08:40:10 -05:00
William Pitcock 73a3435109 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 34cb09ceea Make a reference to privset in Client.localClient. 2008-08-17 08:23:40 -05:00
William Pitcock 665e79e999 privilegeset_ref(): return the privilegeset 2008-08-17 08:22:56 -05:00
William Pitcock 5a6d4202d1 Make use of the new default privset!! 2008-08-17 08:08:23 -05:00
William Pitcock 001f5f6731 ircd initialization: add a "default" privset with no privs. 2008-08-17 08:06:28 -05:00
William Pitcock 83c037c058 Automated merge with ssh://hg.atheme.org//hg/charybdis 2008-08-17 07:53:32 -05:00
William Pitcock 3ddb54d905 update oper line 2008-08-17 07:53:29 -05:00
Jilles Tjoelker d2e6d8d715 Add 328 numeric (ChanServ channel URL) to the header files. 2008-08-17 14:49:01 +02:00
William Pitcock f6189c43ab same bug 2008-08-17 07:47:06 -05:00
Jilles Tjoelker c73d999576 Remove another servlink remnant. 2008-08-17 14:46:29 +02:00