From 2df3ad5cfeaea6ca095695fa4b3c786ee8237080 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Apr 2005 07:33:07 +0000 Subject: Made xline notices neater when notifying of unknown connections git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1258 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 0e625bb52..35ebc50f3 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -663,7 +663,7 @@ void apply_lines() char* check = matches_gline(host); if (check) { - WriteOpers("*** User %s matches G-Line: %s",u->second->nick,check); + WriteOpers("*** User %s matches G-Line: %s",u->registered == 7 ? u->second->nick:"",check); snprintf(reason,MAXBUF,"G-Lined: %s",check); kill_link(u->second,reason); go_again = true; @@ -675,7 +675,7 @@ void apply_lines() char* check = matches_kline(host); if (check) { - WriteOpers("*** User %s matches K-Line: %s",u->second->nick,check); + WriteOpers("*** User %s matches K-Line: %s",u->registered == 7 ? u->second->nick:"",check); snprintf(reason,MAXBUF,"K-Lined: %s",check); kill_link(u->second,reason); go_again = true; @@ -688,7 +688,7 @@ void apply_lines() if (check) { snprintf(reason,MAXBUF,"Matched Q-Lined nick: %s",check); - WriteOpers("*** Q-Lined nickname %s from %s: %s",u->second->nick,u->second->host,check); + WriteOpers("*** Q-Lined nickname %s from %s: %s",u->registered == 7 ? u->second->nick:"",u->second->host,check); kill_link(u->second,reason); go_again = true; break; @@ -700,7 +700,7 @@ void apply_lines() if (check) { snprintf(reason,MAXBUF,"Z-Lined: %s",check); - WriteOpers("*** User %s matches Z-Line: %s",u->second->nick,u->second->host,check); + WriteOpers("*** User %s matches Z-Line: %s",u->registered == 7 ? u->second->nick:"",u->second->host,check); kill_link(u->second,reason); go_again = true; break; -- cgit v1.2.3