]> jfr.im git - solanum.git/blobdiff - ircd/whowas.c
ircd/authproc.c: avoid crash on lack of any configured DNSBLs
[solanum.git] / ircd / whowas.c
index 62419535210f2f598ef89a8cd3ce33544f862374..7ee4f299828a5da54dd432462377d9ca600c3070 100644 (file)
@@ -5,7 +5,7 @@
  *  Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
  *  Copyright (C) 1996-2002 Hybrid Development Team
  *  Copyright (C) 2002-2012 ircd-ratbox development team
- *  Copyright (C) 2016 William Pitcock <nenolod@dereferenced.org>
+ *  Copyright (C) 2016 Ariadne Conill <ariadne@dereferenced.org>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -112,6 +112,7 @@ whowas_add_history(struct Client *client_p, int online)
        rb_strlcpy(who->hostname, client_p->host, sizeof(who->hostname));
        rb_strlcpy(who->realname, client_p->info, sizeof(who->realname));
        rb_strlcpy(who->sockhost, client_p->sockhost, sizeof(who->sockhost));
+       rb_strlcpy(who->suser, client_p->user->suser, sizeof(who->suser));
 
        who->flags = (IsIPSpoof(client_p) ? WHOWAS_IP_SPOOFING : 0) |
                (IsDynSpoof(client_p) ? WHOWAS_DYNSPOOF : 0);