Steve-V / tgg-BotSteve

Issue tracking and source hosting for the TGG BotSteve module
11 stars 10 forks source link

tell only stores the first tell #112

Closed AstraLuma closed 12 years ago

AstraLuma commented 12 years ago
<astro73|mal> BotSteve, tell BatSteve A.
<BotSteve> astro73|mal: I'll pass that on when BatSteve is around.
<astro73|mal> BotSteve, tell BatSteve B.
<BotSteve> astro73|mal: I'll pass that on when BatSteve is around.
<astro73|mal> BotSteve, tell BatSteve C.
<BotSteve> astro73|mal: I'll pass that on when BatSteve is around.
<BatSteve> ok
<BotSteve> batsteve: I have the following messages for you:
<BotSteve> At 06:16Z, Astronouth7303 asked me to tell batsteve A.

This needs to be fixed.

Steve-V commented 12 years ago

This really, really needs to be fixed.

AstraLuma commented 12 years ago

It's a problem with it not storing the modified list.

Steve-V commented 12 years ago

I cannot explain how, nor why, but it seems to be fixed. I didn't do anything except add debugging statements. And yet, it works now.

Re-open this bug if problem persists.

AstraLuma commented 12 years ago

I don't know how this solved the problem. It really shouldn't have.

The error is in line 71. The only way this should work is if you're using the picklestore.

Steve-V commented 12 years ago

Aha. More data. When I reload tell from tell.pyc, it fixes itself. I wonder if tell.pyc is an old pyc that still uses pickle?

AstraLuma commented 12 years ago

That would have to be really old, and Python should prevent that.

The easy way to tell is delete all the .pyc and .pyo files and restart BotSteve. That will force Python to recompile all of the files.