]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - umoderqerrorreplynickatserver.patch
nickgline: include nick! bit in gline loggin
[irc/quakenet/snircd-patchqueue.git] / umoderqerrorreplynickatserver.patch
1 throw error when user attempts to msg nick@server but is stopped by usermode +R or +q
2
3 diff -r be4495caa99e ircd/ircd_relay.c
4 --- a/ircd/ircd_relay.c Sat Jul 20 11:50:47 2013 +0100
5 +++ b/ircd/ircd_relay.c Sat Jul 20 11:58:58 2013 +0100
6 @@ -307,12 +307,16 @@
7 *--host = '%';
8
9 /* slug: I don't think this is required, but I might have missed something */
10 - if (IsAccountOnly(acptr) && !IsAccount(sptr) && !IsXtraOp(sptr))
11 + if (IsAccountOnly(acptr) && !IsAccount(sptr) && !IsXtraOp(sptr)) {
12 + send_reply(sptr, ERR_ACCOUNTONLY, cli_name(acptr), feature_str(FEAT_URLREG));
13 return;
14 + }
15
16 /* slug: same applies here, since only opers can be +k */
17 - if (IsCommonChansOnly(acptr) && !IsXtraOp(sptr) && !common_chan_count(acptr, sptr, 1))
18 + if (IsCommonChansOnly(acptr) && !IsXtraOp(sptr) && !common_chan_count(acptr, sptr, 1)) {
19 + send_reply(sptr, ERR_COMMONCHANSONLY, cli_name(acptr));
20 return;
21 + }
22
23 if (!(is_silenced(sptr, acptr)))
24 sendcmdto_one(sptr, CMD_PRIVATE, acptr, "%s :%s", name, text);