diff options
author | Adam <Adam@anope.org> | 2011-08-12 12:46:11 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-12 12:46:11 -0400 |
commit | f3d7d4ee3799513eee820d6c79d4e925fc47760e (patch) | |
tree | 583e40fcb17d66a523493b9edf4ef5c5ed321fa1 /src/send.cpp | |
parent | feee50e6959171123773417caab73ecad3af824b (diff) |
Track when our clients are introduced or not
Diffstat (limited to 'src/send.cpp')
-rw-r--r-- | src/send.cpp | 10 |
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); |