From 6f759ca1a29a1e98f3e30eb02e075618b7d615cf Mon Sep 17 00:00:00 2001 From: imaginos Date: Sun, 23 Jul 2006 04:01:44 +0000 Subject: [PATCH] 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 --- modules/away.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/away.cpp b/modules/away.cpp index 0d142cf8..5203f3c1 100644 --- a/modules/away.cpp +++ b/modules/away.cpp @@ -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" ) {