summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 3afe44bd6..2188e86ba 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -176,6 +176,14 @@ void IRCDProto::SendQuit(BotInfo *bi, const char *fmt, ...)
SendQuitInternal(bi, buf);
}
+void IRCDProto::SendPing(const char *servname, const char *who)
+{
+ if (!servname)
+ send_cmd(ircd->ts6 ? TS6SID : Config.ServerName, "PING %s", who);
+ else
+ send_cmd(ircd->ts6 ? TS6SID : Config.ServerName, "PING %s %s", servname, who);
+}
+
/**
* Send a PONG reply to a received PING.
* servname should be left NULL to send a one param reply.