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/users.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index ed979e337..6dab25495 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1212,27 +1212,8 @@ void userrec::FullConnect(CullList* Goners) this->WriteServ("003 %s :This server was created %s %s", this->nick, __TIME__, __DATE__); this->WriteServ("004 %s %s %s %s %s %s", this->nick, ServerInstance->Config->ServerName, VERSION, ServerInstance->Modes->UserModeList().c_str(), ServerInstance->Modes->ChannelModeList().c_str(), ServerInstance->Modes->ParaModeList().c_str()); - // anfl @ #ratbox, efnet reminded me that according to the RFC this cant contain more than 13 tokens per line... - // so i'd better split it :) - std::stringstream out(ServerInstance->Config->data005); - std::string token = ""; - std::string line5 = ""; - int token_counter = 0; - - while (!out.eof()) - { - out >> token; - line5 = line5 + token + " "; - token_counter++; - - if ((token_counter >= 13) || (out.eof() == true)) - { - this->WriteServ("005 %s %s:are supported by this server", this->nick, line5.c_str()); - line5 = ""; - token_counter = 0; - } - } - + ServerInstance->Config->Send005(this); + this->ShowMOTD(); /* -- cgit v1.3.1-10-gc9f91