about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)Author
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-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 :-(
2011-01-18Enable WHOIS command to return information about servicesAlexander Barton
2011-01-18Update testsuite configuration: strip No... prefixesAlexander Barton
2011-01-16Add connection/socket information to some log messagesAlexander Barton
2011-01-10Implement channel mode 'O': "IRC operators only"Alexander Barton
This channel mode is used on DALnet (bahamut), for example.
2011-01-09Remove support for ZeroConf/Bonjour/Rendezvous service registrationAlexander Barton
2011-01-09TOPIC command: test for channel admin rights correctlyAlexander Barton
This enables other servers, services and IRC operators to change channel topics, even when the client is not joined to this channel. Now the handler for TOPIC behaves like the one for MODE.
2011-01-09Channel_CheckAdminRights(): test if client can admin a channelAlexander Barton
This generic function tests if a client is allowed to do administrative tasks to a specific channel: - servers and services are always truested ("allowed everything"), - channel operators are allowed, - IRC operarors are allowed if OperCanUseMode is set in the config.
2011-01-09conf: fix 'unknown section' FEATURES parse errorFlorian Westphal
pointed out by Alex: ngircd.conf, line 105: Unknown section "[Features]"!
2011-01-09IRC_TOPIC(): code cleanupAlexander Barton
2011-01-09conf: move 'run-time-feature-disable' options to new FEATURE sectionFlorian Westphal
2011-01-09array: remove check for allocated == 0Florian Westphal
allocated can only be zero if ->mem is NULL.
2011-01-09array: remove alignment of requested sizeFlorian Westphal
libc should know better than us. Also, this helps debugging with tools like valgrind: When you allocate an array of size x, and then erronoulsy use x+1 valgrind cannot detect the bug because due to ALIGN_() made by array.c we might have allocated more than size x...
2011-01-09conf: Warn if PAM=true when ngircd was built without PAM supportFlorian Westphal
2011-01-09conf: add missing static qualifierFlorian Westphal
internal helper, so it should be static. also, add UNUSED to 'Line'.
2011-01-09Update copyright notices for 2010 :)Alexander Barton
And update the NEWS and ChangeLog file as well.
2011-01-09Make NoZeroConf option work with HowlAlexander Barton
2011-01-09config: deprecate NoXX-OptionsFlorian Westphal
ngircd unfortunately uses several options using double-negation, e.g. NoIdent = No, NoPam = No, etc. This renames all options by dropping the "No" prefix, e.g. "NoIdent = no" becomes "Ident = yes". The old options will continue to work, but will cause a warning message. Also update man pages and default config. To prevent silly 'Ident = yes' from appearing in --configtest output in the 'ident support not compiled in and Ident Option not used' case, make default value depend on feature availability. If feature is available, enable by default, otherwise disable. We might consider moving these options to a new [Feature] section, or something like that, because none of these options are essential. Another possible improvement: 'Ident = yes' option in ngircd.conf causes a warning if ngircd was built without ident support. This does not happen with e.g. zeroconf....
2010-12-31channel: fix confusing "adding to invite list" debug outputFlorian Westphal
adding entries to ban list produced 'invite list' debug output...
2010-12-29Command throttling: introduce MAX_COMMANDS_SERVICEAlexander Barton
New MAX_COMMANDS_SERVICE (currently set to MAX_COMMANDS_SERVER[10]), so that services are handled like servers (and not regular users).
2010-12-29Don't throttle services and servers beeing registeredAlexander Barton
2010-12-24Don't assert() when serching a client for an invalid server tokenAlexander Barton
This is only relevant when a trusted server on a server-server link sends invalid commands.