mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Force a space between if, for, while and (
This was done via:
sed -ir 's/if(/if (/g; s/for(/for (/g; s/while(/while (/g' \
*.h *.cpp modules/*.cpp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1030 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -17,7 +17,7 @@ CBufLine::CBufLine(const CString& sPre, const CString& sPost, bool bIncNick=true
|
||||
CBufLine::~CBufLine() {}
|
||||
|
||||
void CBufLine::GetLine(const CString& sTarget, CString& sRet) {
|
||||
if(m_bIncNick)
|
||||
if (m_bIncNick)
|
||||
sRet = m_sPre + sTarget + m_sPost;
|
||||
else
|
||||
sRet = m_sPre + m_sPost;
|
||||
@@ -43,8 +43,8 @@ int CBuffer::AddLine(const CString& sPre, const CString& sPost, bool bIncNick) {
|
||||
}
|
||||
|
||||
int CBuffer::UpdateLine(const CString& sPre, const CString& sPost, bool bIncNick) {
|
||||
for(iterator it = begin(); it != end(); it++) {
|
||||
if(it->GetPre() == sPre) {
|
||||
for (iterator it = begin(); it != end(); it++) {
|
||||
if (it->GetPre() == sPre) {
|
||||
it->SetPost(sPost);
|
||||
it->SetIncNick(bIncNick);
|
||||
return size();
|
||||
|
||||
Reference in New Issue
Block a user