Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-05-20 14:50:37 UTC
Modified files:
Tag: u2_10_12_branch
ircd/ircd_features.c ChangeLog
Log message:
Fix SF#1706004 by reporting the new value after /set and /reset.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.190 ircu2.10/ChangeLog:1.710.2.191
--- ircu2.10/ChangeLog:1.710.2.190 Sun May 20 07:40:33 2007
+++ ircu2.10/ChangeLog Sun May 20 07:50:27 2007
@@ -1,5 +1,11 @@
2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/ircd_features.c (feature_set): Report new value of feature
+ for /set.
+ (feature_reset): Likewise, for /reset.
+
+2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/m_burst.c (netride_modes): Return -1 if someone tries to
remove modes in the burst.
(ms_burst): Check for, and handle, that protocol violation.
Index: ircu2.10/ircd/ircd_features.c
diff -u ircu2.10/ircd/ircd_features.c:1.50.2.7
ircu2.10/ircd/ircd_features.c:1.50.2.8
--- ircu2.10/ircd/ircd_features.c:1.50.2.7 Fri Mar 16 20:48:49 2007
+++ ircu2.10/ircd/ircd_features.c Sun May 20 07:50:27 2007
@@ -18,7 +18,7 @@
*/
/** @file
* @brief Implementation of configurable feature support.
- * @version $Id: ircd_features.c,v 1.50.2.7 2007/03/17 03:48:49 klmitch Exp $
+ * @version $Id: ircd_features.c,v 1.50.2.8 2007/05/20 14:50:27 entrope Exp $
*/
#include "config.h"
@@ -590,6 +590,9 @@
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
+
+ if (from)
+ return feature_get(from, fields, count);
}
return 0;
@@ -653,6 +656,9 @@
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
+
+ if (from)
+ return feature_get(from, fields, count);
}
return 0;
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches