Add 'list' command to stickychan

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@867 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-11-12 21:24:52 +00:00
parent 4c5d81b2a3
commit 7c09af3dde
+14 -2
View File
@@ -63,10 +63,22 @@ public:
DelNV( it );
PutModule( "UnStuck " + sChannel );
}
}
else if ( ( sCmdName == "list" ) && ( sChannel.empty() ) )
{
int i = 1;
for( MCString::iterator it = BeginNV(); it != EndNV(); it++, i++ )
{
if (it->second.empty())
PutModule(CString( i ) + ": " + it->first);
else
PutModule(CString( i ) + ": " + it->first + " (" + it->second + ")");
}
PutModule(" -- End of List");
}
else
{
PutModule( "USAGE: [un]stick #channel [key]" );
PutModule( "USAGE: [un]stick #channel [key], list" );
}
}