summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-22 01:05:35 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-22 01:05:35 +0000
commit7d93921aabd9c608821baec8a871aff844dfae49 (patch)
tree5c751133d5825873fc34e2b978fc61047d8a9330 /src/commands
parent9f2e1f901930d3646db5f3c21180f02f2f9ce41f (diff)
Describe module purpose in /MODULES output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_modules.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/cmd_modules.cpp b/src/commands/cmd_modules.cpp
index 599eb611b..70406330a 100644
--- a/src/commands/cmd_modules.cpp
+++ b/src/commands/cmd_modules.cpp
@@ -57,17 +57,17 @@ CmdResult CommandModules::Handle (const std::vector<std::string>&, User *user)
if (user->HasPrivPermission("servers/auspex"))
{
- std::string flags("Svsc");
+ std::string flags("SvscC");
int pos = 0;
- for (int mult = 1; mult <= VF_SERVICEPROVIDER; mult *= 2, ++pos)
+ for (int mult = 1; mult <= VF_OPTCOMMON; mult *= 2, ++pos)
if (!(V.Flags & mult))
flags[pos] = '-';
- user->WriteNumeric(702, "%s :0x%08lx %s %s :%s", user->nick.c_str(), (unsigned long)m, module_names[i].c_str(), flags.c_str(), V.version.c_str());
+ user->WriteNumeric(702, "%s :0x%08lx %s %s :%s - %s", user->nick.c_str(),(unsigned long)m, module_names[i].c_str(), flags.c_str(), V.description.c_str(), V.version.c_str());
}
else
{
- user->WriteNumeric(702, "%s :%s",user->nick.c_str(), module_names[i].c_str());
+ user->WriteNumeric(702, "%s :%s %s", user->nick.c_str(), module_names[i].c_str(), V.description.c_str());
}
}
user->WriteNumeric(703, "%s :End of MODULES list",user->nick.c_str());