Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2006-12-31 19:37:05 UTC
Modified files:
ChangeLog ircd/m_mode.c
Log message:
Fix a possible way for desyncs to propagate.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.827 ircu2.10/ChangeLog:1.828
--- ircu2.10/ChangeLog:1.827 Sat Dec 30 20:37:15 2006
+++ ircu2.10/ChangeLog Sun Dec 31 11:36:52 2006
@@ -1,3 +1,7 @@
+2006-12-31 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/m_mode.c (ms_mode): Bounce modes from deopped members.
+
2006-12-30 Michael Poole <[EMAIL PROTECTED]>
* ircd/ircd_string.c (ircd_strncpy): Make sure the output buffer
Index: ircu2.10/ircd/m_mode.c
diff -u ircu2.10/ircd/m_mode.c:1.20 ircu2.10/ircd/m_mode.c:1.21
--- ircu2.10/ircd/m_mode.c:1.20 Mon Jul 24 20:27:18 2006
+++ ircu2.10/ircd/m_mode.c Sun Dec 31 11:36:53 2006
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_mode.c,v 1.20 2006/07/25 03:27:18 entrope Exp $
+ * $Id: m_mode.c,v 1.21 2006/12/31 19:36:53 entrope Exp $
*/
#include "config.h"
@@ -164,7 +164,7 @@
MODE_PARSE_FORCE), /* And force it to be accepted */
NULL);
} else {
- if (!(member = find_member_link(chptr, sptr))) {
+ if (!(member = find_member_link(chptr, sptr)) || !IsChanOp(member)) {
modebuf_init(&mbuf, sptr, cptr, chptr,
(MODEBUF_DEST_SERVER | /* Send mode to server */
MODEBUF_DEST_HACK2 | /* Send a HACK(2) message */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches