diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-04-14 21:55:53 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-04-14 21:56:06 +0200 |
commit | e11fe27b96ba5eeaae9abb04071888548e088c12 (patch) | |
tree | ad72c1f2bec6d6312afeb90cfb09745327337368 /weechat | |
parent | ca207b038bf4c150f008042e1bf3a102e68880ca (diff) |
weechat: Handle _push ping by doing nothing
Diffstat (limited to 'weechat')
-rw-r--r-- | weechat/net.c | 2 |
1 files changed, 2 insertions, 0 deletions
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'){ |