]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf.c
Rename Conf_IsService() to Conf_NickIsService()
[ngircd-alex.git] / src / ngircd / conf.c
index 923cdc025bf50be6bad356ff56e802b3e1a8dc14..16ad98c21a40c185cc5b371f387e0372a3ee2cbe 100644 (file)
@@ -636,13 +636,18 @@ Conf_AddServer(const char *Name, UINT16 Port, const char *Host,
 }
 
 /**
- * Check if the given nick name is an service.
+ * Check if the given nick name is reserved for services on a particular server.
  *
+ * @param ConfServer The server index to check.
+ * @param Nick The nick name to check.
  * @returns true if the given nick name belongs to an "IRC service".
  */
 GLOBAL bool
-Conf_IsService(int ConfServer, const char *Nick)
+Conf_NickIsService(int ConfServer, const char *Nick)
 {
+       assert (ConfServer >= 0);
+       assert (ConfServer < MAX_SERVERS);
+
        return MatchCaseInsensitive(Conf_Server[ConfServer].svs_mask, Nick);
 }