+2005-06-27 Michael Poole <mdpoole@troilus.org>
+
+ * include/s_misc.h (get_sockhost): Remove the unused (and
+ deceptively named) get_sockhost().
+
+ * ircd/s_misc.c (get_sockhost): Likewise.
+
2005-06-25 Andrew Miller <a1kmm@amxl.com>
* ircd/ircd_crypt.c (ircd_crypt): strdup is not allowed, change to
struct Client *sptr, const char *pattern, ...);
extern void initstats(void);
extern char *date(time_t clock);
-extern void get_sockhost(struct Client *cptr, char *host);
extern int vexit_client_msg(struct Client *cptr, struct Client *bcptr,
struct Client *sptr, const char *pattern, va_list vl);
extern void tstats(struct Client *cptr, const struct StatDesc *sd,
return nbuf;
}
-/** Set cli_sockhost(cptr) from \a host.
- * If \a host contains an '@', copy starting after that byte.
- * Otherwise copy all of \a host.
- * @param cptr Client to operate on.
- * @param host hostname or user\@hostname string.
- */
-void get_sockhost(struct Client *cptr, char *host)
-{
- char *s;
- if ((s = strchr(host, '@')))
- s++;
- else
- s = host;
- ircd_strncpy(cli_sockhost(cptr), s, HOSTLEN);
-}
-
/**
* Exit one client, local or remote. Assuming for local client that
* all dependents already have been removed, and socket is closed.