about summary refs log tree commit diff
AgeCommit message (Collapse)Author
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-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
2013-01-23ngircd.service: Use "forking" service typeAlexander Barton
Don't run ngIRCd in forground mode but let it daemonize itself. This enhances the log output of "systemctl status ngircd.service", because now ngIRCd doesn't print out its PID and timestamp on each log message which is redundant: it becomes logged by systemd/journald already.
2013-01-22Return better "Connection not registered as server link" errorsAlexander Barton
Now ngIRCd returns a more specific error message for numeric ERR_NOTREGISTERED(451) when a regular user tries to use a command that isn't allowed for users but for servers: ERR_NOTREGISTEREDSERVER(451).
2013-01-13MODE: don't report error on "more modes than parameters"Alexander Barton
Don't report ERR_NEEDMOREPARAMS(461) when a MDOE command with more modes than nicknames is handled, as well as for channel limit and key changes without specifying the limit or key parameters. This is how a lot (all?) other IRC servers behave, including ircd2.11, InspIRCd, and ircd-seven. And because of clients (tested with Textual and mIRC) sending bogus MODE commands like "MODE -ooo nick", end-users got the expected result as well as correct but misleading error messages ... If ngIRCd is compiled using "strict mode", these errors are still reported. Reported-by: Tim <tim@stackwatch.net>
2013-01-07Correctly detect when SSL subsystem must be initializedAlexander Barton
This patch introduces the new function Conf_SSLInUse() to check when the current server configuration requires the SSL subsystem to be initialized and accounts incoming as well as outgoing connections -- so this fixes commit bb20aeb9 ("Initialize SSL when needed only, and disable SSL on errors") which only handled the inbound case ... Tested-by: Brett Smith <brett@w3.org>
2013-01-06configure: use AS_HELP_STRING for --with-iconvAlexander Barton
2013-01-05autogen.sh: Enforce serial test harness on automake >=1.13Alexander Barton
2013-01-05autogen.sh: Reformat messages.Alexander Barton
2013-01-02Merge branch 'bug145-ProvideHelp'Alexander Barton
* bug145-ProvideHelp: Use "${docdir}/Commands.txt" as help text file Add a note that "help file" is updated on startup and REHASH only Add doc/Commands.txt which should document all commands Implement Help() function parsing and returning the help text Document "HelpFile" in sample-ngircd.conf and ngircd.conf.5 Implement new configuration option "HelpFile" IRC_HELP(): Code cleanup Refactor Read_Motd() into Read_TextFile()
2013-01-02ngIRCd Release 20.1 rel-20.1Alexander Barton
2013-01-01Use "${docdir}/Commands.txt" as help text fileAlexander Barton
2013-01-01Update Copyright notices for 2013Alexander Barton
2013-01-01Add a note that "help file" is updated on startup and REHASH onlyAlexander Barton
2013-01-01Add doc/Commands.txt which should document all commandsAlexander Barton
This document can be used as "help text", too, see configuration option "HelpFile" in ngircd.conf(5). Please note that this file in its current state is far from complete, only a few commands are documented, but you should get an idea how it works. So please send in patches adding the remaining parts! :-)
2013-01-01Implement Help() function parsing and returning the help textAlexander Barton
This function parses the already read in help text and sends the requested portions to the user. Parsing is done as following when a user user issues a "HELP <cmd>" command: 1. Search the file for a line "- <cmd>", 2. Output all subsequent lines that start with a TAB (ASCII 9) character to the client using NOTICE commands, treat lines containing a single "." after the TAB as empty lines. 3. Break at the first line not starting with a TAB character. This format allows to have information to each command stored in this file which will not be sent to an IRC user requesting help which enables us to have additional annotations stored here which further describe the origin, implementation details, or limits of the specific command. A special "Intro" block is returned to the user when the HELP command is used without a command name.