From ca5fcc734dd965600c2c2cab06eded95a4c82054 Mon Sep 17 00:00:00 2001 From: bonkmaykr Date: Mon, 29 Jan 2024 04:53:11 -0600 Subject: [PATCH] Fix wrong message in chat when world has been found --- conf.examples/bot.conf | 1 + src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.examples/bot.conf b/conf.examples/bot.conf index 2cb44f4..5194d66 100644 --- a/conf.examples/bot.conf +++ b/conf.examples/bot.conf @@ -57,6 +57,7 @@ help_whisper_message=%s, you have been whispered with more information. time_msg=It is %s. roll_msg=%s rolled a %i. world_not_found_msg=Sorry, I don't know that one. +world_found_msg=Taking you there now, teleport to me! roomusers_msg=There are %i users in this room. conf_reload_msg=My configuration has been reloaded. ping_msg=Response recieved in %ims. diff --git a/src/main.cpp b/src/main.cpp index 4046902..00e3d49 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -846,7 +846,7 @@ void lookUpWorldName(std::string alias, char* buffer/*replies*/) { details.position.z = (*key)["position"][2]; details.position.yaw = (*key)["position"][3]; - sprintf(buffer, mainConf->getValue("world_not_found_msg", "Taking you there now, teleport to me!").c_str()); + sprintf(buffer, mainConf->getValue("world_found_msg", "Taking you there now, teleport to me!").c_str()); handleTeleportRequest(details); } else {