1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 08:56:39 +02:00

Added chanserv/log

This commit is contained in:
Adam
2011-09-03 01:10:12 -04:00
parent 19e0b87aa1
commit 1478b5bbd7
18 changed files with 340 additions and 83 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ void BotInfo::Join(Channel *c, ChannelStatus *status)
/* Should we be invited? */
if (c->HasMode(CMODE_INVITE) || (limit && c->users.size() >= limit))
ircdproto->SendNoticeChanops(this, c, "%s invited %s into the channel.", this->nick.c_str(), this->nick.c_str());
ircdproto->SendNotice(this, "@" + c->name, "%s invited %s into the channel.", this->nick.c_str(), this->nick.c_str());
ModeManager::ProcessModes();
}
@@ -229,7 +229,7 @@ void BotInfo::OnMessage(User *u, const Anope::string &message)
if (!c->HasFlag(CFLAG_ALLOW_UNREGISTERED) && !u->IsIdentified())
{
u->SendMessage(this, NICK_IDENTIFY_REQUIRED);
Log(LOG_COMMAND, "denied", this) << "Access denied for unregistered user " << u->GetMask() << " with command " << c->name;
Log(LOG_NORMAL, "denied", this) << "Access denied for unregistered user " << u->GetMask() << " with command " << c->name;
return;
}