mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
admin: Properly report errors in "addserver"
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2172 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -601,8 +601,10 @@ class CAdminMod : public CModule {
|
|||||||
if (!pUser)
|
if (!pUser)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pUser->AddServer(sServer);
|
if (pUser->AddServer(sServer))
|
||||||
PutModule("Added IRC Server: " + sServer);
|
PutModule("Added IRC Server: " + sServer);
|
||||||
|
else
|
||||||
|
PutModule("Could not add IRC server");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadModuleForUser(const CString& sLine) {
|
void LoadModuleForUser(const CString& sLine) {
|
||||||
|
|||||||
Reference in New Issue
Block a user