From bfd94136c62b20f0a8e15d22815ef3a6e6438d49 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 1 Aug 2010 09:56:34 +0200 Subject: fixed enc_sha256 --- include/anope.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 4cd8fc2b0..be5c2f964 100644 --- a/include/anope.h +++ b/include/anope.h @@ -152,6 +152,11 @@ namespace Anope */ inline size_type length() const { return this->_string.length(); } + /** + * Resizes the string content to n characters. + */ + inline void resize(size_type n) { return this->_string.resize(n); } + /** * Erases characters from the string. */ @@ -311,6 +316,12 @@ namespace Anope * @return a vector with pointers to the messagehandlers (you can bind more than one handler to a message) */ extern CoreExport std::vector FindMessage(const string &name); + + /** Converts a string to hex + * @param the data to be converted + * @return a anope::string containing the hex value + */ + extern CoreExport string Hex(const string &data); } /** sepstream allows for splitting token seperated lists. -- cgit