summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-26 07:36:17 -0400
committerAdam <Adam@anope.org>2013-07-26 07:38:42 -0400
commit2450a64bf4dc55635c9f4c1c829f149dc6621b41 (patch)
treee946c4a76eb841b80671d6da6d6ad3e3a56a0711 /src/uplink.cpp
parentb48293a6327a5e28baf528cda004c1d5aeea872d (diff)
Interally quit servers when juped
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 871121cc9..282d8be05 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -173,7 +173,12 @@ UplinkSocket::Message::~Message()
}
else if (this->user != NULL)
{
- if (this->user->server != Me && !this->user->server->IsJuped())
+ if (this->user->server == NULL)
+ {
+ Log(LOG_DEBUG) << "Attempted to send \"" << this->buffer.str() << "\" from " << this->user->nick << " who has no server (I'm not introduced?)";
+ return;
+ }
+ else if (this->user->server != Me && !this->user->server->IsJuped())
{
Log(LOG_DEBUG) << "Attempted to send \"" << this->buffer.str() << "\" from " << this->user->nick << " who is not from me?";
return;