summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ctables.h2
-rw-r--r--src/modules/m_remove.cpp3
2 files changed, 4 insertions, 1 deletions
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 = "<core>";
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 = "<nick> <channel> [<reason>]";
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)