summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/Engine/TalkEngine.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-27 08:58:18 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-27 08:58:18 +0000
commit47f4d5c03a16988eab91de5e26218f8e0d35b8b8 (patch)
treeed8bb521a4301dfeea2e918f50830819db524762 /plugins/Boltun/src/Engine/TalkEngine.h
parent68a6aa6db2eb165cfbebebc891a41be2f6917f44 (diff)
Boltun common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/Engine/TalkEngine.h')
-rw-r--r--plugins/Boltun/src/Engine/TalkEngine.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/Boltun/src/Engine/TalkEngine.h b/plugins/Boltun/src/Engine/TalkEngine.h
index 423d6a2666..6f95541941 100644
--- a/plugins/Boltun/src/Engine/TalkEngine.h
+++ b/plugins/Boltun/src/Engine/TalkEngine.h
@@ -31,18 +31,18 @@ class TalkBot
public:
struct MessageInfo
{
- private:
- std::tstring Question;
- MessageInfo(std::tstring q, std::tstring a)
- :Question(q), Answer(a)
- {
- }
- public:
- std::tstring Answer;
- MessageInfo(std::tstring q)
- :Question(q)
- {
- }
+ private:
+ std::tstring Question;
+ MessageInfo(std::tstring q, std::tstring a)
+ :Question(q), Answer(a)
+ {
+ }
+ public:
+ std::tstring Answer;
+ MessageInfo(std::tstring q)
+ :Question(q)
+ {
+ }
friend class TalkBot;
};
private:
@@ -50,7 +50,7 @@ private:
{
BEST, LOOKSLIKE/*, LOOKSLIKE2*/, BAD, FAIL, NOTHING
} Level;
- friend std::tstring LevelToStr(TalkBot::Level target);
+ friend std::tstring LevelToStr(TalkBot::Level target);
struct ContactData
{
@@ -80,7 +80,7 @@ private:
bool makeLowercase;
bool understandAlways;
void UpdateStartChar(std::tstring &str);
- typedef std::multimap<std::tstring, std::tstring>::const_iterator mm_cit;
+ typedef std::multimap<std::tstring, std::tstring>::const_iterator mm_cit;
bool FindExact(ContactData *contactData, const std::tstring &incomingMessage, const std::multimap<std::tstring, std::tstring> &map, std::tstring &res);
bool FindAny(ValueChooser<> &ch, std::tstring &res);
void FindByKeywords(ContactData *contactData, const std::vector<std::tstring> &keywords, std::tstring &res/*, std::tstring& ures*/, bool isQuestion);