Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-01-13 18:47:29 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/m_burst.c
Log message:
Properly handle member modes like XXYYY:ov in bursts.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.133 ircu2.10/ChangeLog:1.710.2.134
--- ircu2.10/ChangeLog:1.710.2.133 Sat Jan 13 10:45:07 2007
+++ ircu2.10/ChangeLog Sat Jan 13 10:47:16 2007
@@ -1,5 +1,9 @@
2006-01-13 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/m_burst.c (ms_burst): Properly handle member mode :ov.
+
+2006-01-13 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/m_create.c (ms_create): Add channel name to the protocol
violation notice for a redundant CREATE.
Index: ircu2.10/ircd/m_burst.c
diff -u ircu2.10/ircd/m_burst.c:1.40.2.2 ircu2.10/ircd/m_burst.c:1.40.2.3
--- ircu2.10/ircd/m_burst.c:1.40.2.2 Wed Jan 11 19:02:50 2006
+++ ircu2.10/ircd/m_burst.c Sat Jan 13 10:47:19 2007
@@ -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_burst.c,v 1.40.2.2 2006/01/12 03:02:50 entrope Exp $
+ * $Id: m_burst.c,v 1.40.2.3 2007/01/13 18:47:19 entrope Exp $
*/
/*
@@ -469,6 +469,14 @@
current_mode_needs_reset = 0;
}
current_mode = (current_mode & ~(CHFL_DEOPPED |
CHFL_DELAYED)) | CHFL_CHANOP;
+ /*
+ * Older servers may send XXYYY:ov, in which case we
+ * do not want to use the code for 'v' below.
+ */
+ if (ptr[1] == 'v') {
+ current_mode |= CHFL_VOICE;
+ ptr++;
+ }
}
else if (*ptr == 'v') { /* has voice status */
if (current_mode_needs_reset) {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches