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:
cflakes
2010-03-28 21:06:40 +00:00
parent 263d596379
commit b3b937fa2d

View File

@@ -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;