aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorGravatar brain2004-04-22 14:38:13 +0000
committerGravatar brain2004-04-22 14:38:13 +0000
commit8aeb34aa15bfc32e8894c652f09673c2fb27a32f (patch)
treeb0926e540f9b189804c6e033d46bed1351b1009f /src/commands.cpp
parentAdded tons of services/uline stuff. DO NOT USE YET! services data isnt replic... (diff)
downloadinspircd++-8aeb34aa15bfc32e8894c652f09673c2fb27a32f.tar.gz
inspircd++-8aeb34aa15bfc32e8894c652f09673c2fb27a32f.tar.bz2
inspircd++-8aeb34aa15bfc32e8894c652f09673c2fb27a32f.zip
Fix to services sending quits with no reasons
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@695 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp4
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");