Added silc_server_send_opers[_notify] to send packets to operators.
[silc.git] / apps / silcd / server.h
index d318233ec65e9fa69bd0fc6a94fdcc00723028ed..5ba6a0bacb417627446b13b14cd52b18a2a5c247 100644 (file)
@@ -98,7 +98,16 @@ do {                                                         \
   silc_server_send_notify(server, sock, FALSE,                         \
                          type, 1, __fmt__, strlen(__fmt__));   \
   silc_free(__fmt__);                                          \
-} while(0);
+} while(0)
+
+/* Send notify to operators */
+#define SILC_SERVER_SEND_OPERS(server, route, local, type, fmt)                \
+do {                                                                   \
+  char *__fmt__ = silc_format fmt;                                     \
+  silc_server_send_opers_notify(server, route, local,                  \
+                               type, 1, __fmt__, strlen(__fmt__));     \
+  silc_free(__fmt__);                                                  \
+} while(0)
 
 /* Check whether rekey protocol is active */
 #define SILC_SERVER_IS_REKEY(sock)                                     \