]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/client.c
Unbreak /stats B.
[irc/rqf/shadowircd.git] / src / client.c
index 7b2b5a02dd0130dd81ee13fa40272d8331c77614..aa2a0e9443f4cf45f2d12bb4d3df7f6c9dc1a878 100644 (file)
@@ -40,7 +40,7 @@
 #include "s_auth.h"
 #include "s_conf.h"
 #include "s_newconf.h"
-#include "s_log.h"
+#include "logger.h"
 #include "s_serv.h"
 #include "s_stats.h"
 #include "send.h"
@@ -1952,7 +1952,7 @@ allocate_away(struct Client *client_p)
 void
 free_away(struct Client *client_p)
 {
-       if(client_p->user->away != NULL) {
+       if(client_p->user != NULL && client_p->user->away != NULL) {
                rb_bh_free(away_heap, client_p->user->away);
                client_p->user->away = NULL;
        }