mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user