Menu

#12 Something wrong with <star/>

closed-accepted
Responder (7)
7
2006-01-29
2005-02-13
Anonymous
No

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.

Discussion

  • man61

    man61 - 2005-02-13

    Logged In: YES
    user_id=1218199

    Sorry for my english. I need some practice.

     
  • tanoshimi

    tanoshimi - 2005-09-25

    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.

     
  • Anne Kootstra

    Anne Kootstra - 2006-01-29

    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.

     
  • Anne Kootstra

    Anne Kootstra - 2006-01-29
    • priority: 5 --> 7
    • assigned_to: nobody --> kootstra
    • status: open --> closed-accepted
     

Log in to post a comment.

Auth0 Logo