From 8aeb34aa15bfc32e8894c652f09673c2fb27a32f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Apr 2004 14:38:13 +0000 Subject: Fix to services sending quits with no reasons git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@695 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 0e8d5e872..f8a410dc8 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -2186,6 +2186,10 @@ void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv) } if (!strcmp(command,"QUIT")) { + if ((!udp_msg) || (!strcmp(data,"")) || (strcmp(data,":"))) + { + strcpy(data,":No reason"); + } if (!strcmp(data,":")) { strcpy(data,":No reason"); -- cgit v1.3.1-10-gc9f91