Skip to content
Browse files

Re-add the ISpoof{File,Format} handling which was lost

Whoops, someone here failed at rebasing stuff.

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
1 parent 70c7745 commit 90fb9e8c29998528d6e0e508d2e59b3f939d8fd4 @psychon psychon committed
Showing with 29 additions and 0 deletions.
  1. +29 −0 znc.cpp
View
29 znc.cpp
@@ -1096,6 +1096,35 @@ bool CZNC::DoRehash(CString& sError)
msModules[sModName] = sArgs;
}
+ CString sISpoofFormat, sISpoofFile;
+ config.FindStringEntry("ispoofformat", sISpoofFormat);
+ config.FindStringEntry("ispooffile", sISpoofFile);
+ if (!sISpoofFormat.empty() || !sISpoofFile.empty()) {
+ CModule *pIdentFileMod = GetModules().FindModule("identfile");
+ if (!pIdentFileMod) {
+ CUtils::PrintAction("Loading Global Module [identfile]");
+
+ CString sModRet;
+ bool bModRet = GetModules().LoadModule("identfile", "", NULL, sModRet);
+
+ if (bModRet) {
+ sModRet = sModRet.Token(1, true, "identfile] ");
+ }
+
+ CUtils::PrintStatus(bModRet, sModRet);
+ if (!bModRet) {
+ sError = sModRet;
+ return false;
+ }
+
+ pIdentFileMod = GetModules().FindModule("identfile");
+ msModules["identfile"] = "";
+ }
+
+ pIdentFileMod->SetNV("File", sISpoofFile);
+ pIdentFileMod->SetNV("Format", sISpoofFormat);
+ }
+
config.FindStringVector("motd", vsList);
for (vit = vsList.begin(); vit != vsList.end(); ++vit) {
AddMotd(*vit);

0 comments on commit 90fb9e8

Please sign in to comment.
Something went wrong with that request. Please try again.