]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
add oplevelforward.patch - fix issue where hub does not forward oplevels for non...
authorwiebe <redacted>
Fri, 23 Jan 2009 23:27:30 +0000 (00:27 +0100)
committerwiebe <redacted>
Fri, 23 Jan 2009 23:27:30 +0000 (00:27 +0100)
oplevelforward.patch [new file with mode: 0644]
series

diff --git a/oplevelforward.patch b/oplevelforward.patch
new file mode 100644 (file)
index 0000000..a5373eb
--- /dev/null
@@ -0,0 +1,14 @@
+Fix forwarding by hub of oplevels for non Apass channels.
+
+diff -r 42f001ab6955 ircd/m_burst.c
+--- a/ircd/m_burst.c   Fri Jan 23 23:59:20 2009 +0100
++++ b/ircd/m_burst.c   Sat Jan 24 00:22:42 2009 +0100
+@@ -544,7 +544,7 @@
+             nickstr[nickpos++] = 'v';
+           if (current_mode & CHFL_CHANOP)
+             {
+-              if (chptr->mode.apass[0])
++              if (oplevel < MAXOPLEVEL) /* forward as oplevel, else as o */
+               nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel);
+               else
+                 nickstr[nickpos++] = 'o';
diff --git a/series b/series
index fc8d93d4eee1255fa25271f46d9b877e007e0f2b..8476a5bac3f24b5c07c654ca3fa459f1cc3642c5 100644 (file)
--- a/series
+++ b/series
@@ -26,5 +26,6 @@ opernowildbadchan.patch
 operglinenick.patch
 operping.patch
 minoplevel.patch
+oplevelforward.patch
 accountcollision.patch
 split.patch