]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - cprivmsgerracconly.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / cprivmsgerracconly.patch
CommitLineData
affbef8c 1correct wrong user in ERR_ACCOUNTONLY reply for CPRIVMSG command (should be dest, not source).
2
3diff -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
1de6eb68 6@@ -851,9 +851,10 @@
7 if (is_silenced(source, dest))
8 return 0;
9
affbef8c 10+ /* check usermode +R */
1de6eb68 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