Module: ngircd.git
Branch: master
Commit: 20ddffca0d5ae5393adc57b67ba90e15d33e2ee3
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=20ddffca…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Dec 31 18:13:18 2012 +0100
Mode setting: only check channel user modes when on channel
Only check the channel user modes of the initiator if he is joined to
this channel and not an IRC operator enforcing modes (which requires
the configuration option "OperCanUseMode" to be enabled), because trying
to check channel user modes of a non-member results in this assertion:
Assertion failed: (cl2chan != NULL), function Channel_UserModes,
file channel.c, line 742.
This closes bug #147, thanks to James Kirwill <james.kirwill(a)bk.ru>
for tracking this down!
---
src/ngircd/irc-mode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c
index 3221997..a63a0f4 100644
--- a/src/ngircd/irc-mode.c
+++ b/src/ngircd/irc-mode.c
@@ -550,7 +550,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel)
if (arg_arg >= Req->argc)
arg_arg = -1;
- if(!is_machine) {
+ if(!is_machine && !is_oper) {
o_mode_ptr = Channel_UserModes(Channel, Client);
while( *o_mode_ptr ) {
if ( *o_mode_ptr == 'q')
Module: ngircd.git
Branch: master
Commit: 1e5a7aac877f2b5d105d8cb291b107217b140632
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1e5a7aac…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Dec 25 19:13:55 2012 +0100
Makefiles: Correctly quote sed expressions
Now the Makefiles support spaces in "$sysconfdir", which isn't uncommon
for Cygwin for example, when $HOME contains whitespaces ("/home/User Name")
and ngIRCd is installed into the user home ("./configure --prefix=$HOME").
---
doc/Makefile.am | 2 +-
man/Makefile.am | 21 +++++++++------------
2 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index cd51d7f..2b9b3aa 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -11,7 +11,7 @@
.tmpl:
$(AM_V_GEN)sed \
- -e s@:ETCDIR:@${sysconfdir}@ \
+ -e "s@:ETCDIR:@${sysconfdir}@" \
<$< >$@
SUFFIXES = .tmpl
diff --git a/man/Makefile.am b/man/Makefile.am
index 5624e2a..077d0ea 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,15 +1,12 @@
#
# ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001,2002 by Alexander Barton (alex(a)barton.de)
+# Copyright (c)2001-2012 Alexander Barton (alex(a)barton.de) and Contributors
#
-# Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
-# der GNU General Public License (GPL), wie von der Free Software Foundation
-# herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
-# der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
-# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
-# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
-#
-# $Id: Makefile.am,v 1.6 2006/12/25 16:13:26 alex Exp $
+# 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# Please read the file COPYING, README and AUTHORS for more information.
#
TEMPLATE_MANS = ngircd.conf.5.tmpl ngircd.8.tmpl
@@ -18,9 +15,9 @@ SUFFIXES = .tmpl .
.tmpl:
$(AM_V_GEN)sed \
- -e s@:SBINDIR:@${sbindir}@ \
- -e s@:BINDIR:@${bindir}@ \
- -e s@:ETCDIR:@${sysconfdir}@ \
+ -e "s@:SBINDIR:@${sbindir}@" \
+ -e "s@:BINDIR:@${bindir}@" \
+ -e "s@:ETCDIR:@${sysconfdir}@" \
<$< >$@
man_MANS = ngircd.conf.5 ngircd.8
Module: ngircd.git
Branch: master
Commit: 92fba63ad88e0a3260c75468fb3407fae7074dc6
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=92fba63a…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Dec 25 18:49:28 2012 +0100
Add a cast in ForwardLookup() to fix a gcc warning on Cygwin
This fixes the following warning message of 4.5.3 on Cygwin:
resolve.c: In function ‘ForwardLookup’:
resolve.c:273:21: warning: comparison between signed and
unsigned integer expressions
---
src/ngircd/resolve.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ngircd/resolve.c b/src/ngircd/resolve.c
index c7e6003..3f99b3a 100644
--- a/src/ngircd/resolve.c
+++ b/src/ngircd/resolve.c
@@ -270,7 +270,7 @@ ForwardLookup(const char *hostname, array *IpAddr, int af)
for (a = ai_results; a != NULL; a = a->ai_next) {
assert(a->ai_addrlen <= sizeof(addr));
- if (a->ai_addrlen > sizeof(addr))
+ if ((size_t)a->ai_addrlen > sizeof(addr))
continue;
memcpy(&addr, a->ai_addr, a->ai_addrlen);
Module: ngircd.git
Branch: master
Commit: a445abc10eeaaf3a082188e13332fb1e2eba897e
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=a445abc1…
Author: Alexander Barton <alex(a)barton.de>
Date: Wed Dec 12 11:06:35 2012 +0100
Update NEWS and ChangeLog files
---
ChangeLog | 8 +++++++-
NEWS | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 34ea569..15a50a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,7 +9,13 @@
-- ChangeLog --
-ngIRCd
+ngIRCd 20
+
+ - Allow user names ("INDENT") up to 20 characters when ngIRCd has not
+ been configured for "strict RFC mode". This is useful if you are using
+ external (PAM) authenticaion mechanisms that require longer user names.
+ Patch suggested by Brett Smith <brett(a)w3.org>, see
+ <http://arthur.barton.de/pipermail/ngircd-ml/2012-October/000579.html>.
ngIRCd 20~rc2 (2012-12-02)
- Rework cloaked hostname handling and implement the "METADATA cloakhost"
diff --git a/NEWS b/NEWS
index ac50527..45df4a1 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,13 @@
-- NEWS --
-ngIRCd
+ngIRCd 20
+
+ - Allow user names ("INDENT") up to 20 characters when ngIRCd has not
+ been configured for "strict RFC mode". This is useful if you are using
+ external (PAM) authenticaion mechanisms that require longer user names.
+ Patch suggested by Brett Smith <brett(a)w3.org>, see
+ <http://arthur.barton.de/pipermail/ngircd-ml/2012-October/000579.html>.
ngIRCd 20~rc2 (2012-12-02)
- Rework cloaked hostname handling and implement the "METADATA cloakhost"