summaryrefslogtreecommitdiff
path: root/src/gui/chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r--src/gui/chat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h
index 3102e3bc..db2d9843 100644
--- a/src/gui/chat.h
+++ b/src/gui/chat.h
@@ -181,6 +181,16 @@ class ChatWindow : public Window, public gcn::ActionListener {
/** Constructs failed messages for actions */
std::string const_msg(CHATSKILL);
+ /**
+ * Cuts a string into two on a per word basis
+ * @param value The string to be cut, it may be modified
+ * in the function.
+ * @param maximumLength The length after which the string
+ * should be cut.
+ * @return The cut off section of the string
+ */
+ std::string cut_string(std::string& value, unsigned int maximumLength);
+
/** Input box for chat messages */
gcn::TextField *chatInput;
};