You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.7 KiB
102 lines
2.7 KiB
Index: Makefile.in |
|
--- Makefile.in.orig 2017-07-04 05:57:08.000000000 +0200 |
|
+++ Makefile.in 2017-07-15 09:46:48.308931000 +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 2015-11-16 00:29:48.000000000 +0100 |
|
+++ include/whois.h 2017-07-15 09:46:48.309078000 +0200 |
|
@@ -62,6 +62,7 @@ |
|
void whois_name(u_char *, u_char **); |
|
void whowas_name(u_char *, u_char **); |
|
void whois_channels(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 **); |
|
Index: source/numbers.c |
|
--- source/numbers.c.orig 2017-07-02 18:16:15.000000000 +0200 |
|
+++ source/numbers.c 2017-07-15 09:46:48.309264000 +0200 |
|
@@ -480,6 +480,10 @@ |
|
funny_mode(from, ArgList); |
|
break; |
|
|
|
+ case 330: /* #define RPL_WHOISLOGGEDIN 330 */ |
|
+ whois_loggedinas(from, ArgList); |
|
+ break; |
|
+ |
|
case 341: /* #define RPL_INVITING 341 */ |
|
invite(from, ArgList); |
|
break; |
|
Index: source/translat.c |
|
--- source/translat.c.orig 2017-04-25 08:00:53.000000000 +0200 |
|
+++ source/translat.c 2017-07-15 09:46:48.309443000 +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 2017-07-02 18:16:15.000000000 +0200 |
|
+++ source/whois.c 2017-07-15 09:47:37.075177000 +0200 |
|
@@ -534,6 +534,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.
|
|
|