#include "inspircd.h"
#include "listmode.h"
-/* $ModDesc: Provides support for the RMODE command - Makes mass removal of chan listmodes by glob pattern possible */
-
/** Handle /RMODE
*/
class CommandRMode : public Command
if (!mh->IsListMode())
{
- if (chan->IsModeSet(modeletter))
+ if (chan->IsModeSet(mh))
modestack.Push(modeletter);
}
else if (((prefixrank = mh->GetPrefixRank()) && (prefixchar = mh->GetPrefix())))