From f240285155d115ee3a0fd437944f2bec05a0c14c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Dec 2006 20:00:33 +0000 Subject: Improve the way 005 ISUPPORT is sent to users when they connect, cache it in a much more sane format which is much simpler to spool to them git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5978 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_version.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/cmd_version.cpp') diff --git a/src/cmd_version.cpp b/src/cmd_version.cpp index 311659e59..5a0e2c19e 100644 --- a/src/cmd_version.cpp +++ b/src/cmd_version.cpp @@ -28,26 +28,7 @@ extern "C" command_t* init_command(InspIRCd* Instance) CmdResult cmd_version::Handle (const char** parameters, int pcnt, userrec *user) { - std::stringstream out(ServerInstance->Config->data005); - std::string token = ""; - std::string line5 = ""; - int token_counter = 0; - user->WriteServ("351 %s :%s",user->nick,ServerInstance->GetVersionString().c_str()); - - while (!out.eof()) - { - out >> token; - line5 = line5 + token + " "; - token_counter++; - - if ((token_counter >= 13) || (out.eof() == true)) - { - user->WriteServ("005 %s %s:are supported by this server",user->nick,line5.c_str()); - line5 = ""; - token_counter = 0; - } - } - + ServerInstance->Config->Send005(user); return CMD_SUCCESS; } -- cgit v1.3.1-10-gc9f91