mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Treat all WHOIS requests as remote.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2203 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e173a416d2
commit
6e2b0d41d9
@ -156,15 +156,13 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args,
|
|||||||
if (strcmp(cmd, "WHO") == 0)
|
if (strcmp(cmd, "WHO") == 0)
|
||||||
grab_who(client, args);
|
grab_who(client, args);
|
||||||
else if (strcmp(cmd, "WHOIS") == 0) {
|
else if (strcmp(cmd, "WHOIS") == 0) {
|
||||||
int remote;
|
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
/* convert dots to spaces */
|
/* convert dots to spaces */
|
||||||
remote = strchr(args, ' ') != NULL;
|
|
||||||
for (p = args; *p != '\0'; p++)
|
for (p = args; *p != '\0'; p++)
|
||||||
if (*p == ',') *p = ' ';
|
if (*p == ',') *p = ' ';
|
||||||
|
|
||||||
proxy_redirect_event(client, "whois", 1, args, remote);
|
proxy_redirect_event(client, "whois", 1, args, TRUE);
|
||||||
} else if (strcmp(cmd, "ISON") == 0)
|
} else if (strcmp(cmd, "ISON") == 0)
|
||||||
proxy_redirect_event(client, "ison", 1, args, -1);
|
proxy_redirect_event(client, "ison", 1, args, -1);
|
||||||
else if (strcmp(cmd, "USERHOST") == 0)
|
else if (strcmp(cmd, "USERHOST") == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user