mirror of
https://github.com/znc/znc.git
synced 2026-05-10 07:14:43 +02:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user