about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)Author
2008-05-01Add support for modeless channelsAli Shemiran
Add support for modeless channels (+channels). [fw@strlen.de: - integrate test cases - don't support +channels when compiled with --strict-rfc - do not set +o mode for channel creator - force +nt mode when channel is created ]
2008-04-29--configtest: fix missing whitespace at "ConnectIPv4" option.Alexander Barton
2008-04-29Merge branch 'master' of git://git.breakpoint.cc/fw/ngircd-fwAlexander Barton
2008-04-29Testsuite: remove erroneous ConfUID setting in config file.Florian Westphal
The config file for ngircds test suite contained obsolete ConfUID/ConfGID settings, causing ngircd to needlesly complain when started as non-root (which is hopefully the _normal_ case...)
2008-04-25Get rid of cvs-version.* and CVSDATE definition.Alexander Barton
(cherry picked from commit b187fac244f4e14705f882ba7c43eef0238e2830)
2008-04-24Report ERR_NOTONCHANNEL when trying to part a channel one is not member of.Alexander Barton
When trying to part a channel ("PART #channel") the client is not member of the daemon now correctly reports the numeric ERR_NOTONCHANNEL (442) insted of ERR_NOSUCHCHANNEL (403).
2008-04-24Channel_Part(): Code and comment cleanup.Alexander Barton
2008-04-24IRC_PART(): code and comment cleanup.Alexander Barton
2008-04-21IPv6: Add config options to disabe ipv4/ipv6 support.Florian Westphal
This also enables ipv6-only setups.
2008-04-20Updated copyright notice to read "2001-2008".Alexander Barton
2008-04-19Channel_Mode: Remove duplicate code.Florian Westphal
Incidentially, this doesn't even change the generated code...
2008-04-19Channel_Mode: change order of if (set) and if (client) check.Florian Westphal
2008-04-19Channel_Mode: Re-indent switch.Florian Westphal
No functional changes were made.
2008-04-19Channel_Mode: check return type of Invite/Ban Add/Del functionFlorian Westphal
2008-04-19Channel_Mode: unify 'b' and 'I' switch/case handling.Florian Westphal
2008-04-19Channel_Mode: Unify Del_Invite and Del_Ban handlerFlorian Westphal
2008-04-19Constify Lists_MakeMask argument and return type.Florian Westphal
2008-04-19Channel_Mode: Unify Add_Invite and Add_Ban handlerFlorian Westphal
2008-04-09Added "portabtest" binary to .gitignore file in src/portabtest/.Alexander Barton
2008-04-09Moved .cvsignore files to .gitignoreAlexander Barton
Since we are using GIT starting from now, I converted all the .cvsignore files to .gitignore files.
2008-04-04Fix client.c sparse warnings.Florian Westphal
client.c:72:6: warning: symbol 'Max_Users' was not declared. Should it be static? client.c:72:21: warning: symbol 'My_Max_Users' was not declared. Should it be static?
2008-04-03io.c: kill select FD_SETSIZE sanity check in io_library_init.Florian Westphal
We already have way too many.
2008-04-03io.c: fix select FD_SETSIZE check when using epoll as io backendFlorian Westphal
2008-03-27io.c: try to cut down the number of ifdefs.Florian Westphal
consolidate backend-specific helpers and add empty statinc inle stubs in the ifndef case to let the compiler remove the functions at compile time.
2008-03-26Do not exit unconditionally if config file cannot be openedFlorian Westphal
ngircd will exit if the config file cannot be opened. While thats okay if ngircd starts up for the first time, it isn't when we are re-reading the config file after a /REHASH or SIGHUP.
2008-03-11Fix #include's: search log.h locally, include string.h. The latter is ↵Alexander Barton
required because we include conn.h, which includes resolve.h, which includes ng_ipaddr.h, which contains a macro using strlcpy() ...
2008-02-26IPv6 support.Florian Westphal
all references to struct sockaddr/in_addr have been removed from src/ngircd. libngipaddr (in src/ipaddr/) hides all the gory details. See src/ipaddr/ng_ipaddr.h for API description.
2008-02-26Fix sending of JOINs between servers.Rolf Eike Beer
This does hit only operators that join a channel with at least 2 servers active in the net the server the oper connects to sends "channel^Go" to the other servers the other server first searches for the channel and then strips the modes from the channel name he has to do the other way round: first strip and then check the channel name.
2008-02-26Channel_Mode cleanupsFlorian Westphal
- better indentation - move answering request into seperate function.
2008-02-26Removed the SQUIT test for now, actually we don't support it yet.Alexander Barton
2008-02-26Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy).Alexander Barton
2008-02-26Include flags in RPL_WHOREPLY messages.Dana Dahlstrom
RPL_WHOREPLY messages generated by IRC_WHO don't include flags (*,@,+) that should appear according to this description: http://www.mishscript.de/reference/rawhelp3.htm#raw352 Other IRC servers do include the flags. Modify who-test.e to expose missing flags, modify ngircd-test.conf to accommodate who-test.e, and fix irc-info.c to correct these problems.
2008-02-26Don't send trailing space in MODE messagesDana Dahlstrom
Under some circumstances ngIRCd currently issues a channel MODE message with a trailing space after the last parameter, which isn't permitted by the grammar in RFC 2812 section 2.3.1: http://tools.ietf.org/html/rfc2812#section-2.3.1 The following patch modifies mode-test.e to expose this, and modifies irc-mode.c to correct it.
2008-02-26IRC_JOIN cleanups.Florian Westphal
- put sending of mode and forwarding of JOIN to other clients into seperate function. - put sending of topic/channel names into seperate function. - put access check into seperate function. - translate/remove remaining german comments. - stop if JOIN to a channel in a list (JOIN #a,#,b,#c...) fails (This doesn't change the behaviour: skip-to-next-channel-on-error did never work as intended)
2008-02-26Make IRC_WHO also search username/servername/hostname.Florian Westphal
Dana Dahlstrom reported that IRC_WHO did not follow RFC 2812, Section 3.6.1. Specifically: - IRC_WHO did not send "G" flag instead if "H" if client was away - did not search username/servername/hostname etc. if argument was not a channel. Fix all of the above and tidy things up a bit. Also add IRC_WHO test script contributed by Dana.
2008-02-26Remove duplicate Channel_FirstChannelOf().Dana Dahlstrom
noticed there's a way to make the loop slightly more elegant. [fw@strlen.de: Extra () to silence gcc.]
2008-02-26Make Channel_Part name and reason parameters 'const'.Florian Westphal
2008-02-26Implement RFC 2812 handling of "0" argument to JOINDana Dahlstrom
The students in my software-engineering class are writing IRC clients in Java, and I'm running ngIRCd as a sandbox for them to play in. We noticed ngIRCd doesn't obey the "JOIN 0" command specified in RFC 2812: JOIN 0 ; Leave all currently joined channels. http://tools.ietf.org/html/rfc2812#section-3.2.1 I believe the following patch addresses this. Cheers! [fw@strlen.de: put it into a seperate function]
2008-02-26Don't use Client_Type after command has been processed.Florian Westphal
This caused a read from already free'd memory, if the processed command (IRC_QUIT) calls Client_Destroy.
2008-02-26Fix wrong strncpy usage if CVSDATE definedFlorian Westphal
Hello_User() used strncpy with overlapping src/dest. Use memmove instead.
2008-02-26This adds support for sending NOTICEs to a channel.Florian Westphal
[also see Bug #70 in ngircd bugzilla]. Based on a patch by Fabian Schlager <fabian.schlager@gmail.com>.
2008-01-13[Parser]: Fix minor sparse warningsFlorian Westphal
parse.c:56:9: warning: symbol 'My_Commands' was not declared. Should it be static? parse.c:107:9: warning: symbol 'My_Numerics' was not declared. Should it be static? Also move handling of numerics into a seperate helper function.
2008-01-07IRC_PART could reference invalid memory.Florian Westphal
2008-01-02[Resolver]: Use dotted-decimal IP address if hostname is >= 64Florian Westphal
2008-01-02io_event_disable: return if event-to-disable is already offFlorian Westphal
2007-12-27kqueue: check for EV_ERROR in .flagsFlorian Westphal
if kevent() returns events, check for EV_ERROR in event flags, too.
2007-12-13Fix format arg: ListenAddress was printed instead of Bind address.Florian Westphal
2007-12-13Fix format string in error path: didn't print strerror(errno)Florian Westphal
2007-12-11implement '/STAT u' (uptime)Florian Westphal
2007-12-07Fix fmt string: int, not longFlorian Westphal