]> jfr.im git - irc/DALnet/bahamut.git/log
irc/DALnet/bahamut.git
5 years agoMerge pull request #89 from kobishmueli/sslbug v2.1.4
Emilio A. Escobar [Wed, 28 Nov 2018 19:14:56 +0000 (11:14 -0800)] 
Merge pull request #89 from kobishmueli/sslbug

Fix a security bug on readwrite_client() that could lead to server crashes by SSL users

5 years agoUpdate CHANGES and patchlevel. This is 2.1.4.
Kobi Shmueli [Wed, 28 Nov 2018 19:11:35 +0000 (21:11 +0200)] 
Update CHANGES and patchlevel.  This is 2.1.4.

5 years agoFix a security bug on readwrite_client() that could lead to server crashes by SSL...
Kobi Shmueli [Wed, 28 Nov 2018 19:10:48 +0000 (21:10 +0200)] 
Fix a security bug on readwrite_client() that could lead to server crashes by SSL users

5 years agoMerge pull request #88 from kobishmueli/fixes-2018-11-07
Emilio A. Escobar [Sat, 17 Nov 2018 18:47:19 +0000 (10:47 -0800)] 
Merge pull request #88 from kobishmueli/fixes-2018-11-07

A few fixes for Bahamut 2.1.4

5 years agoAllow WEBIRC hosts to have a semicolon too (for IPv6 IP addresses)
Kobi Shmueli [Sat, 17 Nov 2018 06:23:29 +0000 (08:23 +0200)] 
Allow WEBIRC hosts to have a semicolon too (for IPv6 IP addresses)

5 years agoMake sure the host on WEBIRC will have at least one dot
Kobi Shmueli [Fri, 16 Nov 2018 21:45:03 +0000 (23:45 +0200)] 
Make sure the host on WEBIRC will have at least one dot

5 years agoDon't allow WEBIRC to use DEFAULT_STAFF_ADDRESS either
Kobi Shmueli [Fri, 16 Nov 2018 21:42:45 +0000 (23:42 +0200)] 
Don't allow WEBIRC to use DEFAULT_STAFF_ADDRESS either

5 years agoDon't allow WEBIRC to use 0.0.0.*, 127.0.0.* or Staff_Address
Kobi Shmueli [Fri, 16 Nov 2018 21:12:53 +0000 (23:12 +0200)] 
Don't allow WEBIRC to use 0.0.0.*, 127.0.0.* or Staff_Address

5 years agoDon't accept too long hostnames from WEBIRC
Kobi Shmueli [Fri, 16 Nov 2018 17:49:39 +0000 (19:49 +0200)] 
Don't accept too long hostnames from WEBIRC

If we get an host that is too long from WEBIRC, we'll use the IP instead.

-Kobi.

5 years agoDuplicate USER_VERBOSE and OPER_VERBOSE xflags into USER_VERBOSEV2 and OPER_VERBOSEV2
Kobi Shmueli [Fri, 16 Nov 2018 00:56:15 +0000 (02:56 +0200)] 
Duplicate USER_VERBOSE and OPER_VERBOSE xflags into USER_VERBOSEV2 and OPER_VERBOSEV2

This will make it easier for us to enable them on upgraded servers without affecting non-upgraded servers.

5 years agotypo fix (cptr --> sptr) that could lead to server crashes in some cases
Kobi Shmueli [Thu, 15 Nov 2018 22:03:24 +0000 (00:03 +0200)] 
typo fix (cptr --> sptr) that could lead to server crashes in some cases

5 years agoMerge pull request #86 from kobishmueli/fixes-2018-11-07
Emilio A. Escobar [Thu, 15 Nov 2018 18:53:10 +0000 (10:53 -0800)] 
Merge pull request #86 from kobishmueli/fixes-2018-11-07

Optimization & more sanity checks

5 years agoCosmetic change (clarify what umode +y does)
Kobi Shmueli [Sat, 10 Nov 2018 23:48:03 +0000 (01:48 +0200)] 
Cosmetic change (clarify what umode +y does)

5 years agoFix SVSXCF calls with no channel name on send_topic_burst()
Kobi Shmueli [Thu, 8 Nov 2018 02:52:16 +0000 (04:52 +0200)] 
Fix SVSXCF calls with no channel name on send_topic_burst()

5 years agoMore sanity checks
Kobi Shmueli [Wed, 7 Nov 2018 17:50:32 +0000 (19:50 +0200)] 
More sanity checks

Just to be on the safe side...

-Kobi.

5 years agoOptimize sendto_channel_butone() and sendto_channel_butlocal() functions
Kobi Shmueli [Wed, 7 Nov 2018 17:43:03 +0000 (19:43 +0200)] 
Optimize sendto_channel_butone() and sendto_channel_butlocal() functions

