summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modes/umode_n.cpp2
-rw-r--r--src/users.cpp2
2 files changed, 1 insertions, 3 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;
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);