Module: ngircd.git
Branch: master
Commit: edab86e0f843dc07815477e25a0a6184d7500120
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=edab86e0…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 3 20:37:41 2012 +0100
Display correct error message when "Server{UID|GID}" is invalid
This partly closes bug #118. ngIRCd still starts up even when
Server{UID|GID} is invalid: then the daemon falls back to "nobody"
when running with root(0) privileges (as before).
---
src/ngircd/conf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index b0c7fb4..f18016b 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -1308,7 +1308,9 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
else {
Conf_GID = (unsigned int)atoi(Arg);
if (!Conf_GID && strcmp(Arg, "0"))
- Config_Error_NaN(Line, Var);
+ Config_Error(LOG_WARNING,
+ "%s, line %d: Value of \"%s\" is not a valid group name or ID!",
+ NGIRCd_ConfFile, Line, Var);
}
return;
}
@@ -1319,7 +1321,9 @@ Handle_GLOBAL( int Line, char *Var, char *Arg )
else {
Conf_UID = (unsigned int)atoi(Arg);
if (!Conf_UID && strcmp(Arg, "0"))
- Config_Error_NaN(Line, Var);
+ Config_Error(LOG_WARNING,
+ "%s, line %d: Value of \"%s\" is not a valid user name or ID!",
+ NGIRCd_ConfFile, Line, Var);
}
return;
}
Module: ngircd.git
Branch: master
Commit: ab188c148659959060fb7a27ffa00214093ced6f
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=ab188c14…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 3 18:56:31 2012 +0100
README: point to included COPYING file, not gnu.org
---
README | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README b/README
index 53b4205..f9b3662 100644
--- a/README
+++ b/README
@@ -14,9 +14,10 @@ I. Introduction
ngIRCd is an Open Source server for the Internet Relay Chat (IRC), which
is developed and published under the terms of the GNU General Public
-Licence (URL: http://www.gnu.org/licenses/gpl.html). ngIRCd means "next
-generation IRC daemon", it's written from scratch and not deduced from the
-"grandfather of IRC daemons", the daemon of the IRCNet.
+Licence, see the file COPYING for details. ngIRCd means "next generation
+IRC daemon" (which is a little bit exaggerated, "lightweight Internet Relay
+Chat server" would be better), it's written from scratch and not deduced
+from the "grandfather of IRC daemons", the daemon of the IRCNet.
Please see the INSTALL document for installation and upgrade information!
Module: ngircd.git
Branch: master
Commit: 5eb9f2e7172620874d5ad4c247b82fc2aee3ac1b
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=5eb9f2e7…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Jan 3 11:30:45 2012 +0100
Update Copyright notices for 2012
---
AUTHORS | 2 +-
INSTALL | 2 +-
NEWS | 2 +-
README | 2 +-
src/ngircd/ngircd.c | 4 ++--
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 03a19dd..241d3a4 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/
- (c)2001-2011 Alexander Barton and Contributors.
+ (c)2001-2012 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.
diff --git a/INSTALL b/INSTALL
index 99fe33d..45ebe99 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/
- (c)2001-2011 Alexander Barton and Contributors.
+ (c)2001-2012 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.
diff --git a/NEWS b/NEWS
index 3a8d1c5..d44b4a8 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/
- (c)2001-2011 Alexander Barton and Contributors.
+ (c)2001-2012 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.
diff --git a/README b/README
index 888385c..53b4205 100644
--- a/README
+++ b/README
@@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/
- (c)2001-2011 Alexander Barton and Contributors.
+ (c)2001-2012 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
index 3e64f35..a1f1d88 100644
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -1,6 +1,6 @@
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2011 Alexander Barton (alex(a)barton.de) and Contributors.
+ * Copyright (c)2001-2012 Alexander Barton (alex(a)barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -424,7 +424,7 @@ static void
Show_Version( void )
{
puts( NGIRCd_Version );
- puts( "Copyright (c)2001-2011 Alexander Barton (<alex(a)barton.de>) and Contributors." );
+ puts( "Copyright (c)2001-2012 Alexander Barton (<alex(a)barton.de>) and Contributors." );
puts( "Homepage: <http://ngircd.barton.de/>\n" );
puts( "This is free software; see the source for copying conditions. There is NO" );
puts( "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." );
Module: ngircd.git
Branch: master
Commit: 565523cbb4a5e2f34d584002916faba411a94187
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=565523cb…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Jan 2 15:23:17 2012 +0100
Don't stop join handling on faulty channel, skip it
When JOIN is received with more than one channel name, don't stop
processing on the first error (e.g. bad name, wrong channel key, ...)
but report an error and continue with the other given channel names.
Reported by Cahata -- thanks!
---
src/ngircd/irc-channel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c
index a41f1d4..6ddad88 100644
--- a/src/ngircd/irc-channel.c
+++ b/src/ngircd/irc-channel.c
@@ -401,7 +401,7 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
/* Join channel (and create channel if it doesn't exist) */
if (!Channel_Join(target, channame))
- break;
+ goto join_next;
if (!chan) { /* channel is new; it has been created above */
chan = Channel_Search(channame);
@@ -420,6 +420,7 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
if (!join_send_topic(Client, target, chan, channame))
break; /* write error */
+ join_next:
/* next channel? */
channame = strtok_r(NULL, ",", &lastchan);
if (channame && key)