summaryrefslogtreecommitdiff
path: root/src/send.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-12 12:46:11 -0400
committerAdam <Adam@anope.org>2011-08-12 12:46:11 -0400
commitf3d7d4ee3799513eee820d6c79d4e925fc47760e (patch)
tree583e40fcb17d66a523493b9edf4ef5c5ed321fa1 /src/send.cpp
parentfeee50e6959171123773417caab73ecad3af824b (diff)
Track when our clients are introduced or not
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);