Update twister.cpp

This commit is contained in:
Denis Ryabov 2014-11-20 01:30:28 +03:00
parent 5809846532
commit 23a684f765

View File

@ -1798,7 +1798,7 @@ Value newpostmsg(const Array& params, bool fHelp)
BOOST_FOREACH(string const& token, tokens) { BOOST_FOREACH(string const& token, tokens) {
if( token.length() >= 2 ) { if( token.length() >= 2 ) {
char delim = token.at(0); char delim = token.at(0);
if( delim != '#' && delim != '@') continue; if( delim != '#' && delim != '@' ) continue;
string target = (delim == '#') ? "hashtag" : "mention"; string target = (delim == '#') ? "hashtag" : "mention";
string word = token.substr(1); string word = token.substr(1);
#ifdef HAVE_BOOST_LOCALE #ifdef HAVE_BOOST_LOCALE