docs: def on_ctcp(self, connection, event):
          """Default handler for ctcp events.
  
          Replies to VERSION and PING requests and relays DCC requests
          to the on_dccchat method.
          """
          nick = event.source.nick
          if event.arguments[0] == "VERSION":
              connection.ctcp_reply(nick, "VERSION " + self.get_version())
          elif event.arguments[0] == "PING":
              if len(event.arguments) > 1:
                  connection.ctcp_reply(nick, "PING " + event.arguments[1])
          elif (
              event.arguments[0] == "DCC"
                  and event.arguments[1].split(" ", 1)[0] == "CHAT"):
              self.on_dccchat(connection, event)