The SILC_OPER_STATS_UPDATE macro now also removes the mode
[silc.git] / apps / silcd / server_internal.h
index 56a4a52ae20e83a0207349c5fb29e06923d06807..7e773c863d3c37bd492023024b473875eda66096 100644 (file)
@@ -177,6 +177,7 @@ do {                                                \
       server->stat.my_ ## type ## _ops--;      \
     if (server->server_type == SILC_ROUTER)    \
       server->stat. type ## _ops--;            \
+    (c)->mode &= ~(mod);                       \
   }                                            \
 } while(0)