]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
Fixes to some stuff that writes on memory it shouldn't (thanks psychon).
[user/henk/code/inspircd.git] / src / channels.cpp
index 878fdc1a28dc1e30478e49ff56edd6cebe6f7822..8628148cf7d3d89ebf0ded664c1194b13e519f3a 100644 (file)
@@ -31,7 +31,7 @@ Channel::Channel(InspIRCd* Instance, const std::string &cname, time_t ts) : Serv
 
 
        maxbans = topicset = limit = 0;
-       memset(&modes, 0, 64);
+       modes.reset();
 }
 
 void Channel::SetMode(char mode,bool mode_on)