mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
Fix build when ICU is disabled
Thanks FFForever for report
This commit is contained in:
@@ -2074,11 +2074,13 @@ void CZNC::ResumeConnectQueue() {
|
||||
|
||||
void CZNC::ForceEncoding() {
|
||||
m_uiForceEncoding++;
|
||||
#ifdef HAVE_ICU
|
||||
for (Csock* pSock : GetManager()) {
|
||||
if (pSock->GetEncoding().empty()) {
|
||||
pSock->SetEncoding("UTF-8");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
void CZNC::UnforceEncoding() { m_uiForceEncoding--; }
|
||||
bool CZNC::IsForcingEncoding() const { return m_uiForceEncoding; }
|
||||
|
||||
Reference in New Issue
Block a user