mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
add back functionality to give an away reason
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@742 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+10
-1
@@ -18,6 +18,9 @@
|
||||
*
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.23 2006/07/23 04:01:44 imaginos
|
||||
* add back functionality to give an away reason
|
||||
*
|
||||
* Revision 1.22 2006/03/28 16:48:23 imaginos
|
||||
* added a quiet flag
|
||||
*
|
||||
@@ -212,9 +215,15 @@ public:
|
||||
CString sCmdName = sCommand.Token(0);
|
||||
if ( sCmdName == "away" )
|
||||
{
|
||||
Away();
|
||||
CString sReason;
|
||||
if( sCommand.Token( 1 ) != "-quiet" )
|
||||
{
|
||||
sReason = sCommand.Token( 1, true );
|
||||
PutModNotice( "You have been marked as away", "away" );
|
||||
}
|
||||
else
|
||||
sReason = sCommand.Token( 2, true );
|
||||
Away( true, sReason );
|
||||
}
|
||||
else if ( sCmdName == "back" )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user