]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - cprivmsgerracconly.patch
refresh patches
[irc/quakenet/snircd-patchqueue.git] / cprivmsgerracconly.patch
1 correct wrong user in ERR_ACCOUNTONLY reply for CPRIVMSG command (should be dest, not source).
2
3 diff -r 6bd1fce70230 ircd/s_user.c
4 --- a/ircd/s_user.c Thu Mar 25 12:07:21 2010 +0100
5 +++ b/ircd/s_user.c Thu Mar 25 12:10:07 2010 +0100
6 @@ -851,9 +851,10 @@
7 if (is_silenced(source, dest))
8 return 0;
9
10 + /* check usermode +R */
11 if (IsAccountOnly(dest) && !IsAccount(source) && !IsXtraOp(source)) {
12 if(!is_notice)
13 - send_reply(source, ERR_ACCOUNTONLY, cli_name(source), feature_str(FEAT_URLREG));
14 + send_reply(source, ERR_ACCOUNTONLY, cli_name(dest), feature_str(FEAT_URLREG));
15 return 0;
16 }
17