summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index ccd58c95f..15b39b971 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -263,7 +263,8 @@ void IRCDProto::SendGlobops(const BotInfo *source, const char *fmt, ...)
void IRCDProto::SendSquit(Server *s, const Anope::string &message)
{
- UplinkSocket::Message() << "SQUIT " << s->GetName() << " :" << message;
+ UplinkSocket::Message() << "SQUIT " << s->GetSID() << " :" << message;
+ s->Delete(message);
}
void IRCDProto::SendNickChange(const User *u, const Anope::string &newnick)