There is no point to set sentalong for clients if we're not going to check it later (and we shouldn't anyway).

Also, only set i = acptr->from->fd when we need to.

-Kobi.

5 years agoMerge pull request #82 from kobishmueli/bahamut-2.1.2-rc v2.1.2
Emilio A. Escobar [Sun, 4 Nov 2018 19:10:04 +0000 (11:10 -0800)] 
Merge pull request #82 from kobishmueli/bahamut-2.1.2-rc

Changes to release bahamut 2.1.2

5 years agoUpdate CHANGES and patchlevel. This is 2.1.2.
Kobi Shmueli [Fri, 2 Nov 2018 02:30:54 +0000 (04:30 +0200)] 
Update CHANGES and patchlevel.  This is 2.1.2.

5 years agoFix for a small compile warning (forgot return 0)
Kobi Shmueli [Fri, 2 Nov 2018 02:28:37 +0000 (04:28 +0200)] 
Fix for a small compile warning (forgot return 0)

5 years agoMerge pull request #81 from kobishmueli/cmode_p
Emilio A. Escobar [Thu, 1 Nov 2018 15:47:13 +0000 (08:47 -0700)] 
Merge pull request #81 from kobishmueli/cmode_p

Make cmode +p useful again

5 years agoMerge pull request #78 from kobishmueli/sf-2018-10-25
Emilio A. Escobar [Thu, 1 Nov 2018 15:46:43 +0000 (08:46 -0700)] 
Merge pull request #78 from kobishmueli/sf-2018-10-25

spamfilter fixes

5 years agoMerge pull request #79 from kobishmueli/xflags-2018-10-27
Emilio A. Escobar [Thu, 1 Nov 2018 15:46:14 +0000 (08:46 -0700)] 
Merge pull request #79 from kobishmueli/xflags-2018-10-27

Add NO_UTF8 xflag (XCF)

5 years agoMake cmode +p useful again
Kobi Shmueli [Mon, 29 Oct 2018 06:15:34 +0000 (08:15 +0200)] 
Make cmode +p useful again

cmode +p = hide the channel from /list but not from /whois
cmode +s = hide the channel from /list *and* from /whois

Notes:
1. /list #channel will still work for specific +p channels.
2. /topic #channel will work for +p channels.

5 years agoChange stripcolors() to strip ASCII CODE 1 too (CTCPs & actions)
Kobi Shmueli [Mon, 29 Oct 2018 05:08:03 +0000 (07:08 +0200)] 
Change stripcolors() to strip ASCII CODE 1 too (CTCPs & actions)

5 years agoAdd counter for spamfitler matches
Kobi Shmueli [Sat, 27 Oct 2018 21:41:56 +0000 (00:41 +0300)] 
Add counter for spamfitler matches

Visible (to opers) via /stats S.

5 years agoLet opers use STATS S to see the spamfilter list
Kobi Shmueli [Sat, 27 Oct 2018 21:28:59 +0000 (00:28 +0300)] 
Let opers use STATS S to see the spamfilter list

5 years agospamfilter ids must end with a "]"
Kobi Shmueli [Sat, 27 Oct 2018 20:57:53 +0000 (23:57 +0300)] 
spamfilter ids must end with a "]"

If the spamfilter reason doesn't start with [something], it doesn't have an ID.

5 years agoAdd NO_UTF8 xflag (XCF)
Kobi Shmueli [Sat, 27 Oct 2018 05:48:53 +0000 (08:48 +0300)] 
Add NO_UTF8 xflag (XCF)

When enabled, messages that contain high ASCII codes will be blocked.
It doesn't have to be UTF8 really, Hebrew and Arabic characters will be blocked as well.

5 years agoAdd target support to spamfilter
Kobi Shmueli [Sat, 27 Oct 2018 03:25:30 +0000 (06:25 +0300)] 
Add target support to spamfilter

This will let us add spamfilters to specific channels without affecting other channels.

Note that a pattern can only appear once in the spamfilter list so you can't add the same pattern with multiple targets.

5 years agoCosmetic comment fix
Kobi Shmueli [Fri, 26 Oct 2018 02:02:45 +0000 (05:02 +0300)] 
Cosmetic comment fix

5 years agoAdd support for spamfilter id and use it on warnings when possible
Kobi Shmueli [Thu, 25 Oct 2018 06:45:37 +0000 (09:45 +0300)] 
Add support for spamfilter id and use it on warnings when possible

5 years agoDon't check spamfilter if a user messages/notices themselves
Kobi Shmueli [Thu, 25 Oct 2018 06:44:25 +0000 (09:44 +0300)] 
Don't check spamfilter if a user messages/notices themselves

