From 12c67fb0e5de72c127f62a1eed6cd5e5627f3c91 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 4 Oct 2017 14:10:19 +0100 Subject: Fix RPL_SERVERVERSION treating the modes as a single parameter. --- include/mode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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 /** Cached mode list for use in 004 numeric */ - std::string Cached004ModeList; + TR1NS::array Cached004ModeList; public: typedef std::vector ListModeList; @@ -755,13 +755,13 @@ class CoreExport ModeParser : public fakederef */ 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& 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 void ShowListModeList(User* user, Channel* chan, ModeHandler* mh); }; -inline const std::string& ModeParser::GetModeListFor004Numeric() +inline const TR1NS::array& ModeParser::GetModeListFor004Numeric() { return Cached004ModeList; } -- cgit v1.2.3