From a67b9de1742efbff29ec08093b220565eab7df23 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 19 Jul 2008 20:34:14 +0000 Subject: 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 --- src/users.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index a0ed42446..3e9baba72 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -205,8 +205,6 @@ User::User(InspIRCd* Instance, const std::string &uid) : ServerInstance(Instance AllowedOperCommands = NULL; chans.clear(); invites.clear(); - memset(modes,0,sizeof(modes)); - memset(snomasks,0,sizeof(snomasks)); if (uid.empty()) uuid.assign(Instance->GetUID(), 0, UUID_LENGTH - 1); -- cgit v1.3.1-10-gc9f91