5 years agoFix a few compile warnings
Kobi Shmueli [Wed, 24 Oct 2018 04:00:02 +0000 (07:00 +0300)] 
Fix a few compile warnings

5 years agoIncrease sendnick_TS() function's umode buffer to 54 to be consistent with register_u...
Kobi Shmueli [Wed, 24 Oct 2018 03:49:59 +0000 (06:49 +0300)] 
Increase sendnick_TS() function's umode buffer to 54 to be consistent with register_user()

5 years agoChange send_umode() make sure the buffer isn't overflowed
Kobi Shmueli [Wed, 24 Oct 2018 03:47:10 +0000 (06:47 +0300)] 
Change send_umode() make sure the buffer isn't overflowed

5 years agoAdd NO_NICK_CHANGE xflag (XCF)
Kobi Shmueli [Tue, 23 Oct 2018 03:49:16 +0000 (06:49 +0300)] 
Add NO_NICK_CHANGE xflag (XCF)

When enabled, users on the channel will not be able to change their nicks (unless they're exempted).

ircd-hybrid's cmode +N gave me the idea to add this xflag.

5 years agoDon't spam the network with the same channel topics
Kobi Shmueli [Mon, 22 Oct 2018 18:28:51 +0000 (21:28 +0300)] 
Don't spam the network with the same channel topics

This patch changes m_topic() to ignore a new topic if the topic details (TS, topic and setter) are exactly the same.
It will prevent services from "flooding" the network with the same topics upon services restarts.
It won't affect users setting the same topic as the TS would be different.

5 years agoChange stripcolors() function to strip ASCII CODES 2-31
Kobi Shmueli [Mon, 22 Oct 2018 09:41:55 +0000 (12:41 +0300)] 
Change stripcolors() function to strip ASCII CODES 2-31

5 years agoOptimize stripall() function
Kobi Shmueli [Mon, 22 Oct 2018 09:39:04 +0000 (12:39 +0300)] 
Optimize stripall() function

5 years agoChange stripall() function to strip Hebrew characters as well
Kobi Shmueli [Mon, 22 Oct 2018 09:37:17 +0000 (12:37 +0300)] 
Change stripall() function to strip Hebrew characters as well

5 years agoDon't complain about empty part messages (user/oper verbose)
Kobi Shmueli [Mon, 22 Oct 2018 09:30:43 +0000 (12:30 +0300)] 
Don't complain about empty part messages (user/oper verbose)

5 years agoLet services change oper flags/modes with SVSMODE
Kobi Shmueli [Mon, 22 Oct 2018 04:12:33 +0000 (07:12 +0300)] 
Let services change oper flags/modes with SVSMODE

5 years agoLet server admins see umodes with WHOIS (RPL_WHOISMODES)
Kobi Shmueli [Mon, 22 Oct 2018 03:07:49 +0000 (06:07 +0300)] 
Let server admins see umodes with WHOIS (RPL_WHOISMODES)

5 years agoChange all the umode(s) to long
Kobi Shmueli [Mon, 22 Oct 2018 03:07:15 +0000 (06:07 +0300)] 
Change all the umode(s) to long

5 years agoChange UMODE_P to use 0x800
Kobi Shmueli [Mon, 22 Oct 2018 03:06:48 +0000 (06:06 +0300)] 
Change UMODE_P to use 0x800

0x800 was free and we also put a warning to prevent future mistakes.

5 years agoCosmetic: mention that umode 0x00800 is free.
Kobi Shmueli [Mon, 22 Oct 2018 04:40:09 +0000 (07:40 +0300)] 
Cosmetic: mention that umode 0x00800 is free.

5 years agoDon't accept OPER commands from servers
Kobi Shmueli [Mon, 22 Oct 2018 04:25:16 +0000 (07:25 +0300)] 
Don't accept OPER commands from servers

An OPER command should never be sent by a server, only by local clients.

5 years agoIncrease the umode buffer on register_user() to prevent a possible buffer overflow
Kobi Shmueli [Mon, 22 Oct 2018 04:06:32 +0000 (07:06 +0300)] 
Increase the umode buffer on register_user() to prevent a possible buffer overflow

5 years agoUpdate patchlevel.h (#75)
Emilio A. Escobar [Sat, 13 Oct 2018 02:16:19 +0000 (19:16 -0700)] 
Update patchlevel.h (#75)

5 years agoUpdate CHANGES (#74) v2.1.1
Emilio A. Escobar [Sat, 13 Oct 2018 01:56:09 +0000 (18:56 -0700)] 
Update CHANGES (#74)

* Update CHANGES

* Update CHANGES

5 years agoImprove SpamFilter's STRIPALL flag (#73)
Kobi Shmueli [Sat, 13 Oct 2018 01:47:23 +0000 (04:47 +0300)] 
Improve SpamFilter's STRIPALL flag (#73)

This changes check_sf() function to remove the target's nick (or channel) from the beginning of the message when STRIPALL flag is used.

This will let us add non-wildcard patterns for "<nick> spam" messages.

5 years agoExtra check to sendto_alias() function (#70)
Kobi Shmueli [Sun, 7 Oct 2018 23:58:41 +0000 (02:58 +0300)] 
Extra check to sendto_alias() function (#70)

5 years agoNew module hooks (#69)
Kobi Shmueli [Fri, 5 Oct 2018 05:02:08 +0000 (08:02 +0300)] 
New module hooks (#69)

* Add SPAMWARN module hook

CHOOK_SPAMWARN is called from s_user.c and channel.c during spam warnings to opers

Params: 4: (aClient *source, int type, int max_targets, char *target_name)

Returns: int (FLUSH_BUFFER would prevent the normal message from being sent)

* Add ONACCESS module hook

CHOOK_ONACCESS is called from s_user.c during m_user (in general, it is called before CHOOK_POSTACCESS and after CHOOK_PREACCESS)

Params: 5: (aClient *, char *username, char *host, char *server, char *realname)
Returns: int (FLUSH_BUFFER can block the m_user call)

5 years agoAdd services join requests. (#51)
Kobi Shmueli [Fri, 5 Oct 2018 05:01:51 +0000 (08:01 +0300)] 
Add services join requests. (#51)

* Add services join requests.

This feature is disabled by default, however, when enabled (either for cmode +r channels or for all channels), servers will send join requests to services via the SJR command.

Once approved, services will send a join approval with the AJ command.
Alternatively, if the join request is denied, services will send the relevant error message to the user.

-Kobi.

* Change the services join request feature to use a new SJR channel extended flag rather than CMODE +r.

5 years agoChange SFAKILL to send OperServ nick!user@IP instead of just nick (#68)
Kobi Shmueli [Fri, 5 Oct 2018 05:01:38 +0000 (08:01 +0300)] 
Change SFAKILL to send OperServ nick!user@IP instead of just nick (#68)

This is just another precaution to make sure OperServ will autokill the correct user.

5 years agoUpdated doc/opers.txt to reflect the changes made to the /rehash (#64)
Holbrook Bunting [Thu, 4 Oct 2018 01:15:27 +0000 (18:15 -0700)] 
Updated doc/opers.txt to reflect the changes made to the /rehash (#64)

command

5 years agoPass the INSTALL_DIR to the modules installation script so it can install the modules...
Ryan Smith [Thu, 4 Oct 2018 01:14:57 +0000 (21:14 -0400)] 
Pass the INSTALL_DIR to the modules installation script so it can install the modules properly. (#63)

5 years agoAdd more extended channel flags (XCF) (#67)
Kobi Shmueli [Thu, 4 Oct 2018 01:14:31 +0000 (04:14 +0300)] 
Add more extended channel flags (XCF) (#67)

* Add nick!user@host to the spamfilter warnings

This will make it easier for our mass akill scripts.

-Kobi.

* Cosmetic changes to the spamfilter warning

The warning will now say if the spammer was blocked, akilled or blocked+akilled.

-Kobi.

* Add MAX_INVITES XCF

This will let us increase the maximum invite list for specific channels.
The use case is regional channels that want to +I their region/country's IPs and use it in combination with cmode +R.

* Add HIDE_MODE_LISTS XCF

This will let us hide /mode #channel +b/+I/+e lists from non-ops.

There are a few use cases for this (especially when the list limits are increased for channels that are being regularly flooded):
1. Prevent users from disconnecting themselves for "SendQ Exceeded".
2. Prevent abusers from flooding the server with it.
3. Prevent abusers from knowing our flood-control exemption lists.

* Add USER_VERBOSE XCF

When enabled, the server will alert #channel-relay about failed commands due to channel modes or xflags.

This feature was suggested by Sara_Ks.

* Add OPER_VERBOSE XCF

When enabled, the server will alert +f opers about failed commands due to channel modes or xflags.

Similar to USER_VERBOSE but will combine all "relay channels" to one place for opers and will show the user's real hostname even if they have user host-masking enabled.

* Add FLOODWARN module hook

CHOOK_FLOODWARN is called during flood warnings to opers.

Params: 5: (aClient *source, aChannel *channel, int type, char *cmd, char *reason)

Returns: int (FLUSH_BUFFER would prevent the normal message from being sent)

* Don't verbose opers about +j failed joins

They will be getting these warnings from the throttles anyway.

5 years agoAdd nick!user@host to the spamfilter warnings (#62)
Kobi Shmueli [Thu, 4 Oct 2018 01:14:12 +0000 (04:14 +0300)] 
Add nick!user@host to the spamfilter warnings (#62)

* Add nick!user@host to the spamfilter warnings

This will make it easier for our mass akill scripts.

-Kobi.

* Cosmetic changes to the spamfilter warning

The warning will now say if the spammer was blocked, akilled or blocked+akilled.

-Kobi.

5 years agoThe following is for remote /rehash (#61)
Holbrook Bunting [Sat, 29 Sep 2018 05:37:25 +0000 (22:37 -0700)] 
The following is for remote /rehash (#61)

Current m_rehash is now local_rehash.
The new m_rehash determines what to do with the rehash command it has
received, then either passes it to local_rehash or passes it on to the
target server.

To use remote rehash, the user on the local server must have access to
the rehash command on the server the user is on.

For the target server, the ircd.conf option "allow_remote_rehash" must
be enabled.

- Holbrook

5 years agoRemove extraneous RSA, DSA, ECDSA, and EVP compatibility functions that are not used...
Ryan Smith [Thu, 20 Sep 2018 06:10:55 +0000 (02:10 -0400)] 
Remove extraneous RSA, DSA, ECDSA, and EVP compatibility functions that are not used by bahamut and were causing compilation issues with older OpenSSL libraries. (#57)

5 years agoSpamfilter oper flags (#58)
Ryan Smith [Thu, 20 Sep 2018 06:10:41 +0000 (02:10 -0400)] 
Spamfilter oper flags (#58)

* Remove extraneous RSA, DSA, ECDSA, and EVP compatibility functions that are not used by bahamut and were causing compilation issues with older OpenSSL libraries.

* DEFAULT_OPER_SPAMFILTER_DISABLED - default your opers to +P, which disables spamfilter checking.  This is strongly recommended so that users can report potential spam.

5 years agoCode cleanup (STAT_MASTER) (#59)
Kobi Shmueli [Thu, 20 Sep 2018 06:09:41 +0000 (09:09 +0300)] 
Code cleanup (STAT_MASTER) (#59)

* Code cleanup (STAT_MASTER)

Remove useless STAT_MASTER code that isn't even used.

-Kobi.

* Propagate errors to other servers

This will make m_error() messages propagate to other servers and
all +n opers will be able to see them.

-Kobi.

* Log config errors to syslog (if USE_SYSLOG is defined)

* Propagate wrong link password error messages to other servers

* Fix two compile warnings

5 years agoUpdated changes for 2.1.0 release (#56) 2.1.0
Emilio A. Escobar [Mon, 17 Sep 2018 19:50:17 +0000 (12:50 -0700)] 
Updated changes for 2.1.0 release (#56)

* Updated changes for 2.1.0 release

Still needs some content for help.

* Updating patch level to 2.1.0

* More updates for 2.1.0.

* Fixed a broken merge (SVSXCF).

* Added missing extern.

* Updated version.c.SH (cosmetic fix).

* More updates for 2.1.0.

* Updated MODULE_INTERFACE_VERSION.

* Fixes for masked opers as they're already masked anyway.

* Let's make sure m_quit() will only check real users.

Currently, QUIT from un-registered clients (before NICK & USER) can crash the server because we're checking sptr->user->channels and sptr->user doesn't exist.

-Kobi.

5 years agoUpdate opers.txt (#47)
Bradley Claghorn [Tue, 11 Sep 2018 16:12:56 +0000 (12:12 -0400)] 
Update opers.txt (#47)

* Update opers.txt

Added notation regarding the +I hidden oper mode, usually only available by define'ing in config.h. Most probably don't know it exists.

* Update opers.txt

* Added +H and +P usermodes

Additionally reformatted things a bit, reworded things, overall looks cleaner.

* Date reordered

Sorry Kobi, I didn't even realize that.

5 years agoAdd SpamFilter feature. (#37)
Kobi Shmueli [Tue, 11 Sep 2018 16:12:25 +0000 (19:12 +0300)] 
Add SpamFilter feature. (#37)

* Add SpamFilter feature.

This IRCd feature (which is controlled by services) will allow us to block & autokill spambots and floodbots.

Users will be able to opt-out from this feature with UMODE +P and CMODE +P.

-Kobi.

* Bug fix for the PCRE regex check (thanks RuneB!)

* Made SpamFilter KB/Help URL a config option.

* Change pcre's MyFree() call to pcre_free() since we're not using MyMalloc() and add a missing pcre_free() call (thanks RuneB!).

* Add the ability to disable SPAMFILTER.

This is to allow other networks who use bahamut to disable the spam filter feature if they wish.

-Kobi.

* Cosmetic change to the spamfilter warning message.

5 years agoFix modern compiler warnings and possible buffer overflows (#53)
Ryan Smith [Tue, 11 Sep 2018 16:07:29 +0000 (12:07 -0400)] 
Fix modern compiler warnings and possible buffer overflows (#53)

5 years agoAdd support for eXtended Channel Flags (XCF). (#48)
Kobi Shmueli [Tue, 11 Sep 2018 16:07:12 +0000 (19:07 +0300)] 
Add support for eXtended Channel Flags (XCF). (#48)

Extended channel flags will be controlled by servics via the SVSXCF command.

Settings:
  JOIN_CONNECT_TIME - Number of seconds the user must be online to be able to join
  TALK_CONNECT_TIME - Number of seconds the user must be online to be able to talk on the channel
  TALK_JOIN_TIME    - Number of seconds the user must be on the channel to be able to tlak on the channel
  MAX_BANS          - Will let us increase the ban limit for specific channels

1/0 (on/off) options:
  NO_NOTICE         - no notices can be sent to the channel (on/off)
  NO_CTCP           - no ctcps can be sent to the channel (on/off)
  NO_PART_MSG       - no /part messages (on/off)
  NO_QUIT_MSG       - no /quit messages (on/off)
  EXEMPT_OPPED      - exempt opped users (on/off)
  EXEMPT_VOICED     - exempt voiced users (on/off)
  EXEMPT_IDENTD     - exempt users with identd (on/off)
  EXEMPT_REGISTERED - exempt users with umode +r (on/off)
  EXEMPT_INVITES    - exempt users who are +I'ed (on/off)

Special option:
  GREETMSG - A message that will be sent when a user joins the channel
  DEFAULT  - Reset the channel flags back to the default values

-Kobi.

5 years agoSSL certificate chain fixes and HUP rehash sanity checks (#54)
Ryan Smith [Tue, 11 Sep 2018 16:06:38 +0000 (12:06 -0400)] 
SSL certificate chain fixes and HUP rehash sanity checks (#54)

* Fix modern compiler warnings and possible buffer overflows

* Need to load the full certificate chain for validation to work properly

* Allow kill -HUP to refresh SSL certificates; add more sanity checking to rehashing SSL to ensure the certificate files still exist on disk and that the certificate belongs to the private key; do not actually swap out the SSL CTX unless all checks pass

5 years agoRemove a mhost set that isn't really needed. (#44)
Kobi Shmueli [Tue, 28 Aug 2018 02:11:38 +0000 (05:11 +0300)] 
Remove a mhost set that isn't really needed. (#44)

5 years agoLet IRC Operators (both local and global) see cmode +j's settings with /mode #channel...
Kobi Shmueli [Tue, 28 Aug 2018 02:11:21 +0000 (05:11 +0300)] 
Let IRC Operators (both local and global) see cmode +j's settings with /mode #channel from outside the channel in addition to +l. (#45)

5 years agoRevert "Increase MAXBANS from 200 to 500 per user requests, admin discussion …" ...
Kobi Shmueli [Tue, 28 Aug 2018 02:09:52 +0000 (05:09 +0300)] 
Revert "Increase MAXBANS from 200 to 500 per user requests, admin discussion …" (#49)

5 years agoResend the nicklist to a client in auditorium mode. (#50)
crigler [Tue, 28 Aug 2018 02:06:49 +0000 (19:06 -0700)] 
Resend the nicklist to a client in auditorium mode. (#50)

When auditorium mode is set and someone is opped or voiced, their client
will start to see messages from previously hidden clients and could get
confused about which window those messages should go to.

Fix this by sending a set of fake KICK/JOIN/NAMES messages to the newly
opped/voiced client to update the client's idea of who is in the
channel.

5 years agoExempt IRC Operators from the auditorium mode (cmode +A). (#52)
Kobi Shmueli [Sun, 26 Aug 2018 17:56:41 +0000 (20:56 +0300)] 
Exempt IRC Operators from the auditorium mode (cmode +A). (#52)

* Exempt IRC Operators from the auditorium mode (cmode +A).

(requested by toolman)

-Kobi.

* Don't exempt IRC Operators from not being able to talk on auditorium channels (cmode +A), just let them see all users/joins/parts/mode changes.

5 years agoSmall fix (HOSTLEN --> HOSTIPLEN) (#39)
Kobi Shmueli [Wed, 22 Aug 2018 05:06:35 +0000 (08:06 +0300)] 
Small fix (HOSTLEN --> HOSTIPLEN) (#39)

5 years agoAutomatically build & install modules if they exist. (#40)
Kobi Shmueli [Wed, 22 Aug 2018 05:00:23 +0000 (08:00 +0300)] 
Automatically build & install modules if they exist. (#40)

6 years agoUser host-masking & friends (take #2) (#31)
Kobi Shmueli [Mon, 23 Apr 2018 04:40:10 +0000 (07:40 +0300)] 
User host-masking & friends (take #2) (#31)

* Added USER_HOSTMASKING definition to include/config.h.

* Added UMODE +H.
When enabled, the user's host will be masked.
This umode is enabled by default if user host-masking support is defined.

-Kobi.

* Added the foundation for user host-masking support.

* Added user host-masking support to WHOIS (opers can still see the real host/ip).

* Added user host-masking support to USERHOST.
Notes:
- Users can see their own real hosts (to prevent DCC issues on some clients).
- Opers can see real hosts for everyone.

-Kobi.

* Added user host-masking support to WHOWAS (opers can still see the real host/IP).

* Changed SVSHOST to use mhost and propgate it on server connects.

* Added user host-masking support to channel bans/invites/exempts.

* Added user host-masking support to STATS l & p.

* Added user host-masking support to WHO.

* Added user host-masking support to WATCH.

* Added user host-masking support for a few src/send.c functions:
- prefix_buffer()
- send_quit_to_common_channels()
- send_part_to_common_channels()
- sendto_prefix_one()
- vsendto_prefix_one()

-Kobi.

* typo fix!

* Made WATCH L respect umode +H and mask the user's host if needed.

* Made KILL respect umode +H and mask the user's host if needed.

* Made DCCALLOW LIST respect umode +H and mask the user's host if needed.

* Added module hook for WHOIS.

* Added SVSUHM command to let services control what user host-masking type we are using.

* A few user host-masking related changes:
- Added module hook for masking hosts.
- Made mask_host() call the maskhost hook.
- Made mask_host() use uhm_type.
- Changed do_user() to only set & allow UMODE_H if uhm_type is defined.
- Changed m_umode() to only allow umode +H if uhm_type is defined.

-Kobi.

* Updated version.c.SH (Kobi --> Kobi_S & added RuneB).

* Added WHO +R to let opers choose if they want to see real hosts or not.

* Don't let non-opers see the real hosts/IPs for masked users with TRACE.

* Changed check_dccsend() to show the masked host/IP for umode +H users.

* Added USER_HOSTMASKING define checks to src/channel.c.

* Added USER_HOSTMASKING define checks to src/s_user.c.

* Added USER_HOSTMASKING define check to src/m_stats.c.

* Oops, typo fix.

* Added skill to version.c.SH.

* Let's only mask the host if the masking module returned 1 (Success).

-Kobi.

* Changed call_hooks()'s logic when handling hostmasking modules.

Possible results by the module:
1 = Success, the host has been masked (so don't try other modules).
0 = Failure, the host wasn't masked but try other modules (maybe they will mask the host).
-2 (FLUSH_BUFFER) = Failure, the host wasn't masked but *don't* try other modules.

-Kobi.

* Added defines for the user host-masking module's hooking results.

6 years agoChanged STATS o/c/i output to be in human-readable format. (#35)
Kobi Shmueli [Tue, 10 Apr 2018 14:52:52 +0000 (17:52 +0300)] 
Changed STATS o/c/i output to be in human-readable format. (#35)

6 years agom_trace(): add missing argument to RPL_TRACESERVER required for the %ld conversion...
Michael Wobst [Sun, 25 Mar 2018 22:26:40 +0000 (00:26 +0200)] 
m_trace(): add missing argument to RPL_TRACESERVER required for the %ld conversion specifier (#32)

6 years agoAdd travisCI (#30)
Emilio A. Escobar [Wed, 21 Mar 2018 03:18:31 +0000 (20:18 -0700)] 
Add travisCI (#30)

* fixing comments

* install and run autoconf

* run autoconf as part of before script section

* test with trusty and sudo

* install autoconf from apt

* run autoreconf instead

* install libtool and automake

* run automake to add missing files

* do not run make test for now

* skip install test, notify via IRC

* do not use automake, install shtool instead

* generate script to run autotools from

6 years agofix travis syntax
Emilio Escobar [Tue, 20 Mar 2018 02:22:14 +0000 (19:22 -0700)] 
fix travis syntax

6 years agoAdded travis CI file
Emilio Escobar [Tue, 20 Mar 2018 02:12:03 +0000 (19:12 -0700)] 
Added travis CI file

6 years agodo not ignore travis.yml
Emilio Escobar [Tue, 20 Mar 2018 02:10:51 +0000 (19:10 -0700)] 
do not ignore travis.yml

6 years agoMerge pull request #24 from kobishmueli/master
Aaron Wiebe [Mon, 19 Mar 2018 21:40:01 +0000 (17:40 -0400)] 
Merge pull request #24 from kobishmueli/master

Let server admins (and u:lined servers) see more info with /info

6 years agoMerge pull request #26 from rscs/maxbans-increase
Aaron Wiebe [Mon, 19 Mar 2018 21:39:17 +0000 (17:39 -0400)] 
Merge pull request #26 from rscs/maxbans-increase

Increase MAXBANS from 200 to 500 per user requests, admin discussion …

6 years agoMerge pull request #27 from rscs/openssl-1.1.0-compat
Aaron Wiebe [Mon, 19 Mar 2018 21:38:49 +0000 (17:38 -0400)] 
Merge pull request #27 from rscs/openssl-1.1.0-compat

Allow bahamut to be compiled against OpenSSL versions >= 1.1.0

6 years agoFix compile warning
Ryan Smith [Thu, 22 Feb 2018 04:24:48 +0000 (23:24 -0500)] 
Fix compile warning

6 years agoAllow bahamut to be compiled against OpenSSL versions >= 1.1.0
Ryan Smith [Thu, 22 Feb 2018 03:30:10 +0000 (22:30 -0500)] 
Allow bahamut to be compiled against OpenSSL versions >= 1.1.0
while maininting backwards compatability with the 1.0.x series by using the recommended OpenSSL Compatability Layer: https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes

6 years agoIncrease MAXBANS from 200 to 500 per user requests, admin discussion lead by Profound...
Ryan Smith [Thu, 22 Feb 2018 03:24:33 +0000 (22:24 -0500)] 
Increase MAXBANS from 200 to 500 per user requests, admin discussion lead by Profound, and coders discussion

6 years agoLet server admins (and u:lined servers) see more info with /info: OS, socket engine...
Kobi Shmueli [Wed, 25 Oct 2017 23:15:48 +0000 (02:15 +0300)] 
Let server admins (and u:lined servers) see more info with /info: OS, socket engine type, maxconnections, etc.

8 years agoMerge pull request #18 from bclaghorn/patch-1
Aaron Wiebe [Sat, 13 Feb 2016 16:16:50 +0000 (11:16 -0500)] 
Merge pull request #18 from bclaghorn/patch-1

Update opers.txt

8 years agoMerge pull request #17 from rscs/master
Aaron Wiebe [Sat, 13 Feb 2016 16:15:11 +0000 (11:15 -0500)] 
Merge pull request #17 from rscs/master

Allow U-lined servers to remove all network-wide bans in case of an emergency

8 years agoMerge pull request #19 from bclaghorn/patch-2
Aaron Wiebe [Sat, 13 Feb 2016 16:13:59 +0000 (11:13 -0500)] 
Merge pull request #19 from bclaghorn/patch-2

Default creation of .smotd

8 years agoUpdate opers.txt
Bradley Claghorn [Wed, 30 Dec 2015 02:56:26 +0000 (21:56 -0500)] 
Update opers.txt

8 years agoUpdate Makefile.in
Bradley Claghorn [Wed, 9 Dec 2015 01:00:30 +0000 (20:00 -0500)] 
Update Makefile.in

8 years agoDefault creation of ircd.smotd added.
Bradley Claghorn [Wed, 9 Dec 2015 00:50:18 +0000 (19:50 -0500)] 
Default creation of ircd.smotd added.

8 years agoUpdate opers.txt
Bradley Claghorn [Wed, 9 Dec 2015 00:14:11 +0000 (19:14 -0500)] 
Update opers.txt

Added the forgotten umode +S and added SSL to the list of Rehash commands available.

8 years agoAllow U-lined servers to remove all network-wide bans in case of an emergency
Ryan Smith [Sun, 6 Dec 2015 23:20:59 +0000 (18:20 -0500)] 
Allow U-lined servers to remove all network-wide bans in case of an emergency

10 years agoMerge pull request #13 from DALnet/master
Aaron Wiebe [Tue, 24 Dec 2013 18:28:48 +0000 (10:28 -0800)] 
Merge pull request #13 from DALnet/master

Fixed m_message() to compile with old gcc 2.x (i.e. for FreeBSD 4.x).

10 years agoFixed m_message() to compile with old gcc 2.x (i.e. for FreeBSD 4.x).
Kobi Shmueli [Tue, 24 Dec 2013 02:50:21 +0000 (04:50 +0200)] 
Fixed m_message() to compile with old gcc 2.x (i.e. for FreeBSD 4.x).