added a quiet flag

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@719 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2006-03-28 16:48:23 +00:00
parent 5e8c075c60
commit bb7094e149

View File

@@ -18,6 +18,9 @@
*
*
* $Log$
* Revision 1.22 2006/03/28 16:48:23 imaginos
* added a quiet flag
*
* Revision 1.21 2006/02/25 09:43:35 prozacx
* Migrated away from CString::ToString() in favor of explicit constructors
*
@@ -210,11 +213,12 @@ public:
if ( sCmdName == "away" )
{
Away();
PutModNotice( "You have been marked as away", "away" );
if( sCommand.Token( 1 ) != "-quiet" )
PutModNotice( "You have been marked as away", "away" );
}
else if ( sCmdName == "back" )
{
if ( m_vMessages.empty() )
if ( ( m_vMessages.empty() ) && ( sCommand.Token( 1 ) != "-quiet" ) )
PutModNotice( "Welcome Back!", "away" );
Back();
}
@@ -312,7 +316,7 @@ public:
} else
{
PutModule( "Commands: away, back, delete <num|all>, ping, show, save", "away" );
PutModule( "Commands: away [-quiet], back [-quiet], delete <num|all>, ping, show, save", "away" );
}
}