Index: Makefile.in
--- Makefile.in.orig	2021-03-14 19:32:27.000000000 +0100
+++ Makefile.in	2021-07-09 18:51:04.256630000 +0200
@@ -64,7 +64,7 @@
 libdir = $(DESTDIR)@libdir@
 libexecdir = $(DESTDIR)@libexecdir@
 # @mandir@ tends to be $datarootdir which already has $DESTDIR.
-mandir = @mandir@/man1
+mandir = $(DESTDIR)@mandir@/man1
 
 # Where the ircII binary will be installed.
 # 'make install' will compile and install the program
Index: include/whois.h
--- include/whois.h.orig	2021-07-09 18:51:04.256780000 +0200
+++ include/whois.h	2021-07-09 18:51:27.498510000 +0200
@@ -62,6 +62,7 @@
 	void	whois_name(u_char *, u_char *, u_char **);
 	void	whowas_name(u_char *, u_char *, u_char **);
 	void	whois_channels(u_char *, u_char *, u_char **);
+	void	whois_loggedinas(u_char *, u_char **);
 	void	whois_server(u_char *, u_char **);
 	void	whois_oper(u_char *, u_char **);
 	void	whois_lastcom(u_char *, u_char *, u_char **);
Index: source/numbers.c
--- source/numbers.c.orig	2021-03-14 19:32:27.000000000 +0100
+++ source/numbers.c	2021-07-09 18:51:04.257020000 +0200
@@ -470,6 +470,10 @@
 		funny_mode(from, ArgList);
 		break;
 
+	case 330:		/* #define RPL_WHOISLOGGEDIN    330 */
+		whois_loggedinas(from, ArgList);
+		break;
+
 	case 341:		/* #define RPL_INVITING         341 */
 		invite(commstr, from, ArgList);
 		break;
Index: source/translat.c
--- source/translat.c.orig	2021-03-14 19:32:27.000000000 +0100
+++ source/translat.c	2021-07-09 18:51:04.257179000 +0200
@@ -821,18 +821,30 @@
 u_char *
 current_irc_encoding(void)
 {
+#ifdef HAVE_ICONV_OPEN
 	return irc_encoding;
+#else
+    return NULL;
+#endif
 }
 
 u_char *
 current_display_encoding(void)
 {
+#ifdef HAVE_ICONV_OPEN
 	return display_encoding;
+#else
+    return NULL;
+#endif
 }
 
 u_char *
 current_input_encoding(void)
 {
+#ifdef HAVE_ICONV_OPEN
 	return input_encoding;
+#else
+    return NULL;
+#endif
 }
 #endif /* HAVE_ICONV_OPEN */
Index: source/whois.c
--- source/whois.c.orig	2021-03-14 19:32:27.000000000 +0100
+++ source/whois.c	2021-07-09 18:51:04.257365000 +0200
@@ -543,6 +543,27 @@
 }
 
 /*
+ * whois_server: Called in numbers.c when a numeric of 330 is received.
+ * Ratbox IRC sends ":%s 330 %s %s %s :is logged in as" with args
+ * me.name, data->client->name, data->target->name, data->target->user->suser
+ */
+void
+whois_loggedinas(from, ArgList)
+	u_char	*from;
+	u_char	**ArgList;
+{
+	if (!ignore_whois_crap) {
+		u_char *nick, *user;
+		if ((nick = ArgList[0]) && (user = ArgList[1]) &&
+				do_hook(current_numeric, "%s %s %s %s", from,
+					nick, user, ArgList[2])) {
+			put_it("%s %s is logged in as %s", numeric_banner(),
+				nick, user);
+		}
+	}
+}
+
+/*
  * whois_oper: This displays the operator status of a user, as returned by
  * numeric 313 from the server.  If the ignore_whois_crap flag is set,
  * nothing is dispayed. 
