1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
25 #include <ext/hash_map>
43 #include "inspstring.h"
45 #include "helperfuncs.h"
47 #include "socketengine.h"
49 #include "command_parse.h"
50 #include "cmd_version.h"
52 extern ServerConfig* Config;
53 extern InspIRCd* ServerInstance;
55 void cmd_version::Handle (char **parameters, int pcnt, userrec *user)
57 WriteServ(user->fd,"351 %s :%s",user->nick,ServerInstance->GetVersionString().c_str());
58 std::stringstream out(Config->data005);
59 std::string token = "";
60 std::string line5 = "";
61 int token_counter = 0;
65 line5 = line5 + token + " ";
67 if ((token_counter >= 13) || (out.eof() == true))
69 WriteServ(user->fd,"005 %s %s:are supported by this server",user->nick,line5.c_str());