1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 21:16:39 +02:00

Add os_dns, a way to control your DNS zone via services

This commit is contained in:
Adam
2012-10-22 00:54:30 -04:00
parent d5b2f9cfa7
commit 0b9db15efc
12 changed files with 778 additions and 77 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ User::User(const Anope::string &snick, const Anope::string &sident, const Anope:
this->nc = NULL;
if (sserver) // Our bots are introduced on startup with no server
{
++sserver->Users;
Log(this, "connect") << (!svhost.empty() ? Anope::string("(") + svhost + ") " : "") << "(" << srealname << ") " << sip << " connected to the network (" << sserver->GetName() << ")";
}
++usercnt;
if (usercnt > maxusercnt)
@@ -241,7 +244,7 @@ User::~User()
Log(LOG_DEBUG_2) << "User::~User() called";
Log(this, "disconnect") << "(" << this->realname << ") " << "disconnected from the network (" << this->server->GetName() << ")";
--this->server->Users;
FOREACH_MOD(I_OnUserLogoff, OnUserLogoff(this));