]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blobdiff - realusername.patch
Refresh patch
[irc/quakenet/snircd-patchqueue.git] / realusername.patch
index 2bc518877aeb04b28c5dba493833b551757cd9b5..3984cca0cdcca7e1ae1fc82dbe2a2d917d66d8ea 100644 (file)
@@ -15,7 +15,7 @@ Check realusername in bans/silences too? Currently it only matches the visible u
 
 WHOWAS does not save the realusername, only the realhost.
 
-diff -r 61ab84082475 ircd/gline.c
+diff -r 4677b599b0cc ircd/gline.c
 --- a/ircd/gline.c
 +++ b/ircd/gline.c
 @@ -259,7 +259,7 @@
@@ -47,31 +47,7 @@ diff -r 61ab84082475 ircd/gline.c
        continue;
  
      if (GlineIsIpMask(gline)) {
-diff -r 61ab84082475 ircd/ircd_auth.c
---- a/ircd/ircd_auth.c
-+++ b/ircd/ircd_auth.c
-@@ -297,7 +297,8 @@
-       /* No active connections - approve the requests and drop them. */
-       while ((iar = i_list_head(iauth).iar_next) != &i_list_head(iauth)) {
-         struct Client *client = iar->iar_client;
--        ircd_strncpy(cli_user(client)->realusername, cli_username(client), USERLEN);
-+        /* TODO: */
-+        /* ircd_strncpy(cli_user(client)->realusername, cli_user(client)->username, USERLEN); */
-         iauth_dispose_request(iauth, iar);
-         register_user(client, client, cli_name(client), cli_username(client));
-       }
-@@ -791,8 +792,9 @@
-     return;
-   }
-   client = iar->iar_client;
-+  /* TODO: copy realusername here already? */
-   ircd_strncpy(cli_username(client), username, USERLEN);
--  ircd_strncpy(cli_user(client)->realusername, username, USERLEN);
-+  /* ircd_strncpy(cli_user(client)->realusername, username, USERLEN); */
-   ircd_strncpy(cli_user(client)->host, hostname, HOSTLEN);
-   if (account) {
-     ircd_strncpy(cli_user(client)->account, account, ACCOUNTLEN);
-diff -r 61ab84082475 ircd/m_nick.c
+diff -r 4677b599b0cc ircd/m_nick.c
 --- a/ircd/m_nick.c
 +++ b/ircd/m_nick.c
 @@ -421,7 +421,7 @@
@@ -92,7 +68,7 @@ diff -r 61ab84082475 ircd/m_nick.c
      sendto_opmask_butone(0, SNO_OLDSNO, "Nick change collision from %C to "
                         "%C (%C %Tu <- %C %Tu)", sptr, acptr, cli_from(acptr),
                         cli_lastnick(acptr), cptr, lastnick);
-diff -r 61ab84082475 ircd/m_who.c
+diff -r 4677b599b0cc ircd/m_who.c
 --- a/ircd/m_who.c
 +++ b/ircd/m_who.c
 @@ -389,6 +389,10 @@
@@ -117,7 +93,7 @@ diff -r 61ab84082475 ircd/m_who.c
              && ((!(matchsel & WHO_FIELD_SER))
                  || (!(HasFlag(cli_user(acptr)->server, FLAG_MAP))))
              && ((!(matchsel & WHO_FIELD_HOS))
-diff -r 61ab84082475 ircd/s_auth.c
+diff -r 4677b599b0cc ircd/s_auth.c
 --- a/ircd/s_auth.c
 +++ b/ircd/s_auth.c
 @@ -232,6 +232,7 @@
@@ -159,7 +135,7 @@ diff -r 61ab84082475 ircd/s_auth.c
    return 1;
  }
  
-diff -r 61ab84082475 ircd/s_conf.c
+diff -r 4677b599b0cc ircd/s_conf.c
 --- a/ircd/s_conf.c
 +++ b/ircd/s_conf.c
 @@ -647,8 +647,8 @@
@@ -182,7 +158,7 @@ diff -r 61ab84082475 ircd/s_conf.c
    realname = cli_info(cptr);
  
    assert(strlen(host) <= HOSTLEN);
-diff -r 61ab84082475 ircd/s_misc.c
+diff -r 4677b599b0cc ircd/s_misc.c
 --- a/ircd/s_misc.c
 +++ b/ircd/s_misc.c
 @@ -399,7 +399,7 @@