Permalink
Browse files

controlpanel.cpp: Standardize error wordings

When a network cannot be found for a user, and where a command will output an error under such circumstances, use similar wording in each message.
  • Loading branch information...
1 parent e6414e3 commit e559bc66770a923ad3fea7a7841817c870fad71d @teward teward committed Jan 31, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 modules/controlpanel.cpp
View
@@ -723,7 +723,7 @@ class CAdminMod : public CModule {
}
if (pUser->FindNetwork(sNetwork)) {
- PutModule("[" + pUser->GetUserName() + "] already has a network named [" + sNetwork + "]");
+ PutModule("[" + pUser->GetUserName() + "] already has a network with the name [" + sNetwork + "]");
return;
}
@@ -756,7 +756,7 @@ class CAdminMod : public CModule {
CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork);
if (!pNetwork) {
- PutModule("[" + pUser->GetUserName() + "] does not have a network named [" + sNetwork + "]");
+ PutModule("[" + pUser->GetUserName() + "] does not have a network with the name [" + sNetwork + "]");
return;
}
@@ -854,7 +854,7 @@ class CAdminMod : public CModule {
CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork);
if (!pNetwork) {
- PutModule("[" + sUserName + "] does not have a network named [" + sNetwork + "]");
+ PutModule("[" + sUserName + "] does not have a network with the name [" + sNetwork + "]");
return;
}
@@ -891,7 +891,7 @@ class CAdminMod : public CModule {
CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork);
if (!pNetwork) {
- PutModule("[" + sUserName + "] does not have a network [" + sNetwork + "]");
+ PutModule("[" + sUserName + "] does not have a network with the name [" + sNetwork + "]");
return;
}

0 comments on commit e559bc6

Please sign in to comment.