Fix admin.cpp. Search and replace isn't what it used to be.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1847 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1 parent
263d596379
commit
b3b937fa2d
1 file changed
+2
-2
+2
-2
@@ -379,12 +379,12 @@ class CAdminMod : public CModule {
|
||||
CString sChan = sLine.Token(3);
|
||||
CString sValue = sLine.Token(4, true);
|
||||
|
||||
if (value.empty()) {
|
||||
if (sValue.empty()) {
|
||||
PutModule("Usage: setchan <variable> <username> <chan> <value>");
|
||||
return;
|
||||
}
|
||||
|
||||
CUser* user = GetUser(sUsername);
|
||||
CUser* pUser = GetUser(sUsername);
|
||||
if (!pUser)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user