diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-14 12:59:19 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-14 12:59:19 +0100 |
commit | da45f24ff1ab4fbac1b674c820796e9b3850a380 (patch) | |
tree | cae234ce6d5c645252587c22718bc23a8241f3ab /include | |
parent | 146d85b5dea9ecb803a9a47c68b5489905634125 (diff) |
Change allocation of InspIRCd::chanlist to be physically part of the object containing it
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index cda15e619..1ceb64693 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -383,7 +383,7 @@ class CoreExport InspIRCd /** Channel list, a hash_map containing all channels XXX move to channel manager class */ - chan_hash* chanlist; + chan_hash chanlist; /** List of the open ports */ @@ -463,7 +463,7 @@ class CoreExport InspIRCd /** Get a hash map containing all channels, keyed by their name * @return A hash map mapping channel names to Channel pointers */ - chan_hash& GetChans() { return *chanlist; } + chan_hash& GetChans() { return chanlist; } /** Return true if a channel name is valid * @param chname A channel name to verify |