Watcher list support added.
[silc.git] / apps / silcd / server_util.h
index 5a531037f7e6dfddba77861227531daee756e702..6b421f238d0e86b3f1c8a9f477981a62b4c99eb3 100644 (file)
@@ -149,4 +149,17 @@ void silc_server_kill_client(SilcServer server,
                             void *killer_id,
                             SilcIdType killer_id_type);
 
+/* This function checks whether the `client' nickname is being watched
+   by someone, and notifies the watcher of the notify change of notify
+   type indicated by `notify'. */
+bool silc_server_check_watcher_list(SilcServer server,
+                                   SilcClientEntry client,
+                                   const char *new_nick,
+                                   SilcNotifyType notify);
+
+/* Remove the `client' from watcher list. After calling this the `client'
+   is not watching any nicknames. */
+bool silc_server_del_from_watcher_list(SilcServer server,
+                                      SilcClientEntry client);
+
 #endif /* SERVER_UTIL_H */