summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 13:47:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 13:47:53 +0000
commit062f72b3e9bbc05635d94d7fb292a081fdf5503c (patch)
treeeffa053d6ab4c8c7fe92df45c71deb5335bbc85b
parent6aecd9cfa70f86af2dc981c63eb8ec839a416abb (diff)
Fixed 'no such server' when server is found
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1295 e03df62e-2008-0410-955e-edbf42e46eb7
-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;
}