]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blobdiff - opername.patch
Remove topic_reveal.patch. This has been fixed in IRCU and ircu patch is correct...
[irc/quakenet/snircd-patchqueue.git] / opername.patch
index 296e5d4c57c20a00a76468fd58bb7701bfed285a..20619ece8447a40a550da16bf8c315c1c9f52800 100644 (file)
@@ -4,10 +4,10 @@ in form of nick(opername)
 new function get_client_name_and_opername() add in s_misc.c
 mirrored after get_client_name() which can return either nick/server or nick[ident@ip]
 
-diff -r bb8b6e2e3236 include/client.h
---- a/include/client.h
-+++ b/include/client.h
-@@ -809,6 +809,7 @@
+diff -r dc2bab3d00a5 include/client.h
+--- a/include/client.h Thu Jul 25 18:59:27 2013 +0100
++++ b/include/client.h Thu Jul 25 19:00:52 2013 +0100
+@@ -819,6 +819,7 @@
  #define IPV6USERBITS 64
  
  extern const char* get_client_name(const struct Client* sptr, int showip);
@@ -15,10 +15,10 @@ diff -r bb8b6e2e3236 include/client.h
  extern const char* client_get_default_umode(const struct Client* sptr);
  extern int client_get_ping(const struct Client* local_client);
  extern void client_drop_sendq(struct Connection* con);
