about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2013-02-15KICK: Fix denial of service bugSebastian Köhler
Test if the user that it is to be kicked is on the channel before user channel modes are tested. Otherwise assert( cl2chan != NULL ); in line 742 would fail and stop the service.
2013-02-13sighandlers.c: Update some log messagesAlexander Barton
2013-02-11my_sd_listen_fds(): really return an "int"Alexander Barton
This fixes the following warning using Apple LLVM version 4.2 (clang-425.0.24) on OS X: src/ngircd/conn.c:157:9: Implicit conversion loses integer precision: 'long' to 'int'
2013-02-11Merge branch 'bug155-allowAtInUser'Alexander Barton
* bug155-allowAtInUser: Allow "@" character in user names for authentication
2013-02-11Allow "@" character in user names for authenticationAlexander Barton
The "@" character isn't allowed in IRC usernames, because it is the separator between user name and hostname in IRC masks: <nickname>!<username>@<hostname> This patch accepts user names including "@" characters, saves the unmodified name for authentication but stores only the part in front of the "@" character as "IRC user name". And the latter is how ircd2.11, Bahamut, and irc-seven behave as well. Closes bug #155.
2013-02-10Merge branch 'systemd'Alexander Barton
* systemd: ngircd.sock: explicitely bind to IPv4 and IPv6 addresses Show address and port of sockets passed-in by systemd(8) Check type of sockets passed-in by systemd(8) Adjust severity levels of some log messages New configuration option "IdleTimeout": exit daemon when idle Implement support for systemd(8) "socket activation" contrib/README: add more files
2013-02-10ngircd.sock: explicitely bind to IPv4 and IPv6 addressesAlexander Barton
2013-02-10Show address and port of sockets passed-in by systemd(8)Alexander Barton
2013-02-10Check type of sockets passed-in by systemd(8)Alexander Barton
This patch makes sure that ngIRCd doesn't try to handle sockets of unsupported types, for example of AF_INET6 sockets when ngIRCd isn't compiled with support for IPv6 ...
2013-02-10Adjust severity levels of some log messagesAlexander Barton
2013-02-10Commands.txt: spelling fixes ...Alexander Barton
2013-02-10Merge branch 'HelpText'Alexander Barton
* HelpText: (22 commits) Commands.txt: Update description of the "USERS" command Commands.txt: Update description of the "SUMMON" command Commands.txt: Update description of the "SERVLIST" command Commands.txt: Update description of the "WHOWAS" command Commands.txt: Update description of the "WHOIS" command Commands.txt: Update description of the "WHO" command Commands.txt: Update description of the "VERSION" command Commands.txt: Update description of the "USERHOST" command Commands.txt: Update description of the "TIME" command Commands.txt: Update description of the "STATS" command Commands.txt: Update description of the "NAMES" command Commands.txt: Update description of the "MOTD" command Commands.txt: Update description of the "LUSERS" command Commands.txt: Update description of the "LINKS" command Commands.txt: Update description of the "ISON" command Commands.txt: Update description of the "INFO" command Commands.txt: Update description of the "ADMIN" command Commands.txt: Add description for the "CHARCONV" command Commands.txt: Add description for the "CAP" command Commands.txt: Import descriptions from "rbose/command_help" ...
2013-02-10Commands.txt: Update description of the "USERS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "SUMMON" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "SERVLIST" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "WHOWAS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "WHOIS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "WHO" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "VERSION" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "USERHOST" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "TIME" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "STATS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "NAMES" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "MOTD" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "LUSERS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "LINKS" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "ISON" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "INFO" commandAlexander Barton
2013-02-10Commands.txt: Update description of the "ADMIN" commandAlexander Barton
2013-02-08"WHO <hostmask>": use displayed hostname for matchingAlexander Barton
Use the currently "displayed hostname" (which can be cloaked!) for hostname matching, not the real one. In other words: don't display all the cloaked users on a specific real hostname! Thanks to DNS <dns@rbose.org> for reporting this issue.
2013-02-04New configuration option "IdleTimeout": exit daemon when idleAlexander Barton
This patch implements a new configuration option "IdleTimeout" in the [Limits] section of the configuration file which can be used to set a timeout (in seconds) after which the whole daemon will shutdown when no more connections are left active after handling at least one client. The default is 0, "never". This can be useful for testing or when ngIRCd is started using "socket activation" with systemd(8), for example.
2013-02-04Implement support for systemd(8) "socket activation"Alexander Barton
This patch enables ngIRCd to work with listening sockets already initialized and passed-in by systemd(8) and hereby to support on-demand "socket activation". systemd(8) uses two environment variables to pass information about the sockets to ngIRCd, LISTEN_PID and LISTEN_FDS, and this mechanism only kicks in when both variables are set. In all other cases, and therefore in most installations out there, nothing changes at all. Please note: If socket activation is in effect, ngIRCd will not initialize any (other) soeckets on its own! All sockets must be configured in the systemd(8) socket unit configuration file in this case, see ./contrib/ngircd.socket for example. Probably it would be interesting to match passed-in sockets to configured listening sockets and to initialize all the remaining ones not already set up by systemd(8), but this is kept back for an other patch ... See - <http://0pointer.de/blog/projects/socket-activation.html> - <http://0pointer.de/blog/projects/socket-activation2.html> - <http://www.freedesktop.org/software/systemd/man/systemd.socket.html>
2013-02-04contrib/README: add more filesAlexander Barton
2013-02-03Rename ports_initlisteners() to Init_Listeners()Alexander Barton
2013-02-03NewListener(): Code cleanupAlexander Barton
2013-02-03Enable WHOIS to display information about IRC ServicesAlexander Barton
This patch introduces the new numeric 310(RPL_WHOISSERVICE) and enables WHOIS to display information about IRC services. This numeric is used for this purpose by InspIRCd, for example -- but as usual, other numerics are in use, too, like 613 in UltimateIRCd ... Please note that neither the Operator (+o) not the "bot status" (+B) of an IRC service id displayed in the output. Change suggested by Federico G. Schwindt <fgsch@lodoss.net>, Thanks.
2013-02-03Commands.txt: Add description for the "CHARCONV" commandAlexander Barton
2013-02-03Commands.txt: Add description for the "CAP" commandAlexander Barton
2013-01-27Exit message: use singular & plural :-)Alexander Barton
2013-01-27autogen.sh: Check for autoconf/automake wrapper scriptsAlexander Barton
For example OpenBSD uses a "autoconf" and "automake" wrapper script which tells the user to set AUTOCONF_VERSION and AUTOMAKE_VERSION environment variables. This patch enhances autogen.sh to not detect these wrapper scripts as regular autoconf/automake commands but to set the required environment variables after detecting the real "command-X.Y" commands. Tested on OpenBSD 5.1.
2013-01-27autogen.sh: Don't use "egrep -o", use "sed"Alexander Barton
"egrep -o" isn't portable and not available on OpenBSD, for example. So let's use sed instead to get the automake version. The expression used now is less specific but should work as well ...
2013-01-27IRC_WHO_Channel(): Use strlcpy() instead of strcpy()Alexander Barton
This fixes the following warning, at least on OpenBSD 4.8: irc-info.o(.text+0x2427): In function `IRC_WHO': src/ngircd/irc-info.c:896: warning: strcpy() is almost always misused, please use strlcpy()
2013-01-26Streamline punctuation of log messagesAlexander Barton
Make sure that all log messages end with a correct punctuation mark. The rules for formatting log messages are: 1. Add punctuation marks to all messages passed to the actual logging functions like Log() and LogDebug(). 2. Don't add any punctuation marks to messages that are stored in variables for later use or are passed over the network. 3. IP addresses, DNS host names and IRC server names should be quoted. 4. Messages originating in the network should be quoted (at least if they are "untrusted" or variable). Most probably this patch doesn't fix all mistakes, but it should be a good starting point ...
2013-01-24configure: "netinet/in_systm.h" is optionalAlexander Barton
The header file "netinet/in_systm.h" already is optional in ngIRCd, so don't require it in the configure script. Now ngIRCd can be built on Minix 3 again :-)
2013-01-23contrib/Debian/rules: Do no compress Commands.txtDNS
This is required, because ngIRCd can't use a compressed file as help text ... (cherry picked from commit 6d09b4f366f656f6d2732ea96a653e086380e458)
2013-01-23AUTHORS: Update list of contributorsAlexander Barton
2013-01-23AUTHORS: Use "email address syntax"Alexander Barton
2013-01-23Commands.txt: Import descriptions from "rbose/command_help"Alexander Barton
Import command description texts from the "rbose/command_help" branch, which have been written by DNS <dns@rbose.org> -- thanks a lot!
2013-01-23Commands.txt: Reorder some commandsAlexander Barton
Reorder some commands and introduce new section "Connection Handling". Idea by DNS <dns@rbose.org>, thanks!
2013-01-23Commands.txt: Fix some wording and spellingAlexander Barton