diff --git a/HTTPSock.cpp b/HTTPSock.cpp
index f6cf4f46..4c83ab41 100644
--- a/HTTPSock.cpp
+++ b/HTTPSock.cpp
@@ -384,7 +384,7 @@ CString CHTTPSock::GetErrorPage(unsigned int uStatusId, const CString& sStatusMs
"
\r\n" + CString(uStatusId) + " " + sStatusMsg.Escape_n(CString::EHTML) + "\r\n"
"\r\n" + sStatusMsg.Escape_n(CString::EHTML) + "
\r\n"
"" + sMessage.Escape_n(CString::EHTML) + "
\r\n"
- "
\r\n" + CZNC::GetTag().Escape_n(CString::EHTML) + " at " + GetLocalIP().Escape_n(CString::EHTML) + " Port " + CString(GetLocalPort()) + "\r\n"
+ "
\r\n" + CZNC::GetTag(false).Escape_n(CString::EHTML) + " at " + GetLocalIP().Escape_n(CString::EHTML) + " Port " + CString(GetLocalPort()) + "\r\n"
"\r\n";
}
@@ -433,7 +433,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, u
Write("HTTP/" + CString(m_bHTTP10Client ? "1.0 " : "1.1 ") + CString(uStatusId) + " " + sStatusMsg + "\r\n");
//Write("Date: Tue, 28 Jun 2005 20:45:36 GMT\r\n");
- Write("Server: " + CZNC::GetTag() + "\r\n");
+ Write("Server: " + CZNC::GetTag(false) + "\r\n");
if (uContentLength > 0) {
Write("Content-Length: " + CString(uContentLength) + "\r\n");
}
diff --git a/WebModules.cpp b/WebModules.cpp
index ac1664e0..e63398b4 100644
--- a/WebModules.cpp
+++ b/WebModules.cpp
@@ -305,7 +305,7 @@ void CWebSock::SetPaths(CModule* pModule, bool bIsTemplate) {
void CWebSock::SetVars() {
m_Template["SessionUser"] = GetUser();
m_Template["SessionIP"] = GetRemoteIP();
- m_Template["Tag"] = CZNC::GetTag();
+ m_Template["Tag"] = CZNC::GetTag(GetSession()->GetUser() != NULL);
m_Template["SkinName"] = GetSkinName();
if (GetSession()->IsAdmin()) {