-diff -r bb8b6e2e3236 ircd/channel.c
---- a/ircd/channel.c
-+++ b/ircd/channel.c
-@@ -1910,8 +1910,8 @@
+diff -r dc2bab3d00a5 ircd/channel.c
+--- a/ircd/channel.c   Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/channel.c   Thu Jul 25 19:00:52 2013 +0100
+@@ -1917,8 +1917,8 @@
      if (mbuf->mb_dest & MODEBUF_DEST_HACK4)
        sendto_opmask_butone(0, SNO_HACK4, "HACK(4): %s MODE %s %s%s%s%s%s%s "
                           "[%Tu]",
@@ -29,10 +29,10 @@ diff -r bb8b6e2e3236 ircd/channel.c
                           mbuf->mb_channel->chname,
                           rembuf_i ? "-" : "", rembuf, addbuf_i ? "+" : "",
                           addbuf, remstr, addstr,
-diff -r bb8b6e2e3236 ircd/gline.c
---- a/ircd/gline.c
-+++ b/ircd/gline.c
-@@ -567,7 +567,7 @@
+diff -r dc2bab3d00a5 ircd/gline.c
+--- a/ircd/gline.c     Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/gline.c     Thu Jul 25 19:00:52 2013 +0100
+@@ -576,7 +576,7 @@
                         SNO_AUTO, "%s adding %s%s %s for %s%s%s%s%s, expiring at "
                         "%Tu: %s",
                         (feature_bool(FEAT_HIS_SNOTICES) || IsServer(sptr)) ?
@@ -41,7 +41,7 @@ diff -r bb8b6e2e3236 ircd/gline.c
                           cli_name((cli_user(sptr))->server),
                         (flags & GLINE_ACTIVE) ? "" : "deactivated ",
                       (flags & GLINE_LOCAL) ? "local" : "global",
-@@ -642,7 +642,7 @@
+@@ -651,7 +651,7 @@
    sendto_opmask_butone(0, SNO_GLINE, "%s activating global %s for %s%s%s%s%s, "
                         "expiring at %Tu: %s",
                         (feature_bool(FEAT_HIS_SNOTICES) || IsServer(sptr)) ?
@@ -50,7 +50,7 @@ diff -r bb8b6e2e3236 ircd/gline.c
                           cli_name((cli_user(sptr))->server),
                         GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : gline->gl_nick,
-@@ -715,7 +715,7 @@
+@@ -724,7 +724,7 @@
    sendto_opmask_butone(0, SNO_GLINE, "%s %s %s for %s%s%s%s%s, expiring at %Tu: "
                       "%s",
                         (feature_bool(FEAT_HIS_SNOTICES) || IsServer(sptr)) ?
@@ -59,16 +59,16 @@ diff -r bb8b6e2e3236 ircd/gline.c
                           cli_name((cli_user(sptr))->server),
                       msg, GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : gline->gl_nick,
-@@ -919,7 +919,7 @@
-   /* All right, inform ops... */
-   sendto_opmask_butone(0, SNO_GLINE, "%s modifying global %s for %s%s%s%s%s:%s",
+@@ -931,7 +931,7 @@
+   sendto_opmask_butone(0, non_auto ? SNO_GLINE : SNO_AUTO,
+                      "%s modifying global %s for %s%s%s%s%s:%s",
                       (feature_bool(FEAT_HIS_SNOTICES) || IsServer(sptr)) ?
 -                     cli_name(sptr) : cli_name((cli_user(sptr))->server),
 +                     get_client_name_and_opername(sptr) : cli_name((cli_user(sptr))->server),
                       GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : gline->gl_nick,
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : "!",
-@@ -966,7 +966,7 @@
+@@ -981,7 +981,7 @@
    /* Inform ops and log it */
    sendto_opmask_butone(0, SNO_GLINE, "%s removing local %s for %s%s%s%s%s",
                       (feature_bool(FEAT_HIS_SNOTICES) || IsServer(sptr)) ?
@@ -77,9 +77,9 @@ diff -r bb8b6e2e3236 ircd/gline.c
                       GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : gline->gl_nick,
                         GlineIsBadChan(gline)|GlineIsRealName(gline) ? "" : "!",
-diff -r bb8b6e2e3236 ircd/jupe.c
---- a/ircd/jupe.c
-+++ b/ircd/jupe.c
+diff -r dc2bab3d00a5 ircd/jupe.c
+--- a/ircd/jupe.c      Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/jupe.c      Thu Jul 25 19:00:52 2013 +0100
 @@ -156,7 +156,7 @@
    sendto_opmask_butone(0, SNO_NETWORK, "%s adding %sJUPE for %s, expiring at "
                         "%Tu: %s",
@@ -107,9 +107,9 @@ diff -r bb8b6e2e3236 ircd/jupe.c
                           cli_name((cli_user(sptr))->server),
                       JupeIsLocal(jupe) ? "removing local" : "deactivating",
                       jupe->ju_server, jupe->ju_expire + TSoffset,
-diff -r bb8b6e2e3236 ircd/m_connect.c
---- a/ircd/m_connect.c
-+++ b/ircd/m_connect.c
+diff -r dc2bab3d00a5 ircd/m_connect.c
+--- a/ircd/m_connect.c Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_connect.c Thu Jul 25 19:00:52 2013 +0100
 @@ -197,7 +197,7 @@
    sendwallto_group_butone(&me, WALL_WALLOPS, 0,
                         "Remote CONNECT %s %s from %s", aconf->name,
@@ -119,9 +119,9 @@ diff -r bb8b6e2e3236 ircd/m_connect.c
    log_write(LS_NETWORK, L_INFO, 0, "CONNECT From %C : %s %s", sptr, aconf->name,
            parv[2] ? parv[2] : "");
  
-diff -r bb8b6e2e3236 ircd/m_join.c
---- a/ircd/m_join.c
-+++ b/ircd/m_join.c
+diff -r dc2bab3d00a5 ircd/m_join.c
+--- a/ircd/m_join.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_join.c    Thu Jul 25 19:00:52 2013 +0100
 @@ -242,8 +242,8 @@
          }
          /* send accountability notice */
@@ -133,9 +133,9 @@ diff -r bb8b6e2e3236 ircd/m_join.c
          err = 0;
        }
  
-diff -r bb8b6e2e3236 ircd/m_jupe.c
---- a/ircd/m_jupe.c
-+++ b/ircd/m_jupe.c
+diff -r dc2bab3d00a5 ircd/m_jupe.c
+--- a/ircd/m_jupe.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_jupe.c    Thu Jul 25 19:00:52 2013 +0100
 @@ -193,7 +193,7 @@
    struct Jupe *ajupe;
    unsigned int flags = 0;
@@ -160,9 +160,9 @@ diff -r bb8b6e2e3236 ircd/m_jupe.c
    } else
      return need_more_params(sptr, "JUPE");
  
-diff -r bb8b6e2e3236 ircd/m_kill.c
---- a/ircd/m_kill.c
-+++ b/ircd/m_kill.c
+diff -r dc2bab3d00a5 ircd/m_kill.c
+--- a/ircd/m_kill.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_kill.c    Thu Jul 25 19:00:52 2013 +0100
 @@ -127,7 +127,7 @@
     */
    sendto_opmask_butone(0, snomask,
@@ -172,11 +172,11 @@ diff -r bb8b6e2e3236 ircd/m_kill.c
                         inpath, path, msg);
    log_write_kill(victim, sptr, inpath, path, msg);
  
-diff -r bb8b6e2e3236 ircd/m_oper.c
---- a/ircd/m_oper.c
-+++ b/ircd/m_oper.c
+diff -r dc2bab3d00a5 ircd/m_oper.c
+--- a/ircd/m_oper.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_oper.c    Thu Jul 25 19:00:52 2013 +0100
 @@ -192,9 +192,9 @@
-     send_umode_out(cptr, sptr, &old_mode, HasPriv(sptr, PRIV_PROPAGATE));
+     send_umode_out(cptr, sptr, &old_mode, HasPriv(sptr, PRIV_PROPAGATE), 0);
      send_reply(sptr, RPL_YOUREOPER);
  
 -    sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is now operator (%c) as %s",
@@ -188,9 +188,9 @@ diff -r bb8b6e2e3236 ircd/m_oper.c
  
      log_write(LS_OPER, L_INFO, 0, "OPER (%s) by (%#R)", name, sptr);
    }
-diff -r bb8b6e2e3236 ircd/m_rehash.c
---- a/ircd/m_rehash.c
-+++ b/ircd/m_rehash.c
+diff -r dc2bab3d00a5 ircd/m_rehash.c
+--- a/ircd/m_rehash.c  Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_rehash.c  Thu Jul 25 19:00:52 2013 +0100
 @@ -121,8 +121,8 @@
    }
  
@@ -202,9 +202,21 @@ diff -r bb8b6e2e3236 ircd/m_rehash.c
  
    log_write(LS_SYSTEM, L_INFO, 0, "REHASH From %#C", sptr);
  
-diff -r bb8b6e2e3236 ircd/m_settime.c
---- a/ircd/m_settime.c
-+++ b/ircd/m_settime.c
+diff -r dc2bab3d00a5 ircd/m_sethost.c
+--- a/ircd/m_sethost.c Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_sethost.c Thu Jul 25 19:00:52 2013 +0100
+@@ -196,7 +196,7 @@
+   if (freeform) {
+     sendto_opmask_butone(0, SNO_OLDSNO,
+-      "%C SETHOST %s%s%s (freeform)", sptr,
++      "%s SETHOST %s%s%s (freeform)", get_client_name_and_opername(sptr),
+       user ? user : "", user ? "@" : "", host);
+     log_write(LS_SETHOST, L_NOTICE, LOG_NOSNOTICE,
+diff -r dc2bab3d00a5 ircd/m_settime.c
+--- a/ircd/m_settime.c Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/m_settime.c Thu Jul 25 19:00:52 2013 +0100
 @@ -177,7 +177,7 @@
    else /* tell opers about time change */
    {
@@ -223,9 +235,9 @@ diff -r bb8b6e2e3236 ircd/m_settime.c
                         (dt < 0) ? "forwards" : "backwards");
      TSoffset -= dt; /* apply time change */
      if (IsUser(sptr)) /* let user know what we did */
-diff -r bb8b6e2e3236 ircd/s_misc.c
---- a/ircd/s_misc.c
-+++ b/ircd/s_misc.c
+diff -r dc2bab3d00a5 ircd/s_misc.c
+--- a/ircd/s_misc.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/s_misc.c    Thu Jul 25 19:00:52 2013 +0100
 @@ -172,6 +172,20 @@
    return nbuf;
  }
@@ -256,10 +268,10 @@ diff -r bb8b6e2e3236 ircd/s_misc.c
                           cli_name(cli_user(killer)->server));
      else if (killer != &me && cli_serv(victim)->up != killer)
        sendto_opmask_butone(0, SNO_OLDSNO, "Received SQUIT %s from %s :",
-diff -r bb8b6e2e3236 ircd/s_user.c
---- a/ircd/s_user.c
-+++ b/ircd/s_user.c
-@@ -1530,9 +1530,9 @@
+diff -r dc2bab3d00a5 ircd/s_user.c
+--- a/ircd/s_user.c    Thu Jul 25 18:59:27 2013 +0100
++++ b/ircd/s_user.c    Thu Jul 25 19:00:52 2013 +0100
+@@ -1491,9 +1491,9 @@
  
        /* notify my operators a user has OPERed on a remote server */
        if (!MyConnect(sptr)) {
@@ -272,7 +284,7 @@ diff -r bb8b6e2e3236 ircd/s_user.c
        }
                         
      }
-@@ -1545,9 +1545,8 @@
+@@ -1506,9 +1506,8 @@
      if (FlagHas(&setflags, FLAG_LOCOP) && !IsLocOp(sptr)) {
  
        /* notify my operators a local operator has deOPERed */
@@ -282,24 +294,21 @@ diff -r bb8b6e2e3236 ircd/s_user.c
 +      sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (o)",
 +        get_client_name_and_opername(sptr), cli_user(sptr)->realusername, cli_sockhost(sptr));
      }
      if (FlagHas(&setflags, FLAG_OPER) && !IsOper(sptr)) {
-@@ -1557,13 +1556,12 @@
-       
+       /* user no longer oper */
+@@ -1518,12 +1517,11 @@
        /* notify my operators an operator has deOPERed on the network */
        if (MyConnect(sptr)) {
--        sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) as %s",
+         sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O)",
 -          cli_name(sptr), cli_user(sptr)->realusername, cli_sockhost(sptr),
 -          cli_user(sptr)->opername ? cli_user(sptr)->opername : "<unknown>");
-+        sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O)",
 +          get_client_name_and_opername(sptr), cli_user(sptr)->realusername, cli_sockhost(sptr));
        } else {
--        sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) as %s on %s",
+         sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) on %s",
 -          cli_name(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost,
 -          cli_user(sptr)->opername ? cli_user(sptr)->opername : "<unknown>", cli_name(cli_user(sptr)->server));
-+        sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is no longer operator (O) on %s",
 +          get_client_name_and_opername(sptr), cli_user(sptr)->realusername, cli_user(sptr)->realhost,
 +          cli_name(cli_user(sptr)->server));
        }
-       
        client_set_privs(sptr, NULL); /* will clear propagate privilege */