realusername: refresh for removal of ircd/ircd_auth.c
authorwiebe <wiebe@quakenet.org>
Fri Jul 02 12:51:17 2010 +0200 (22 months ago)
changeset 282e632799f3c76
parent 281b0825ccef652
child 28334572b25251a
realusername: refresh for removal of ircd/ircd_auth.c
realusername.patch
     1.1 --- a/realusername.patch	Thu May 13 14:04:12 2010 +0200
     1.2 +++ b/realusername.patch	Fri Jul 02 12:51:17 2010 +0200
     1.3 @@ -15,7 +15,7 @@
     1.4  
     1.5  WHOWAS does not save the realusername, only the realhost.
     1.6  
     1.7 -diff -r 61ab84082475 ircd/gline.c
     1.8 +diff -r 4677b599b0cc ircd/gline.c
     1.9  --- a/ircd/gline.c
    1.10  +++ b/ircd/gline.c
    1.11  @@ -259,7 +259,7 @@
    1.12 @@ -47,31 +47,7 @@
    1.13         continue;
    1.14   
    1.15       if (GlineIsIpMask(gline)) {
    1.16 -diff -r 61ab84082475 ircd/ircd_auth.c
    1.17 ---- a/ircd/ircd_auth.c
    1.18 -+++ b/ircd/ircd_auth.c
    1.19 -@@ -297,7 +297,8 @@
    1.20 -       /* No active connections - approve the requests and drop them. */
    1.21 -       while ((iar = i_list_head(iauth).iar_next) != &i_list_head(iauth)) {
    1.22 -         struct Client *client = iar->iar_client;
    1.23 --        ircd_strncpy(cli_user(client)->realusername, cli_username(client), USERLEN);
    1.24 -+        /* TODO: */
    1.25 -+        /* ircd_strncpy(cli_user(client)->realusername, cli_user(client)->username, USERLEN); */
    1.26 -         iauth_dispose_request(iauth, iar);
    1.27 -         register_user(client, client, cli_name(client), cli_username(client));
    1.28 -       }
    1.29 -@@ -791,8 +792,9 @@
    1.30 -     return;
    1.31 -   }
    1.32 -   client = iar->iar_client;
    1.33 -+  /* TODO: copy realusername here already? */
    1.34 -   ircd_strncpy(cli_username(client), username, USERLEN);
    1.35 --  ircd_strncpy(cli_user(client)->realusername, username, USERLEN);
    1.36 -+  /* ircd_strncpy(cli_user(client)->realusername, username, USERLEN); */
    1.37 -   ircd_strncpy(cli_user(client)->host, hostname, HOSTLEN);
    1.38 -   if (account) {
    1.39 -     ircd_strncpy(cli_user(client)->account, account, ACCOUNTLEN);
    1.40 -diff -r 61ab84082475 ircd/m_nick.c
    1.41 +diff -r 4677b599b0cc ircd/m_nick.c
    1.42  --- a/ircd/m_nick.c
    1.43  +++ b/ircd/m_nick.c
    1.44  @@ -421,7 +421,7 @@
    1.45 @@ -92,7 +68,7 @@
    1.46       sendto_opmask_butone(0, SNO_OLDSNO, "Nick change collision from %C to "
    1.47   			 "%C (%C %Tu <- %C %Tu)", sptr, acptr, cli_from(acptr),
    1.48   			 cli_lastnick(acptr), cptr, lastnick);
    1.49 -diff -r 61ab84082475 ircd/m_who.c
    1.50 +diff -r 4677b599b0cc ircd/m_who.c
    1.51  --- a/ircd/m_who.c
    1.52  +++ b/ircd/m_who.c
    1.53  @@ -389,6 +389,10 @@
    1.54 @@ -117,7 +93,7 @@
    1.55               && ((!(matchsel & WHO_FIELD_SER))
    1.56                   || (!(HasFlag(cli_user(acptr)->server, FLAG_MAP))))
    1.57               && ((!(matchsel & WHO_FIELD_HOS))
    1.58 -diff -r 61ab84082475 ircd/s_auth.c
    1.59 +diff -r 4677b599b0cc ircd/s_auth.c
    1.60  --- a/ircd/s_auth.c
    1.61  +++ b/ircd/s_auth.c
    1.62  @@ -232,6 +232,7 @@
    1.63 @@ -159,7 +135,7 @@
    1.64     return 1;
    1.65   }
    1.66   
    1.67 -diff -r 61ab84082475 ircd/s_conf.c
    1.68 +diff -r 4677b599b0cc ircd/s_conf.c
    1.69  --- a/ircd/s_conf.c
    1.70  +++ b/ircd/s_conf.c
    1.71  @@ -647,8 +647,8 @@
    1.72 @@ -182,7 +158,7 @@
    1.73     realname = cli_info(cptr);
    1.74   
    1.75     assert(strlen(host) <= HOSTLEN);
    1.76 -diff -r 61ab84082475 ircd/s_misc.c
    1.77 +diff -r 4677b599b0cc ircd/s_misc.c
    1.78  --- a/ircd/s_misc.c
    1.79  +++ b/ircd/s_misc.c
    1.80  @@ -399,7 +399,7 @@