From: wiebe Date: Sat, 24 Jan 2009 00:17:29 +0000 (+0100) Subject: update for the oplevelforward.patch X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/92f626633559e73f15eccbd9629b48deaa80c8ad update for the oplevelforward.patch --- diff --git a/oplevelforward.patch b/oplevelforward.patch index a5373eb..8db2539 100644 --- a/oplevelforward.patch +++ b/oplevelforward.patch @@ -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';