]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Fix testline crashes, introduced by the auth_user patch.
authorJilles Tjoelker <redacted>
Thu, 31 Jul 2008 20:25:17 +0000 (22:25 +0200)
committerJilles Tjoelker <redacted>
Thu, 31 Jul 2008 20:25:17 +0000 (22:25 +0200)
modules/m_testline.c

index 993e995d5055596c9a025d600cecbaad4b21ff76..0bcba6ea3bc08b8f0bfab721380514f3e7952f76 100644 (file)
@@ -193,7 +193,8 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch
        if(aconf && aconf->status & CONF_CLIENT)
        {
                sendto_one_numeric(source_p, RPL_STATSILINE, form_str(RPL_STATSILINE),
-                               aconf->name, show_iline_prefix(source_p, aconf, aconf->user),
+                               aconf->name, EmptyString(aconf->spasswd) ? "<NULL>" : aconf->spasswd,
+                               show_iline_prefix(source_p, aconf, aconf->user),
                                aconf->host, aconf->port, aconf->className);
                return 0;
        }