mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
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:
+14
-2
@@ -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" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user