summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_check.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index a45b84c7d..95e063e4d 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -53,6 +53,18 @@ class CheckContext
User* GetUser() const { return user; }
+ void DumpListMode(const ListModeBase::ModeList* list)
+ {
+ if (!list)
+ return;
+
+ CheckContext::List modelist(*this, "modelist");
+ for (ListModeBase::ModeList::const_iterator i = list->begin(); i != list->end(); ++i)
+ modelist.Add(i->mask);
+
+ modelist.Flush();
+ }
+
class List : public Numeric::GenericBuilder<' ', false, Numeric::WriteRemoteNumericSink>
{
public:
@@ -81,18 +93,6 @@ class CommandCheck : public Command
return ret;
}
- static void dumpListMode(CheckContext& context, const ListModeBase::ModeList* list)
- {
- if (!list)
- return;
-
- CheckContext::List modelist(context, "modelist");
- for (ListModeBase::ModeList::const_iterator i = list->begin(); i != list->end(); ++i)
- modelist.Add(i->mask);
-
- modelist.Flush();
- }
-
public:
CommandCheck(Module* parent)
: Command(parent,"CHECK", 1)
@@ -266,7 +266,7 @@ class CommandCheck : public Command
const ModeParser::ListModeList& listmodes = ServerInstance->Modes->GetListModes();
for (ModeParser::ListModeList::const_iterator i = listmodes.begin(); i != listmodes.end(); ++i)
- dumpListMode(context, (*i)->GetList(targchan));
+ context.DumpListMode((*i)->GetList(targchan));
dumpExt(context, targchan);
}