summaryrefslogtreecommitdiff
path: root/include/isupportmanager.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:42:22 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:42:22 +0200
commite7bdcd71dce911f64d8f0c85f4935dfa83a81dd3 (patch)
tree5f4bd070fb85ab99b15133f897a0817b3fdd2d03 /include/isupportmanager.h
parent831998ff16f28d0ab58c01aa2c47be488bf78b82 (diff)
Minor ISupportManager changes
- Make GetLines() a const method - Rename Lines to cachedlines - Get rid of a variable in Build()
Diffstat (limited to 'include/isupportmanager.h')
-rw-r--r--include/isupportmanager.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/isupportmanager.h b/include/isupportmanager.h
index c62cd1ae3..3915b8b1b 100644
--- a/include/isupportmanager.h
+++ b/include/isupportmanager.h
@@ -24,17 +24,14 @@ class CoreExport ISupportManager
{
private:
/** The generated lines which are sent to clients. */
- std::vector<std::string> Lines;
+ std::vector<std::string> cachedlines;
public:
/** (Re)build the ISUPPORT vector. */
void Build();
/** Returns the std::vector of ISUPPORT lines. */
- const std::vector<std::string>& GetLines()
- {
- return this->Lines;
- }
+ const std::vector<std::string>& GetLines() const { return cachedlines; }
/** Send the 005 numerics (ISUPPORT) to a user. */
void SendTo(LocalUser* user);