extern void conf_add_sline(const char* const* fields, int count);
extern void clear_slines(void);
-extern int conf_check_slines(struct Client *cptr);
-+extern struct sline *find_spoofblock(struct Client *cptr, char *spoofhost, char *password);
++extern struct sline *find_spoofblock(struct Client *cptr, char *host, char *password);
+extern int apply_spoofblock(struct Client *cptr);
extern void free_spoofhost(struct sline *spoof);
+ * Find matching spoof block for a user for the given spoofhost and password
+ *
+ * @param cptr User wanting to get a spoof host.
-+ * @param spoofhost Spoof host to look for.
++ * @param host Spoof host to look for.
+ * @param password Password given by user (can be NULL).
+ *
+ * @return pointer to the matching spoofblock is found, else NULL
+ *
+ */
-+struct sline *find_spoofblock(struct Client *cptr, char *spoofhost, char *password) {
++struct sline *find_spoofblock(struct Client *cptr, char *host, char *password) {
-int
-conf_check_slines(struct Client *cptr)
+ int r = 0;
+ char *error;
+
-+ Debug((DEBUG_INFO, "find_spoofblock() cptr=%C spoofhost=%s password=%s",
-+ cptr, spoofhost, password));
++ Debug((DEBUG_INFO, "find_spoofblock() cptr=%C host=%s password=%s",
++ cptr, host, password));
for (sconf = GlobalSList; sconf; sconf = sconf->next) {
+
+ result = r;
+
+ /* check spoofhost */
-+ if (strcasecmp(sconf->spoofhost, spoofhost) != 0)
++ if (strcasecmp(sconf->spoofhost, host) != 0)
+ continue;
+ r = 1;
+
+ /* TODO: L_INFO LOG_NOSNOTICE */
+ /* log best result we got */
+ log_write(LS_SETHOST, L_INFO, 0, "%s SETHOST %s (failed: %s) [password: %s]",
-+ get_client_name(cptr, SHOW_IP), spoofhost,
++ get_client_name(cptr, SHOW_IP), host,
+ error, password ? "yes" : "no");
+ return NULL;
+}