about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)Author
2011-03-28ngircd: improve rng initialisationFlorian Westphal
we do not need this for cryptographic purposes, but we can do better than plain srandom(getpid()). Also, keep in mind that rng state is inherited across fork(), so re-init it in the child.
2011-03-27Merge branch 'AuthPing'Alexander Barton
* AuthPing: Add documentation for "RequireAuthPing" configuration option New configuration option "RequireAuthPing": PING-PONG on login
2011-03-27New configuration option "RequireAuthPing": PING-PONG on loginAlexander Barton
When enabled, this configuration option lets ngIRCd send a PING with an numeric "token" to clients logging in; and it will not become registered in the network until the client responds with the correct PONG. This is used by QuakeNet for example (ircu/snircd), and looks like this: NICK nick :irc.example.net PING :1858979527 USER user . . :real name PONG 1858979527 :irc.example.net 001 nick :Welcome to the Internet Relay Network ...
2011-03-26Configuration: move "NoticeAuth" to GLOBAL sectionAlexander Barton
2011-03-25New configuration option "NoticeAuth": send NOTICE AUTH on connectAlexander Barton
When enabling "NoticeAuth" in the [Features] section, ngircd will send "NOTICE AUTH" messages on client connect like e.g. snircd (QuakeNet) does.
2011-03-25Warn when unknown variables are found in [Features] sectionAlexander Barton
2011-03-21Generate WALLOPS message on SQUIT from IRC operatorAlexander Barton
So SQUIT now behaves like CONNECT and DISCONNECT commands, when called by an IRC operator (and not received from an other server).
2011-03-21Commands received from other servers must have prefixesAlexander Barton
Make sure that all commands received from other servers do have valid prefixes. Only exceptions are PING and ERROR commands that can occure without prefixes when generated by the remote peer itself.
2011-03-21Allow servers to send more commands in the first 10 secodsAlexander Barton
This helps to speed up server login and network synchronisation.
2011-03-19IRC_CHANINFO(): Code cleanupAlexander Barton
2011-03-19Handle_GLOBAL(): don't use multi-line stringsAlexander Barton
They aren't supported by elder C compilers ...
2011-03-19Merge branches 'CloakUserHost', 'QuitOnHTTP' and 'bug72-WHOIS-List'Alexander Barton
* CloakUserHost: Add a note not to use a percent sign ("%") in CloakHost variable Rename ClientHost to CloakHost, and ClientUserNick to CloakUserToNick Don't use "the.net" in sample-ngircd.conf, use "example.net" ngircd.conf.5: document "ClientHost" and "ClientUserNick" Move "ClientHost" and "ClientUserNick" to end of [Global] section ClientUserNick setting ClientHost setting * QuitOnHTTP: Only "handle" HTTP commands on unregistered connections Don't use IRC_QUIT_HTTP() if STRICT_RFC is #define'd IRC_QUIT_HTTP(): enhance error message Move IRC_QUIT_HTTP() below IRC_QUIT() quit on HTTP commands: GET & POST * bug72-WHOIS-List: Add "whois-test" to testsuite and distribution archive Add support for up to 3 targets in WHOIS queries.
2011-03-19Rename ClientHost to CloakHost, and ClientUserNick to CloakUserToNickAlexander Barton
2011-03-19Add "whois-test" to testsuite and distribution archiveAlexander Barton
Test script proposed by Dana Dahlstrom, 2008-02-17. See <https://arthur.barton.de/bugzilla/show_bug.cgi?id=72> ...
2011-03-19Add support for up to 3 targets in WHOIS queries.Florian Westphal
also allow up to one wildcard query from local hosts. Follows ircd 2.10 implementation rather than RFC 2812. At most 10 entries are returned per wildcard expansion. WHOIS test cases by Dana Dahlstrom.
2011-03-17Only "handle" HTTP commands on unregistered connectionsAlexander Barton
2011-03-16Don't use IRC_QUIT_HTTP() if STRICT_RFC is #define'dAlexander Barton
2011-03-16IRC_QUIT_HTTP(): enhance error messageAlexander Barton
2011-03-16Move IRC_QUIT_HTTP() below IRC_QUIT()Alexander Barton
2011-03-16Move "ClientHost" and "ClientUserNick" to end of [Global] sectionAlexander Barton
2011-03-16ClientUserNick settingGabor Adam Toth
2011-03-16ClientHost settingGabor Adam Toth
2011-03-16quit on HTTP commands: GET & POSTGabor Adam Toth
2011-02-28channel: always reject zero-length channel keyFlorian Westphal
previously, any client could join in this configuration: [Channel] Name = #test Modes = tnk KeyFile = /tmp/foobar fix this by checking for zero-length key before comparing key to channel key.
2011-02-23PAM-Auth child: log if result can't be reportedAlexander Barton
This fixes the followin GCC warning on modern Linux systems as well: irc-login.c: In function ‘Hello_User’: irc-login.c:876: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
2011-02-14Correctly detect errors when handling "MODE x" commandsAlexander Barton
2011-02-13Enhance documentation for the WEBIRC commandAlexander Barton
2011-02-13Doxygen'ify irc-login.cAlexander Barton
2011-02-13Doxygen'ify irc-channel.cAlexander Barton
2011-02-13Doxygen'ify conn.cAlexander Barton
2011-02-13Doxygen'ify proc.hAlexander Barton
2011-02-13Doxygen'ify parse.hAlexander Barton
2011-02-13Doxygen'ify and update comments in ngircd.{c|h}Alexander Barton
2011-02-13Doxygen'ify and update comments in match.cAlexander Barton
2011-02-13Update and translate comments in hash.cAlexander Barton
2011-02-13Doxygen'ify conf.hAlexander Barton
2011-02-13Add missong Doxygen @file tags to ngircd.h and irc-op.hAlexander Barton
2011-02-13Code cleanup: mostly removing empty linesAlexander Barton
2011-02-13Add Doxygen @file documentation to each source and header fileAlexander Barton
2011-02-12Make write buffers bigger, but flush earlyAlexander Barton
This patch - makes the server write buffer bigger: 64k, - makes the regular write buffer bigger: 32k, - tries to flush the write buffer starting at 4K. Before this patch, a client got disconnected if the buffer flushing at 4k failed, now regular clients can store up to 32k and servers up 64k even if flushing is not possible at the moment (e.g. on slow links).
2011-02-12Enhance logging on "write buffer overflow"Alexander Barton
2011-01-29Clean up Validate_Prefix(); don't send punctuation in ERROR commandsAlexander Barton
2011-01-23Better check for invalid IRC+ PASS commandAlexander Barton
Don't do a NULL-pointer dereference when a remote server using the IRC+ protocol sends an invalid PASS command without the required <serverversion> parameter ...
2011-01-23Read_Request(): don't access possibly free'd CLIENT structureAlexander Barton
Handle_Buffer() can shut down connections and remove clients, so after calling it, we have to make sure that our CLIENT pointer is still valid.
2011-01-19ngircd-test2.conf: really disable Ident and PAM ...Alexander Barton
2011-01-18Log "Can't read MOTD file" as "configuration error"Alexander Barton
Now this error message is displayed in the console without debug prefix when running the configuration test (--configtest).
2011-01-18Allow "Port = 0" in [Server] blocksAlexander Barton
Port number 0 marks remote servers that try to connect to this daemon, but where this daemon never tries to establis a connection on its own: only incoming connections are allowed.
2011-01-18conf: fix 'Value of "..." is not a number!' for negative valuesAlexander Barton
Don't use isdigit() function any more, because it only checks the first character of the variable value and because it doesn't know about the minus sign which is required e.g. for "Group = -1".
2011-01-18Don't read MOTD file twiceAlexander Barton
The MOTD file is read in Read_Config(), so don't read it when handling the "MotdFile" configuration variable. Instead make sure that it is initialized properly when (re-)reading the configuration.
2011-01-18Add [Features] section to ngircd-test{1|2}.confAlexander Barton
Fix commit 5a34bb203a: It is not enough to strip the "No" prefix from "Ident" and "PAM", but we have to introduce the new [Features] section to fix all warning messages of ngIRCd. Variables "Ident" and "PAM" in [Global] are completely wrong :-(