summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
commit12c67fb0e5de72c127f62a1eed6cd5e5627f3c91 (patch)
tree92e9f20fa52fe18bd91d6f99fbe0e2a6cce8e9d3 /include
parente97d5cf4fa46fe4de3d5a4c0ce603048c24ddbb3 (diff)
Fix RPL_SERVERVERSION treating the modes as a single parameter.
Diffstat (limited to 'include')
-rw-r--r--include/mode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mode.h b/include/mode.h
index 6b481e779..ec293e497 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -586,7 +586,7 @@ class CoreExport ModeParser : public fakederef<ModeParser>
/** Cached mode list for use in 004 numeric
*/
- std::string Cached004ModeList;
+ TR1NS::array<std::string, 3> Cached004ModeList;
public:
typedef std::vector<ListModeBase*> ListModeList;
@@ -755,13 +755,13 @@ class CoreExport ModeParser : public fakederef<ModeParser>
*/
PrefixMode* FindPrefix(unsigned const char pfxletter);
- /** Returns a list of modes, space seperated by type:
+ /** Returns an array of modes:
* 1. User modes
* 2. Channel modes
* 3. Channel modes that require a parameter when set
* This is sent to users as the last part of the 004 numeric
*/
- const std::string& GetModeListFor004Numeric();
+ const TR1NS::array<std::string, 3>& GetModeListFor004Numeric();
/** Generates a list of modes, comma seperated by type:
* 1; Listmodes EXCEPT those with a prefix
@@ -800,7 +800,7 @@ class CoreExport ModeParser : public fakederef<ModeParser>
void ShowListModeList(User* user, Channel* chan, ModeHandler* mh);
};
-inline const std::string& ModeParser::GetModeListFor004Numeric()
+inline const TR1NS::array<std::string, 3>& ModeParser::GetModeListFor004Numeric()
{
return Cached004ModeList;
}