2 # Parent 0461630a25fa999a81a3177c31fde85bae33b5ee
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
9 tmpmask = cli_snomask(sptr) & ~SNO_OPER;
10 cli_handler(sptr) = CLIENT_HANDLER;
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);
20 @@ -1479,6 +1485,14 @@
23 client_set_privs(sptr, NULL); /* may set propagate privilege */
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));
33 /* remember propagate privilege setting */
34 if (HasPriv(sptr, PRIV_PROPAGATE)) {
35 @@ -1489,17 +1503,6 @@
36 assert(UserStats.opers > 0);
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>");
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));
50 client_set_privs(sptr, NULL); /* will clear propagate privilege */
51 if (cli_user(sptr)->opername) {
52 MyFree(cli_user(sptr)->opername);