]> jfr.im git - irc/quakenet/newserv.git/blobdiff - glines/glines_buf.c
Fix: check if ->reason is NULL.
[irc/quakenet/newserv.git] / glines / glines_buf.c
index 5103f5c68e95bd5fd6cf0c5927ff4e200d9b9c7b..d1a8cd30e4b01e44021a0cef3ea4b79478c59e4d 100644 (file)
@@ -243,7 +243,7 @@ void glinebufspew(glinebuf *gbuf, nick *spewto) {
     else
       strftime(lastmod, sizeof(lastmod), "%d/%m/%y %H:%M:%S", localtime(&gl->lastmod));
 
-    controlreply(spewto, "%-40s %-20s %-20s %-25s %s", glinetostring(gl), timebuf, lastmod, gl->creator->content, gl->reason->content);
+    controlreply(spewto, "%-40s %-20s %-20s %-25s %s", glinetostring(gl), timebuf, lastmod, gl->creator->content, gl->reason ? gl->reason->content : "");
   }
 
   controlreply(spewto, "Hits");