From e11fe27b96ba5eeaae9abb04071888548e088c12 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 14 Apr 2017 21:55:53 +0200 Subject: weechat: Handle _push ping by doing nothing --- weechat/net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weechat/net.c b/weechat/net.c index 8c6cee5..6324cb7 100644 --- a/weechat/net.c +++ b/weechat/net.c @@ -152,6 +152,8 @@ void net_handle_recv(int fd,const char *msg){ }; cb(fd,res,payload); free(res.name); + } else if(cmdlen==4&&memcmp(cmd,"ping",4)==0){ + // Do nothing } else if(cmdlen==4&&memcmp(cmd,"list",4)==0){ struct net_response res=(struct net_response){.type=NET_LIST}; if(*p=='\0'){ -- cgit v1.2.3-70-g09d2