diff options
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |