admin: DelUser can now handle spaces in user names

The new CloneUser command allows one to create a user with a space in
its name and the code for reading znc.conf allows spaces too. So now
one can even get rid of this users again...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1478 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-04-04 18:43:24 +00:00
parent 5618aa2a47
commit c80690a9fc
+1 -1
View File
@@ -307,7 +307,7 @@ class CAdminMod : public CModule {
return;
}
const CString sUsername = sLine.Token(1);
const CString sUsername = sLine.Token(1, true);
if (sUsername.empty()) {
PutModule("Usage: deluser <username>");
return;