Fix bugs and memory leaks in ban management.
[ircu2.10.12-pk.git] / ircd / m_silence.c
index 7a78d14dbfea4d1b681e087a7751c415c89d08dc..1be8a4b25218ace34081980b53f2634833b6fdae 100644 (file)
@@ -86,7 +86,7 @@ apply_silence(struct Client *sptr, const char *mask)
   /* Make the silence, set flags, and apply it. */
   sile = make_ban(mask);
   sile->flags |= flags;
-  return apply_ban(&cli_user(sptr)->silence, sile) ? NULL : sile;
+  return apply_ban(&cli_user(sptr)->silence, sile, 1) ? NULL : sile;
 }
 
 /** Apply and send silence updates for a user.