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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user