]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - oplevelforward.patch
welcome.patch - add empty line at end of welcome.h
[irc/quakenet/snircd-patchqueue.git] / oplevelforward.patch
1 Fix forwarding by hub of oplevels for non Apass channels.
2
3 diff -r 8097c580c34d ircd/m_burst.c
4 --- a/ircd/m_burst.c Sat Jan 24 00:27:47 2009 +0100
5 +++ b/ircd/m_burst.c Sat Jan 24 01:10:18 2009 +0100
6 @@ -544,7 +544,12 @@
7 nickstr[nickpos++] = 'v';
8 if (current_mode & CHFL_CHANOP)
9 {
10 - if (chptr->mode.apass[0])
11 + /* snircd - oplevel forward fix
12 + * appearantly this is done for some anti netrider stuff? why though..?
13 + * anyway, we do not need to bother with it with OPLEVELS disabled
14 + * and just pass on the oplevel to our uplinks
15 + */
16 + if (chptr->mode.apass[0] || !feature_bool(FEAT_OPLEVELS))
17 nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - nickpos, "%u", oplevel);
18 else
19 nickstr[nickpos++] = 'o';