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:
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
virtual void DumpBuffer()
|
||||
{
|
||||
for(vector<CS_STRING>::reverse_iterator it = m_vBuffer.rbegin(); it != m_vBuffer.rend(); it++)
|
||||
for (vector<CS_STRING>::reverse_iterator it = m_vBuffer.rbegin(); it != m_vBuffer.rend(); it++)
|
||||
ReadLine(*it);
|
||||
|
||||
m_vBuffer.clear();
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
virtual void OnUserAttached()
|
||||
{
|
||||
CString sName = "SCHAT::" + m_pUser->GetUserName();
|
||||
for(u_int a = 0; a < m_pManager->size(); a++)
|
||||
for (u_int a = 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
if ((*m_pManager)[a]->GetSockName() != sName.c_str() ||
|
||||
((*m_pManager)[a]->GetType() == CSChatSock::LISTENER))
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
void CleanSocks()
|
||||
{
|
||||
CString sName = "SCHAT::" + m_pUser->GetUserName();
|
||||
for(u_int a= 0; a < m_pManager->size(); a++)
|
||||
for (u_int a= 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
if ((*m_pManager)[a]->GetSockName() == sName)
|
||||
m_pManager->DelSock(a--);
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
if ((sCom.CaseCmp("chat") == 0) && (!sArgs.empty())) {
|
||||
CString sSockName = "SCHAT::" + m_pUser->GetUserName();
|
||||
CString sNick = "(s)" + sArgs;
|
||||
for(u_int a= 0; a < m_pManager->size(); a++)
|
||||
for (u_int a= 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
if ((*m_pManager)[a]->GetSockName() != sSockName)
|
||||
continue;
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
Table.AddColumn("Port");
|
||||
Table.AddColumn("Status");
|
||||
Table.AddColumn("Cipher");
|
||||
for(u_int a= 0; a < m_pManager->size(); a++)
|
||||
for (u_int a= 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
if ((*m_pManager)[a]->GetSockName() != sName)
|
||||
continue;
|
||||
@@ -277,7 +277,7 @@ public:
|
||||
} else if (sCom.CaseCmp("close") == 0)
|
||||
{
|
||||
CString sName = "SCHAT::" + m_pUser->GetUserName();
|
||||
for(u_int a = 0; a < m_pManager->size(); a++)
|
||||
for (u_int a = 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
if ((*m_pManager)[a]->GetSockName() != sName)
|
||||
continue;
|
||||
@@ -302,7 +302,7 @@ public:
|
||||
Table.AddColumn("RemoteIP:Port");
|
||||
Table.AddColumn("Type");
|
||||
Table.AddColumn("Cipher");
|
||||
for(u_int a = 0; a < m_pManager->size(); a++)
|
||||
for (u_int a = 0; a < m_pManager->size(); a++)
|
||||
{
|
||||
Table.AddRow();
|
||||
Csock *pSock = (*m_pManager)[a];
|
||||
|
||||
Reference in New Issue
Block a user