]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - cprivmsgerracconly.patch
glinesnomask.patch - removed = auto prefix stuff from mo_gline, moved auto before...
[irc/quakenet/snircd-patchqueue.git] / cprivmsgerracconly.patch
1 diff -r d5245fe38742 ircd/s_user.c
2 --- a/ircd/s_user.c Wed Jan 28 17:58:02 2009 +0100
3 +++ b/ircd/s_user.c Wed Jan 28 18:23:23 2009 +0100
4 @@ -851,9 +851,10 @@
5 if (is_silenced(source, dest))
6 return 0;
7
8 + /* check usermode +R - perhaps not block when source == dest ? */
9 if (IsAccountOnly(dest) && !IsAccount(source) && !IsXtraOp(source)) {
10 if(!is_notice)
11 - send_reply(source, ERR_ACCOUNTONLY, cli_name(source), feature_str(FEAT_URLREG));
12 + send_reply(source, ERR_ACCOUNTONLY, cli_name(dest), feature_str(FEAT_URLREG));
13 return 0;
14 }
15