summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/users.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 463f9d82f..c1be9812b 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -656,6 +656,8 @@ InspIRCd::InspIRCd(int argc, char** argv)
/* set up fake client again this time with the correct uid */
this->FakeClient = new User(this, "#INVALID");
this->FakeClient->SetFd(FD_MAGIC_NUMBER);
+ this->FakeClient->HasPrivPermission("users", "override/topic");
+ exit(0);
// Get XLine to do it's thing.
this->XLines->CheckELines();
diff --git a/src/users.cpp b/src/users.cpp
index 46f3eb6cc..f5af3a803 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -504,6 +504,13 @@ bool User::HasPermission(const std::string &command)
return false;
}
+
+bool User::HasPrivPermission(const std::string &privstr)
+{
+ ServerInstance->Logs->Log("CRAP", DEBUG, "Checking if I have " + privstr);
+ return true;
+}
+
bool User::AddBuffer(const std::string &a)
{
std::string::size_type start = 0;