]>
Commit | Line | Data |
---|---|---|
edb26b39 P |
1 | # HG changeset patch |
2 | # Parent 0461630a25fa999a81a3177c31fde85bae33b5ee | |
3 | ||
4 | diff -r 0461630a25fa ircd/s_user.c | |
5 | --- a/ircd/s_user.c Tue Jul 16 22:51:43 2013 +0100 | |
6 | +++ b/ircd/s_user.c Tue Jul 16 22:53:03 2013 +0100 | |
7 | @@ -1318,6 +1318,12 @@ | |
8 | { | |
9 | tmpmask = cli_snomask(sptr) & ~SNO_OPER; | |
10 | cli_handler(sptr) = CLIENT_HANDLER; | |
11 | + | |
12 | + /* notify my operators a local operator has deOPERed - wiebe */ | |
13 | + sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (o) as %s", | |
14 | + cli_name(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost, | |
15 | + cli_user(sptr)->opername); | |
16 | + | |
17 | } | |
18 | } | |
19 | break; | |
20 | @@ -1479,6 +1485,14 @@ | |
21 | /* user now oper */ | |
22 | ++UserStats.opers; | |
23 | client_set_privs(sptr, NULL); /* may set propagate privilege */ | |
24 | + | |
25 | + /* notify my operators a user has OPERed on a remote server - wiebe */ | |
26 | + if (!MyConnect(sptr)) { | |
27 | + sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is now operator (O) as %s on %s", | |
28 | + cli_name(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost, | |
29 | + cli_user(sptr)->opername ? cli_user(sptr)->opername : "<unknown>", cli_name(cli_user(sptr)->server)); | |
30 | + } | |
31 | + | |
32 | } | |
33 | /* remember propagate privilege setting */ | |
34 | if (HasPriv(sptr, PRIV_PROPAGATE)) { | |
35 | @@ -1489,17 +1503,6 @@ | |
36 | assert(UserStats.opers > 0); | |
37 | --UserStats.opers; | |
38 | ||
39 | - /* notify my operators an operator has deOPERed on the network - wiebe */ | |
40 | - if (MyConnect(sptr)) { | |
41 | - sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) as %s", | |
42 | - cli_name(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost, | |
43 | - cli_user(sptr)->opername ? cli_user(sptr)->opername : "<unknown>"); | |
44 | - } else { | |
45 | - sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) as %s on %s", | |
46 | - cli_name(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost, | |
47 | - cli_user(sptr)->opername ? cli_user(sptr)->opername : "<unknown>", cli_name(cli_user(sptr)->server)); | |
48 | - } | |
49 | - | |
50 | client_set_privs(sptr, NULL); /* will clear propagate privilege */ | |
51 | if (cli_user(sptr)->opername) { | |
52 | MyFree(cli_user(sptr)->opername); |