summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index c584ca187..bcd198e87 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2860,7 +2860,10 @@ void handle_version(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"402 %s %s :Server %s has no version information",user->nick,parameters[0],parameters[0]);
return;
}
- WriteServ(user->fd,"402 %s %s :No such server",user->nick,parameters[0]);
+ if (!found)
+ {
+ WriteServ(user->fd,"402 %s %s :No such server",user->nick,parameters[0]);
+ }
}
return;
}