summaryrefslogtreecommitdiff
path: root/src/irc/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/proxy')
-rw-r--r--src/irc/proxy/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index 0aeb553c..d4c6fafa 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -144,7 +144,7 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args)
}
if (strcmp(cmd, "PING") == 0) {
char *server = strchr(args, ':');
- if (server == NULL || strcmp(server, "proxy") == 0) {
+ if (server == NULL || strcmp(server+1, "proxy") == 0) {
if (server != NULL) *server = '\0';
if (*args == '\0') args = client->nick;
proxy_outdata(client, "PONG proxy :%s\n", args);