8 #include <boost/version.hpp>
9 #if BOOST_VERSION != 102800
10 #include <boost/python.hpp>
13 #include <boost/python/objects.hpp>
16 #if BOOST_VERSION != 102800
17 #include <boost/python/object.hpp>
18 #include <boost/python/dict.hpp>
20 #include <boost/python/objects.hpp>
32 vector< std::string >who;
33 vector< std::string >say;
34 vector< std::string >sounds;
37 who.push_back(
"bar" );
41 std::string::size_type
first = newmsg.find_first_of(
"[" );
43 string::size_type last = newmsg.find_first_of(
"]" );
44 if ( first != string::npos && (first+1) < newmsg.size() ) {
45 newsound = newmsg.substr( first+1, last-first-1 );
46 newmsg = newmsg.substr( 0, first );
49 sounds.push_back( newsound );
50 say.push_back( newmsg );
53 int index = rand()%say.size();
117 Python::reseterrors();
119 Python::reseterrors();