]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
w00t may want to check this works
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 7 Mar 2006 23:41:45 +0000 (23:41 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 7 Mar 2006 23:41:45 +0000 (23:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3536 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_check.cpp

index f1a160b98fe1bf04f230a998f523947304eb1ae2..aaaf10930f44844e95106eae38b9fdffc32c4b25 100644 (file)
@@ -80,34 +80,9 @@ class cmd_check : public command_t
                        }
 
                        chliststr = chlist(targuser, targuser);
-                       if (chliststr.length())
-                       {
-                               if (chliststr.length() > 400)
-                               {
-                                       /* XXX - this sucks. deal with it. */
-                                       std::stringstream chstream(chliststr);
-                                       std::string line = "";
-                                       std::string cname = "";
-                                       while (!chstream.eof())
-                                       {
-                                               chstream >> cname;
-                                               line = line + cname + " ";
-                                               if (line.length() > 400)
-                                               {
-                                                       Srv->SendTo(NULL, user, checkstr + " onchans " + line);
-                                                       line = "";
-                                               }
-                                       }
-                                       if (line.length())
-                                       {
-                                               Srv->SendTo(NULL, user, checkstr + " onchans " + line);
-                                       }
-                               }
-                               else
-                               {
-                                       Srv->SendTo(NULL, user, checkstr + " onchans " + chliststr);
-                               }                               
-                       }
+                       std::stringstream dump(chliststr);
+                       /* XXX - This doent suck so much */
+                       Srv->DumpText(user,checkstr + " onchans ", dump);
                }
                else if (targchan)
                {