| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Add Channel_HasMode() and Channel_UserHasMode() and use it where
possible.
|
|
|
|
* bug152-AllowedChannelTypes:
Implement new configuration option "AllowedChannelTypes"
Introduce "CHANTYPES" #define
|
|
The new configuration variable "AllowedChannelTypes" lists all allowed
channel types (channel prefixes) for newly created channels on the local
server. By default, all supported channel types are allowed.
If set to the empty string, local clients can't create new channels at
all, which equals the old "PredefChannelsOnly = yes" setting.
This patch deprecates the "PredefChannelsOnly" variable, too, but it is
still supported and translated to the apropriate "AllowedChannelTypes"
setting. When "PredefChannelsOnly" is processed, a warning message is
logged.
Closes bug #152.
|
|
Remove superflous comments, mostly in German. Fix spelling and
use american variants for consistency.
|
|
This shaves a few bytes when cloaked hostnames are not used and
restricts the cloakhost announcement iif there is something to
send.
|
|
|
|
|
|
|
|
Move Announce_User() to client.c and rename it to Client_Announce().
Use this in cb_introduceClient() instead of duplicating the code.
This fix the certificate fingerprint announcement for new clients.
Also ensure the certificate fingerprint is only announced if the
client supports it (`M' flag).
|
|
This #define lists all the prefix characters of all supported channel
types, this is "#&+" at the moment.
|
|
* fgsch/certfp:
Simplify MOTD handling
Add certificate fingerprint support
|
|
Merge Show_MOTD_Start, Show_MOTD_Sendline and Show_MOTD_End into
IRC_Show_MOTD.
|
|
|
|
And add some comments :-)
|
|
|
|
This includes code cleanups and more comments, too.
|
|
This includes code cleanups, too :-)
|
|
|
|
Add a 2 second penalty time when the number of parameters is invalid.
|
|
This patch changes the handlers of the "PASS", "NICK", "USER",
and "SERVICE" commands to enforce a 2 second penalty when an error
like "need more/other parameters" occurs.
More functions should follow, I think ...
|
|
This includes code cleanups, too :-)
|
|
This includes code cleanups and better documentation for some
functions, too.
|
|
If the target is a service, advertise it as such and ignore operator mode.
|
|
|
|
irc-info.c: some commands use LINE_LEN as command buffer len
|
|
LINE_LEN is configuration file line length
|
|
Now "IncludeDir" defaults to "$SYSCONFDIR/ngircd.conf.d" instead
of no directory, but a missing directory is only reported as an
error if it has explicitely configured in the main configuration
file and simply ignored otherwise.
Therefore it is now possible not to touch the default (sample)
configuration file at all, and set all distribution and/or system
specific configuration options in "*.conf" files stored in
"$SYSCONFDIF/ngircd.conf.d/".
Thanks to "Elmasloco" for the idea!
|
|
|
|
The option "IncludeDir" in the [Options] section can be used
to specify a directory which can contain further configuration
files and configuration file snippets matching the pattern
"*.conf" that should be read in after the main configuration
file ("ngircd.conf" by default) has been parsed.
Closes bug #157.
|
|
This function reads in and parses a single configuration file.
Adjust all other functions to display the correct name of the
file being read in currently.
|
|
This completes commit 3ab00e3a11 which broke debug builds.
|
|
As pointed by Alex while strl{cat,cpy} take the full length
we need to leave space to ensure a proper mask is always created
so revert the removal of - N from my last change.
|
|
|
|
Change callers accordingly so they don't rely on a global buffer and
rename Mask to Pattern where it makes sense since some functions
where indeed receiving a pattern and not a mask.
|
|
Change Lists_CheckReason() to receive a buffer where the reason
will be stored and its length. Change callers accordingly.
Change Class_GetMemberReason() (and its callers) in a similar way
so it doesn't rely on a global buffer for the rejected reason.
|
|
Look for possible cloaked Masks in Lists. Users with +x usermode can be
banned with their cloaked hostname now.
|
|
The Conn_Handler() main loop calls Handle_Buffer() which checks for the
"penalty time" of each client itself, so don't do it twice.
|
|
Fix the cb_clientserver_ssl() callback function to not read in and store SSL
encrypted client data before the asynchronous DNS resolver sub-process has
finished: This could have resulted in discarding the resolved client hostname
and IDENT reply afterwards, because in some situations (timing dependent) the
NICK and USER commands could have already been read in from the client,
stored in the buffer, and been processed.
Thanks to Julian Brost for reporting the issue and testing, and to Federico
G. Schwindt <fgsch@lodoss.net> for helping to debug it!
|
|
Closes bug #154.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
And remove now unnecessary (local) prototypes.
|
|
|