Remove useless spaces inside of braces "( stuff )"

This was generated via the following command:

  cat <file> | \
  tr "\n" "€"| \
  sed -r 's/€[\t ]*\{€/ {€/g; s/\( */(/g; s/ *\)/)/g' | \
  tr "€" "\n"

Thanks to SilverLeo for producing this mess :P


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1029 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-04-20 13:00:19 +00:00
parent 0470977497
commit b0a1714b86
18 changed files with 1017 additions and 1018 deletions
+8 -8
View File
@@ -320,7 +320,7 @@ bool CZNC::DeletePidFile() {
return false;
}
bool CZNC::WritePemFile( bool bEncPem ) {
bool CZNC::WritePemFile(bool bEncPem) {
#ifndef HAVE_LIBSSL
CUtils::PrintError("ZNC was not compiled with ssl support.");
return false;
@@ -1403,14 +1403,14 @@ bool CZNC::DoRehash(CString& sError)
}
if( sName.CaseCmp( "GM:", 3 ) == 0 )
if (sName.CaseCmp("GM:", 3) == 0)
{ // GM: prefix is a pass through to config lines for global modules
CGlobalModuleConfigLine cTmp;
cTmp.m_sName = sName.substr( 3, CString::npos );
cTmp.m_sName = sName.substr(3, CString::npos);
cTmp.m_sValue = sValue;
cTmp.m_pChan = pChan;
cTmp.m_pUser = pUser;
lGlobalModuleConfigLine.push_back( cTmp );
lGlobalModuleConfigLine.push_back(cTmp);
}
else
{
@@ -1492,13 +1492,13 @@ bool CZNC::DoRehash(CString& sError)
}
// last step, throw unhandled config items at global config
for( std::list<CGlobalModuleConfigLine>::iterator it = lGlobalModuleConfigLine.begin(); it != lGlobalModuleConfigLine.end(); it++ )
for (std::list<CGlobalModuleConfigLine>::iterator it = lGlobalModuleConfigLine.begin(); it != lGlobalModuleConfigLine.end(); it++)
{
if( ( pChan && pChan == it->m_pChan ) || ( pUser && pUser == it->m_pUser ) )
if ((pChan && pChan == it->m_pChan) || (pUser && pUser == it->m_pUser))
continue; // skip unclosed user or chan
if( !GetModules().OnConfigLine( it->m_sName, it->m_sValue, it->m_pUser, it->m_pChan ) )
if (!GetModules().OnConfigLine(it->m_sName, it->m_sValue, it->m_pUser, it->m_pChan))
{
CUtils::PrintMessage( "unhandled global module config line [GM:" + it->m_sName + "] = [" + it->m_sValue + "]" );
CUtils::PrintMessage("unhandled global module config line [GM:" + it->m_sName + "] = [" + it->m_sValue + "]");
}
}
#endif