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

Track when our clients are introduced or not

This commit is contained in:
Adam
2011-08-12 12:46:11 -04:00
parent feee50e695
commit f3d7d4ee37
7 changed files with 27 additions and 4 deletions
+10
View File
@@ -39,6 +39,16 @@ void send_cmd(const Anope::string &source, const char *fmt, ...)
return;
}
if (!source.empty() && source.find(".") == Anope::string::npos)
{
BotInfo *bi = findbot(source);
if (bi != NULL && bi->introduced == false)
{
Log(LOG_DEBUG) << "Attempted to send \"" << source << " " << buf << "\" with source not introduced";
return;
}
}
if (!source.empty())
{
UplinkSock->Write(":%s %s", source.c_str(), buf);