diff options
author | Adam <Adam@anope.org> | 2013-07-26 07:36:17 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-26 07:38:42 -0400 |
commit | 2450a64bf4dc55635c9f4c1c829f149dc6621b41 (patch) | |
tree | e946c4a76eb841b80671d6da6d6ad3e3a56a0711 /src/uplink.cpp | |
parent | b48293a6327a5e28baf528cda004c1d5aeea872d (diff) |
Interally quit servers when juped
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r-- | src/uplink.cpp | 7 |
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; |