]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - netriderexemptumodekbigxpriv.patch
Initial commit of wiebe's patches.
[irc/quakenet/snircd-patchqueue.git] / netriderexemptumodekbigxpriv.patch
1 excludes clients with usermode +k / +X or the privs to set them from netrider kick
2
3 diff -r 41ce42398a8f ircd/m_burst.c
4 --- a/ircd/m_burst.c Sun Jan 11 18:08:49 2009 +0000
5 +++ b/ircd/m_burst.c Sun Jan 11 22:38:38 2009 +0000
6 @@ -299,6 +299,12 @@
7 nmember = member->next_member;
8 if (!MyUser(member->user) || IsZombie(member))
9 continue;
10 + /* Do not kick +k user or operator with priv to set it */
11 + if (IsChannelService(member->user) || HasPriv(member->user, PRIV_CHANSERV))
12 + continue;
13 + /* Do not kick +X user or operator with priv to set it */
14 + if (IsXtraOp(member->user) || HasPriv(member->user, PRIV_XTRA_OPER))
15 + continue;
16 /* Kick as netrider if key mismatch *or* remote channel is
17 * +i (unless user is an oper) *or* remote channel is +r
18 * (unless user has an account).