summaryrefslogtreecommitdiff
path: root/src/send.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/send.cpp')
-rw-r--r--src/send.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/send.cpp b/src/send.cpp
index c7a0608f8..28c1ca08c 100644
--- a/src/send.cpp
+++ b/src/send.cpp
@@ -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);