]>
Commit | Line | Data |
---|---|---|
1 | throw error when user attempts to msg nick@server but is stopped by usermode +R or +q | |
2 | ||
3 | diff -r 8e6a04a8cd81 ircd/ircd_relay.c | |
4 | --- a/ircd/ircd_relay.c Wed Mar 24 12:59:31 2010 +0100 | |
5 | +++ b/ircd/ircd_relay.c Wed Mar 24 13:07:16 2010 +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); |