]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
update for the oplevelforward.patch
authorwiebe <redacted>
Sat, 24 Jan 2009 00:17:29 +0000 (01:17 +0100)
committerwiebe <redacted>
Sat, 24 Jan 2009 00:17:29 +0000 (01:17 +0100)
oplevelforward.patch

index a5373ebe2fc8a3da257e59d911016d7d56546967..8db253950a2620df06eb88baf46a6095c6a61ea5 100644 (file)
@@ -1,14 +1,19 @@
 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 @@
+diff -r 8097c580c34d ircd/m_burst.c
+--- a/ircd/m_burst.c   Sat Jan 24 00:27:47 2009 +0100
++++ b/ircd/m_burst.c   Sat Jan 24 01:10:18 2009 +0100
+@@ -544,7 +544,12 @@
              nickstr[nickpos++] = 'v';
            if (current_mode & CHFL_CHANOP)
              {
 -              if (chptr->mode.apass[0])
-+              if (oplevel < MAXOPLEVEL) /* forward as oplevel, else as o */
++              /* snircd - oplevel forward fix
++               * appearantly this is done for some anti netrider stuff? why though..?
++               * anyway, we do not need to bother with it with OPLEVELS disabled
++               * and just pass on the oplevel to our uplinks
++               */
++              if (chptr->mode.apass[0] || !feature_bool(FEAT_OPLEVELS))
                nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel);
                else
                  nickstr[nickpos++] = 'o';