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
+7 -7
View File
@@ -13,8 +13,8 @@ class CSimpleAway;
class CSimpleAwayJob : public CTimer
{
public:
CSimpleAwayJob( CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription )
: CTimer( pModule, uInterval, uCycles, sLabel, sDescription) {}
CSimpleAwayJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription)
: CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {}
virtual ~CSimpleAwayJob() {}
@@ -74,14 +74,14 @@ public:
StartTimer();
}
virtual void OnModCommand( const CString& sCommand )
virtual void OnModCommand(const CString& sCommand)
{
CString sCmdName = sCommand.Token(0);
if (sCmdName == "disabletimer") {
m_iAwayWait = 0;
PutModule( "Timer disabled" );
} else if ( sCmdName == "settimer") {
PutModule("Timer disabled");
} else if (sCmdName == "settimer") {
int iSetting = sCommand.Token(1).ToInt();
m_iAwayWait = iSetting;
@@ -91,10 +91,10 @@ public:
else
PutModule("Timer set to "
+ CString(iSetting) + " seconds");
} else if ( sCmdName == "timer") {
} else if (sCmdName == "timer") {
PutModule("Current timer setting: "
+ CString(m_iAwayWait) + " seconds");
} else if ( sCmdName == "reason") {
} else if (sCmdName == "reason") {
CString sReason = sCommand.Token(1, true);
if (!sReason.empty()) {