summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 16:47:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 16:47:30 +0000
commite30482976af0325e93615f59588d9fe3baacb9d7 (patch)
tree076484688673db234bea377ad958bce0d7d9d52e
parentbcf2e57d8125fceb2f573fe77ac122158aa75a13 (diff)
Fix for problems with translations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7
-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)