]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/pingtimer.cpp
Add support for blocking tag messages with the deaf mode.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / pingtimer.cpp
index 1c96259bf4f74c295083ea3c375ad1389b929986..8066e5ae9a1cb6a92e7be36e32f1e7ab4432d1c0 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2019 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -36,7 +37,7 @@ PingTimer::State PingTimer::TickInternal()
        if (state == PS_SENDPING)
        {
                // Last ping was answered, send next ping
-               server->GetSocket()->WriteLine(CmdBuilder("PING").push(server->GetID()));
+               server->GetSocket()->WriteLine(CmdBuilder("PING").push(server->GetId()));
                LastPingMsec = ServerInstance->Time() * 1000 + (ServerInstance->Time_ns() / 1000000);
                // Warn next unless warnings are disabled. If they are, jump straight to timeout.
                if (Utils->PingWarnTime)