All pastes #432293 Raw Edit

irssi-proxy whowas

public text v1 · immutable
#432293 ·published 2007-04-10 04:34 UTC
rendered paste body
--- irssi-0.8.10/src/irc/proxy/listen.c 2005-12-08 11:32:46.000000000 -0600
+++ irssi-0.8.10-rubin/src/irc/proxy/listen.c   2007-04-09 23:35:21.000000000 -0500
@@ -201,21 +201,23 @@
        if (strcmp(cmd, "WHO") == 0)
                grab_who(client, args);
        else if (strcmp(cmd, "WHOIS") == 0) {
                char *p;
 
                /* convert dots to spaces */
                for (p = args; *p != '\0'; p++)
                        if (*p == ',') *p = ' ';
 
                proxy_redirect_event(client, "whois", 1, args, TRUE);
-       } else if (strcmp(cmd, "ISON") == 0)
+       } else if (strcmp(cmd, "WHOWAS") == 0) {
+                proxy_redirect_event(client, "whowas", 1, args, TRUE);
+        } else if (strcmp(cmd, "ISON") == 0)
                proxy_redirect_event(client, "ison", 1, args, -1);
        else if (strcmp(cmd, "USERHOST") == 0)
                proxy_redirect_event(client, "userhost", 1, args, -1);
        else if (strcmp(cmd, "MODE") == 0) {
                /* convert dots to spaces */
                char *slist, *str, mode, *p;
                int argc;
 
                p = strchr(args, ' ');
                if (p != NULL) *p++ = '\0';