From e30482976af0325e93615f59588d9fe3baacb9d7 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Aug 2007 16:47:30 +0000 Subject: [PATCH] Fix for problems with translations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 2 +- src/modules/m_remove.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ctables.h b/include/ctables.h index 105b439a3..7bd73448c 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -108,7 +108,7 @@ class CoreExport command_t : public Extensible total_bytes = 0; source = ""; syntax = ""; - translation.push_back(TR_END); + translation.clear(); } /** Handle the command from a user. diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index feb2afa85..cbb7138d7 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -211,6 +211,9 @@ class cmd_remove : public command_t, public RemoveBase this->source = "m_remove.so"; syntax = " []"; TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END); + + for (size_t x = 0; x < translation.size(); x++) + printf("translation[%ld] = %ld\n", x, translation[x]); } CmdResult Handle (const char** parameters, int pcnt, userrec *user) -- 2.39.5