]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - cprivmsgerracconly.patch
glinesnomask.patch - updated for ircu merge plus a few minor fixes
[irc/quakenet/snircd-patchqueue.git] / cprivmsgerracconly.patch
CommitLineData
1de6eb68 1diff -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