Browse files

Add BindHost to Get/SetNetwork in *controlpanel

  • Loading branch information...
1 parent 335a363 commit cdd16f393390e4e184a28278d04b52b79afce229 @Nothing4You Nothing4You committed Mar 16, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 modules/controlpanel.cpp
View
6 modules/controlpanel.cpp
@@ -94,6 +94,7 @@ class CAdminMod : public CModule {
{"Altnick", str},
{"Ident", str},
{"RealName", str},
+ {"BindHost", str},
{"FloodRate", doublenum},
{"FloodBurst", integer},
};
@@ -419,6 +420,8 @@ class CAdminMod : public CModule {
PutModule("Ident = " + pNetwork->GetIdent());
} else if (sVar.Equals("realname")) {
PutModule("RealName = " + pNetwork->GetRealName());
+ } else if (sVar.Equals("bindhost")) {
+ PutModule("BindHost = " + pNetwork->GetBindHost());
} else if (sVar.Equals("floodrate")) {
PutModule("FloodRate = " + CString(pNetwork->GetFloodRate()));
} else if (sVar.Equals("floodburst")) {
@@ -474,6 +477,9 @@ class CAdminMod : public CModule {
} else if (sVar.Equals("realname")) {
pNetwork->SetRealName(sValue);
PutModule("RealName = " + pNetwork->GetRealName());
+ } else if (sVar.Equals("bindhost")) {
+ pNetwork->SetBindHost(sValue);
+ PutModule("BindHost = " + pNetwork->GetBindHost());
} else if (sVar.Equals("floodrate")) {
pNetwork->SetFloodRate(sValue.ToDouble());
PutModule("FloodRate = " + CString(pNetwork->GetFloodRate()));

0 comments on commit cdd16f3

Please sign in to comment.