Hello. Many people found this bug.
<category>
<pattern>TELL ME *</pattern>
<template>
Yes, <star/> is a good topic...
</template>
</category>
Dialog is:
******
User: Tell me about this day.
Bot: Yes, about this day this day is a good topic...
******
This repeatings are also in gossips and in many other
things.
I think that I solve this problem. The function
fastforward() in graphnew.php should return one string
and should change $ffremains.. But $ffremains wasn't
changed. An then addtostar() not working properly.
I just changed:
FROM
function fastforward($word,$ffremains){
TO
function fastforward($word, &$ffremains){
Now <star/> is working fine..
I used PHP 4.3.4 win32 apache 1.3.26
MySQL 4.0.22
May be I made a mistake? Please check this and answer
me.
Logged In: YES
user_id=1218199
Sorry for my english. I need some practice.
Logged In: YES
user_id=1252904
I made the changes as suggested above, and for the most part
they work fine, however I still occassionally get odd
behaviour, especially when matching patterns containing more
than one <star />. For example:
<category>
<pattern>* VERY *</pattern>
<template>
<star index="1"/> <star index="2"/>
</template>
</category>
Dialogue is:
****
User: i am very clever
Bot: very clever am very clever
****
Can anybody help fix this? Thanks in advance for your help.
Logged In: YES
user_id=461157
My current development version contains your change. Pending
the solution of the irregular behaviour mentioned by
alastair_a3uk it will make it in the upcoming release of
Program E.