diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-19 20:34:14 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-19 20:34:14 +0000 |
commit | a67b9de1742efbff29ec08093b220565eab7df23 (patch) | |
tree | 1f0778b8e417fd24873b945f8d2e89a292a25942 /src/modes/umode_n.cpp | |
parent | e93827e41cdb958314eb669e94c9dd1280b691c9 (diff) |
Change modes in channels and users to use std::bitset instead of an array. This saves 56 bytes per channel, and 112 bytes per channel, with no loss in speed or ease of use in code. :). Thanks (VERY) much to Special for telling me about this.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10043 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/umode_n.cpp')
-rw-r--r-- | src/modes/umode_n.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes/umode_n.cpp b/src/modes/umode_n.cpp index ed08b60f4..ee3fe09b3 100644 --- a/src/modes/umode_n.cpp +++ b/src/modes/umode_n.cpp @@ -32,7 +32,7 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan { /* Fix for bug #310 reported by Smartys */ if (!dest->modes[UM_SNOMASK]) - memset(dest->snomasks, 0, sizeof(dest->snomasks)); + dest->snomasks.reset(); parameter = dest->ProcessNoticeMasks(parameter.c_str()); dest->modes[UM_SNOMASK] = true; |