summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 23:41:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 23:41:45 +0000
commit033640feb2f01c6d6d704b01bbafa1a98d6c2d61 (patch)
treedaba112f8617deef1237a98c9ecba26bd119a9ad /src/modules/m_check.cpp
parent9ea4af047d33d552c953f4cdddf1250cd936323f (diff)
w00t may want to check this works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3536 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index f1a160b98..aaaf10930 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -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)
{